/* ============================================
   Kino Sifatli — Premium Design Elements v5.0
   Apple-style: Dynamic Island, SF Stats, Spotlight,
   Apple Music Headers, Bottom Sheet, Specular Cards
   ============================================ */

/* ============ 1 — DYNAMIC ISLAND HERO BADGE ============ */
.dynamic-island {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: hsla(0, 0%, 0%, 0.75);
    backdrop-filter: blur(var(--blur-medium));
    -webkit-backdrop-filter: blur(var(--blur-medium));
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 100px;
    margin-bottom: 24px;
    box-shadow:
        0 0 0 1px hsla(0, 0%, 100%, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 0.5px 0 hsla(0, 0%, 100%, 0.08);
    animation: islandPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Shimmer on the island */
.dynamic-island::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.06), transparent);
    animation: spotlightShine 4s ease infinite;
    pointer-events: none;
}

.di-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.7);
    animation: liveDot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.di-live-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--ff-heading);
}

.di-divider {
    width: 1px;
    height: 14px;
    background: hsla(0, 0%, 100%, 0.15);
    flex-shrink: 0;
}

.di-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============ 2 — SF-STYLE STAT CARDS ============ */
.stat-card {
    position: relative;
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform var(--t-smooth), border-color var(--t-smooth), box-shadow var(--t-smooth);
    cursor: default;
}

.stat-card-inner {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

/* Accent-specific backgrounds */
.stat-card--accent {
    background: linear-gradient(145deg,
        hsla(272, 95%, 68%, 0.12) 0%,
        hsla(272, 95%, 68%, 0.04) 100%);
    box-shadow: inset 0 1px 0 hsla(272, 95%, 68%, 0.15);
}

.stat-card--cyan {
    background: linear-gradient(145deg,
        hsla(188, 90%, 55%, 0.12) 0%,
        hsla(188, 90%, 55%, 0.04) 100%);
    box-shadow: inset 0 1px 0 hsla(188, 90%, 55%, 0.15);
}

.stat-card--orange {
    background: linear-gradient(145deg,
        hsla(32, 95%, 55%, 0.12) 0%,
        hsla(32, 95%, 55%, 0.04) 100%);
    box-shadow: inset 0 1px 0 hsla(32, 95%, 55%, 0.15);
}

/* Stat icon badge */
.stat-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: hsla(272, 95%, 68%, 0.15);
    border: 1px solid hsla(272, 95%, 68%, 0.25);
    color: var(--stat-color, var(--accent));
    margin-bottom: 2px;
}

/* Per-card accent icon colors */
.stat-card--accent .stat-icon-wrap { background: hsla(272, 95%, 68%, 0.15); border-color: hsla(272, 95%, 68%, 0.25); color: var(--accent); }
.stat-card--cyan .stat-icon-wrap   { background: hsla(188, 90%, 55%, 0.15); border-color: hsla(188, 90%, 55%, 0.25); color: var(--accent-2); }
.stat-card--orange .stat-icon-wrap { background: hsla(32, 95%, 55%, 0.15);  border-color: hsla(32, 95%, 55%, 0.25);  color: var(--accent-3); }

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--glass-border-active);
}

.stat-card--accent:hover { border-color: hsla(272, 95%, 68%, 0.4); box-shadow: 0 12px 30px hsla(272, 95%, 68%, 0.15), inset 0 1px 0 hsla(272, 95%, 68%, 0.2); }
.stat-card--cyan:hover   { border-color: hsla(188, 90%, 55%, 0.4); box-shadow: 0 12px 30px hsla(188, 90%, 55%, 0.15), inset 0 1px 0 hsla(188, 90%, 55%, 0.2); }
.stat-card--orange:hover { border-color: hsla(32, 95%, 55%, 0.4);  box-shadow: 0 12px 30px hsla(32, 95%, 55%, 0.15),  inset 0 1px 0 hsla(32, 95%, 55%, 0.2); }

