/* "Real apps" showcase: station app screens in phone frames.
   Shared by the homepage (home.html) and the start-here landing page (StartHere.jsx). */

.app-showcase {
    padding: 80px 0 72px;
    background: radial-gradient(ellipse at 50% 60%, rgba(171, 43, 152, 0.22), transparent 62%);
    overflow: hidden;
}

.app-showcase .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.app-showcase .section-title {
    margin-bottom: 16px;
}

.app-showcase .section-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 18px;
    line-height: 1.5;
}

.app-showcase-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 28px;
}

.app-showcase-item {
    margin: 0;
    flex: 0 0 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.app-showcase-item:nth-child(3) {
    flex-basis: 236px;
    transform: translateY(-24px);
}

.app-showcase-item:nth-child(2),
.app-showcase-item:nth-child(4) {
    transform: translateY(-8px);
}

.app-showcase-item:hover {
    transform: translateY(-32px);
}

.app-phone {
    position: relative;
    padding: 8px;
    border-radius: 34px;
    background: linear-gradient(145deg, #2c2c2e, #0c0c0d 60%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #000;
}

.app-showcase-item:nth-child(3) .app-phone {
    border-radius: 38px;
    box-shadow: 0 40px 80px rgba(171, 43, 152, 0.35), 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #000;
}

.app-phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    padding: 0 16px;
    border-radius: 26px 26px 0 0;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

.app-phone-camera {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1b1b1d;
    box-shadow: inset 0 0 0 2px #2a2a2e;
}

.app-phone-icons i {
    font-size: 8px;
    margin-left: 2px;
}

.app-phone-screen {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 1313;
    border-radius: 0 0 26px 26px;
    background: #000;
}

.app-showcase-item figcaption {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.35;
}

.app-showcase-item figcaption strong {
    color: var(--text-primary, #fff);
    font-weight: 600;
}

.app-showcase-item figcaption span {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

/* Narrow screens: a swipeable row of phones */
@media (max-width: 1180px) {
    .app-showcase-row {
        justify-content: flex-start;
        align-items: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 24px 16px 8px;
        margin: 0 -16px;
        scrollbar-width: none;
    }

    .app-showcase-row::-webkit-scrollbar {
        display: none;
    }

    .app-showcase-item,
    .app-showcase-item:nth-child(3) {
        flex-basis: 220px;
        transform: none;
        scroll-snap-align: center;
    }

    .app-showcase-item:nth-child(2),
    .app-showcase-item:nth-child(4),
    .app-showcase-item:hover {
        transform: none;
    }

    /* Lead with the now-playing screen when the row has to scroll */
    .app-showcase-item:nth-child(3) {
        order: -1;
    }
}

@media (max-width: 480px) {
    .app-showcase {
        padding: 56px 0 48px;
    }

    .app-showcase-item,
    .app-showcase-item:nth-child(3) {
        flex-basis: 70vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-showcase-item {
        transition: none;
    }
}
