/* ═══════════════════════════════════
   App Showcase — Horizontal Scroller
   ═══════════════════════════════════ */

.showcase-section {
    padding: 6rem 0 5rem;
    background: linear-gradient(180deg, #0f1729 0%, #1a2340 100%);
    overflow: hidden;
    position: relative;
}

/* Subtle texture overlay */
.showcase-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse 60% 50% at 30% 20%, rgba(54, 160, 255, 0.06) 0%, transparent 70%),
            radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255, 107, 53, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.showcase-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.showcase-header .lp-section-label {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-header .lp-section-title {
    color: #fff;
}

.showcase-header .lp-section-subtitle {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
}

/* ─── Viewport (contains track + arrows) ─── */
.showcase-viewport {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ─── Track — seamless horizontal scroll ─── */
.showcase-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    padding: 0 calc((100% - min(85vw, 1200px)) / 2);
    gap: 30px;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.showcase-track::-webkit-scrollbar {
    display: none;
}

.showcase-track.is-dragging {
    scroll-behavior: auto;
    cursor: grabbing;
    user-select: none;
}

/* ─── Each slide ─── */
.showcase-slide {
    flex-shrink: 0;
    scroll-snap-align: start;
    height: clamp(400px, 60vh, 680px);
    position: relative;
}

.showcase-slide img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    border-radius: 0;
}

/* Rounded corners only on first and last */
.showcase-slide:first-child img {
    border-radius: 16px 0 0 16px;
}

.showcase-slide:last-child img {
    border-radius: 0 16px 16px 0;
}

/* If only one image */
.showcase-slide:only-child img {
    border-radius: 16px;
}

/* Subtle shadow under the whole strip */
.showcase-track::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Navigation arrows ─── */
.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.showcase-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.showcase-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.showcase-arrow--left {
    left: max(1rem, calc((100% - min(85vw, 1200px)) / 2 - 56px));
}

.showcase-arrow--right {
    right: max(1rem, calc((100% - min(85vw, 1200px)) / 2 - 56px));
}

/* ─── Dot indicators ─── */
.showcase-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}

.showcase-dot.active {
    background: rgba(255, 255, 255, 0.85);
    width: 28px;
    border-radius: 5px;
}

.showcase-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

/* ─── Fade edges ─── */
.showcase-viewport::before,
.showcase-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.showcase-viewport::before {
    left: 0;
    background: linear-gradient(90deg, #0f1729 0%, transparent 100%);
}

.showcase-viewport::after {
    right: 0;
    background: linear-gradient(-90deg, #1a2340 0%, transparent 100%);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .showcase-section {
        padding: 4rem 0 3.5rem;
    }

    .showcase-slide {
        height: clamp(320px, 55vh, 500px);
    }

    .showcase-track {
        padding: 0 1rem;
    }

    .showcase-arrow {
        width: 40px;
        height: 40px;
    }

    .showcase-arrow--left {
        left: 0.5rem;
    }

    .showcase-arrow--right {
        right: 0.5rem;
    }

    .showcase-viewport::before,
    .showcase-viewport::after {
        width: 30px;
    }

    .showcase-dots {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .showcase-slide {
        height: clamp(280px, 50vh, 420px);
    }
}