/* Mobile stat grid */
@media (max-width: 768px) {
    .stat-card {
        min-width: 0;
        padding: 0 !important; /* Reset layout.css padding */
    }
    .stat-card-inner {
        padding: 14px 4px; /* Reduced side padding for more text width */
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        margin: 24px 0;
        gap: 8px !important; /* Slightly reduced gap on mobile */
    }
    .stat-card:nth-child(3) {
        grid-column: span 1 !important;
        flex-direction: column !important;
    }
    .stat-label {
        font-size: 9px !important; /* Fits "KATEGORIYALAR" perfectly */
        letter-spacing: 0.02em !important;
        white-space: nowrap;
    }
    .stat-num {
        font-size: 1.4rem !important; /* Slightly smaller number to balance layout */
    }
}

/* ============ 3 — HERO CTA BUTTONS ROW ============ */
.hero-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), hsl(210, 90%, 55%));
    border-radius: var(--radius-pill);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: 0 8px 28px hsla(272, 95%, 68%, 0.3);
}

.hero-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 36px hsla(272, 95%, 68%, 0.4);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: hsla(0, 0%, 100%, 0.06);
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.hero-cta-secondary:hover {
    transform: translateY(-2px);
    background: hsla(0, 0%, 100%, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

.kbd-hint {
    font-size: 0.7rem;
    padding: 2px 7px;
    border: 1px solid hsla(0, 0%, 100%, 0.15);
    border-radius: 5px;
    background: hsla(0, 0%, 100%, 0.06);
    color: var(--text-muted);
    font-family: var(--ff-body);
    line-height: 1.4;
}

/* Hide kbd hint on mobile */
@media (max-width: 480px) {
    .kbd-hint { display: none; }
    .hero-ctas { gap: 8px; }
    .hero-cta-primary { padding: 12px 22px; font-size: 0.88rem; }
    .hero-cta-secondary { padding: 12px 18px; font-size: 0.88rem; }
}

/* ============ 4 — TAB / MOBILE NAV iOS 18 PILL ============ */
/* (Already in layout.css — enhanced glow) */
.mob-link.active .mob-icon-wrap {
    /* Extra depth on the pill */
    box-shadow:
        0 4px 15px var(--accent-glow),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px hsla(272, 95%, 68%, 0.2);
}

/* ============ 5 — SPOTLIGHT SEARCH BAR ============ */
.spotlight-bar {
    margin: -8px 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.spotlight-bar::-webkit-scrollbar { display: none; }

.spotlight-bar-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px 4px;
    white-space: nowrap;
    min-width: 100%;
}

.spotlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: hsla(0, 0%, 100%, 0.04);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    flex-shrink: 0;
}

.spotlight-tag:hover,
.spotlight-tag.active {
    background: var(--accent-soft);
    border-color: hsla(272, 95%, 68%, 0.25);
    color: var(--accent);
    transform: translateY(-1px);
}

.spotlight-kbd {
    font-size: 0.62rem;
    padding: 1px 5px;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 4px;
    background: hsla(0, 0%, 100%, 0.04);
    color: var(--text-muted);
    font-family: monospace;
}

/* ============ 6 — APPLE MUSIC SECTION HEADERS ============ */
.apple-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 2px;
}

.ash-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ash-subtitle {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-family: var(--ff-heading);
    text-transform: uppercase;
}

.ash-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--ff-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ash-see-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 0;
    transition: opacity var(--t-fast), transform var(--t-fast);
    flex-shrink: 0;
    margin-bottom: 4px;
}

.ash-see-all:hover {
    opacity: 0.75;
    transform: translateX(2px);
}

.ash-see-all svg {
    opacity: 0.7;
    transition: transform var(--t-fast);
}

.ash-see-all:hover svg {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .ash-title { font-size: 1.1rem; }
    .ash-see-all { font-size: 0.78rem; }
}

