/* ═══════════════════════════════════════════
   APP DETAIL PAGE STYLES
   ═══════════════════════════════════════════ */

/* ── Back Link ─────────────────────────────── */
.back-link {
    display: inline-block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: opacity .2s;
}
.back-link:hover { opacity: .7; }

/* ── App Hero ──────────────────────────────── */
.app-hero {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    overflow: hidden;
}

.app-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .35;
    pointer-events: none;
}
.app-hero-blob-1 {
    width: 450px; height: 450px;
    background: var(--blob1);
    top: -100px; right: -80px;
}
.app-hero-blob-2 {
    width: 350px; height: 350px;
    background: var(--blob2);
    bottom: -120px; left: -60px;
}

.app-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.app-hero-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.app-hero-icon {
    width: 80px; height: 80px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
    flex-shrink: 0;
}

.app-hero-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.app-hero-category {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent);
}

.app-hero-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 1.75rem;
}

.app-hero-stores {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    border-radius: 999px;
    transition: transform .25s, box-shadow .25s;
    text-decoration: none;
}
.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--glow);
    color: #fff;
}
.store-btn svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
}

/* ── Screenshots Section ──────────────────── */
.app-screenshots {
    padding: 0 1.5rem 3rem;
}

.app-screenshots-inner {
    max-width: 900px;
    margin: 0 auto;
}

.app-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}

/* ── Video Thumbnail ──────────────────────── */
.video-thumb {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    margin-bottom: .5rem;
    cursor: pointer;
    transition: box-shadow .3s;
}
.video-thumb:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.video-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.screenshot-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: none;
}
.screenshot-grid::-webkit-scrollbar { display: none; }

.screenshot-img {
    flex-shrink: 0;
    width: 220px;
    height: 390px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: zoom-in;
    transition: transform .3s, box-shadow .3s;
}
.screenshot-img:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

/* ── Features Section ─────────────────────── */
.app-features {
    padding: 0 1.5rem 4rem;
}

.app-features-inner {
    max-width: 900px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform .25s, box-shadow .25s, background .4s, border-color .4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.feature-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: .75rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.feature-card p {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 700px) {
    .app-hero { padding: 3.5rem 1.25rem 2.5rem; }
    .app-hero-blob-1 { width: 280px; height: 280px; }
    .app-hero-blob-2 { width: 220px; height: 220px; }

    .app-hero-icon { width: 64px; height: 64px; font-size: 1.8rem; }
    .app-hero-name { font-size: 1.7rem; }
    .app-hero-top { gap: 1rem; }

    .screenshot-img { width: 160px; height: 280px; }

    .features-grid { grid-template-columns: 1fr; }

    .app-screenshots, .app-features { padding-left: 1.25rem; padding-right: 1.25rem; }
}
