/* =====================================================
   APP SCREENSHOTS GALLERY
   Phone frames, laptop frames & responsive grid
   for product sub-pages
   ===================================================== */

/* ===== SECTION ===== */
.app-screenshots-section {
    padding: 5rem 0;
    overflow: hidden;
}

/* Force all fade-in / slide children inside screenshots section to be visible.
   The IntersectionObserver can miss them because the section has overflow:hidden
   and the items are inside deeply-nested flex containers. */
.app-screenshots-section .fade-in,
.app-screenshots-section .slide-left,
.app-screenshots-section .slide-right {
    opacity: 1 !important;
    transform: none !important;
}

.app-screenshots-section.theme-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.app-screenshots-section.theme-dark .section-title {
    color: #fff;
}
.app-screenshots-section.theme-dark .section-subtitle {
    color: rgba(255,255,255,.6);
}

/* ===== GRID ===== */
.app-screen-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

/* ===== CARD WRAPPER ===== */
.app-screen-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}
.app-screen-label {
    margin-top: 1rem;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
}
.app-screen-sublabel {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
    margin-top: .15rem;
}

/* ===== PHONE FRAME ===== */
.app-phone-frame {
    position: relative;
    width: 180px;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 8px;
    box-shadow:
        0 0 0 2px rgba(255,255,255,.08),
        0 20px 60px rgba(0,0,0,.4),
        inset 0 0 0 1px rgba(255,255,255,.05);
}
.app-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: #1a1a2e;
    border-radius: 0 0 14px 14px;
    z-index: 5;
}
.app-phone-notch::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}
.app-phone-screen {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
}

/* ===== LAPTOP FRAME ===== */
.app-laptop-frame {
    position: relative;
    width: 360px;
    background: #2a2a3e;
    border-radius: 12px 12px 0 0;
    padding: 6px 6px 0;
    box-shadow:
        0 0 0 2px rgba(255,255,255,.06),
        0 20px 60px rgba(0,0,0,.4);
}
.app-laptop-cam {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    z-index: 5;
    margin-top: -2px;
}
.app-laptop-screen {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.app-laptop-base {
    width: 110%;
    height: 10px;
    background: linear-gradient(180deg, #3a3a4e, #2a2a3e);
    border-radius: 0 0 6px 6px;
    margin-left: -5%;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ===== SCREEN MOCKUP (inner content) ===== */
.app-screen-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mock elements inside screens */
.mock-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    flex-shrink: 0;
}
.mock-logo {
    width: 28px;
    height: 8px;
    border-radius: 4px;
}
.mock-icons {
    display: flex;
    gap: 4px;
}
.mock-icon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.mock-map {
    flex: 1;
    position: relative;
    margin: 4px;
    border-radius: 6px;
    overflow: hidden;
    min-height: 0;
}
.mock-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 16px 16px;
}
.mock-map-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.8);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    z-index: 2;
}
.mock-map-route {
    position: absolute;
    height: 3px;
    border-radius: 2px;
    opacity: .6;
    z-index: 1;
}
.mock-cards {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}
.mock-card-row {
    height: 14px;
    border-radius: 6px;
}
.mock-card-row.short {
    width: 65%;
}
.mock-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 12px;
    flex-shrink: 0;
}
.mock-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .app-screen-grid {
        gap: 2rem;
    }
    .app-phone-frame {
        width: 155px;
    }
    .app-laptop-frame {
        width: 300px;
    }
}
@media (max-width: 767.98px) {
    .app-screenshots-section {
        padding: 3rem 0;
    }
    .app-screen-grid {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    .app-phone-frame {
        width: 200px;
    }
    .app-laptop-frame {
        width: min(340px, 90vw);
    }
    .app-screen-label {
        font-size: .88rem;
    }
}