/* ============ 7 — BOTTOM SHEET MODAL (iOS-style) ============ */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(1, 1, 3, 0.6);
    backdrop-filter: blur(var(--blur-medium));
    -webkit-backdrop-filter: blur(var(--blur-medium));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(180deg,
        hsla(240, 12%, 7%, 0.96) 0%,
        hsla(240, 10%, 5%, 0.98) 100%);
    backdrop-filter: blur(var(--blur-ultra)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-ultra)) saturate(180%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0 0 max(24px, env(safe-area-inset-bottom, 24px)) 0;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-bottom: none;
    box-shadow:
        0 -24px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 hsla(0, 0%, 100%, 0.08);
    transform: translateY(100%);
    transition: transform 0.45s var(--ease-spring);
    overflow: hidden;
}

.bottom-sheet-overlay.show .bottom-sheet {
    transform: translateY(0);
    animation: sheetReveal 0.45s var(--ease-spring);
}

/* Drag indicator */
.bs-handle {
    width: 36px;
    height: 4px;
    background: hsla(0, 0%, 100%, 0.18);
    border-radius: 2px;
    margin: 12px auto 20px;
}

/* Mini poster + info row */
.bs-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.bs-poster-mini {
    width: 52px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border: 1px solid var(--glass-border);
}

.bs-poster-mini-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-info {
    flex: 1;
    min-width: 0;
}

.bs-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--ff-heading);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chips row (IMDb / duration / quality) */
.bs-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bs-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.bs-chip--imdb {
    background: hsla(43, 100%, 50%, 0.12);
    color: #f5c518;
    border-color: hsla(43, 100%, 50%, 0.2);
}

.bs-chip--duration {
    background: var(--accent-2-soft);
    color: var(--accent-2);
    border-color: hsla(188, 90%, 55%, 0.2);
}

.bs-chip--quality {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: hsla(272, 95%, 68%, 0.2);
}

/* Body content */
.bs-body {
    padding: 16px 20px;
}

.bs-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Gradient CTA */
.bs-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: 0 8px 24px hsla(272, 95%, 68%, 0.25);
    text-decoration: none;
}

.bs-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px hsla(272, 95%, 68%, 0.35);
}

/* ============ 8 — COUNTDOWN CARD (Coming Soon) ============ */
.countdown-card {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg,
        hsla(240, 12%, 8%, 0.8) 0%,
        hsla(272, 30%, 6%, 0.85) 100%);
    border: 1px solid hsla(272, 95%, 68%, 0.15);
    overflow: hidden;
    transition: transform var(--t-smooth), border-color var(--t-smooth);
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        hsla(272, 95%, 68%, 0.3),
        hsla(188, 90%, 55%, 0.2),
        transparent);
}

.countdown-card:hover {
    transform: translateY(-4px);
    border-color: hsla(272, 95%, 68%, 0.3);
    box-shadow: 0 16px 40px hsla(272, 95%, 68%, 0.1);
}

.cc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: hsla(272, 95%, 68%, 0.1);
    border: 1px solid hsla(272, 95%, 68%, 0.2);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--ff-heading);
    margin-bottom: 10px;
}

.cc-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Countdown numbers row */
.cc-countdown-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.cc-unit {
    flex: 1;
    background: hsla(0, 0%, 100%, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
    animation: countdownTick 1s ease-in-out;
}

.cc-num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--ff-heading);
    color: var(--accent);
    display: block;
    line-height: 1;
}

.cc-lbl {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 3px;
    display: block;
}

.cc-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ PERF-LOW: Disable premium effects ============ */
html.perf-low .dynamic-island {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
}

html.perf-low .dynamic-island::after {
    display: none;
}

html.perf-low .hero-cta-secondary {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.perf-low .bottom-sheet {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.perf-low .card-specular {
    display: none;
}

html.perf-low .movie-card::before {
    display: none;
}

/* Mobile-only: hide spotlight kbd */
@media (max-width: 480px) {
    .spotlight-kbd { display: none; }
    .dynamic-island { font-size: 0.78rem; }
    .cc-num { font-size: 1.15rem; }
    .cc-countdown-row { gap: 5px; }
}
