/* ==========================================================================
   ALİREHBER ACADEMIC & ENTERPRISE UI ENGINE v6.0 (PRESENTATION EDITION)
   ==========================================================================
   Author: Ali Çetin
   Description: Premium Cinematic UI, Enterprise-Grade Glassmorphism, Jury Ready
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

/* --------------------------------------------------------------------------
   01. CORE DESIGN TOKENS (KURUMSAL SİSTEM DEĞİŞKENLERİ)
   -------------------------------------------------------------------------- */
:root {
    /* 1.1 Core Colors (Deep Space Navy - Kurumsal Lacivert/Siyah) */
    --black-100: #000000;
    --black-90: #060913; /* Ana arka plan */
    --black-80: #0f1423; /* Kart arka planı */
    --black-70: #1a2235; /* Hover arka planı */
    --white-100: #ffffff;
    --white-90: #f8fafc;
    --white-80: #f1f5f9;
    
    /* 1.2 Brand Colors (Cinematic Ruby Red - Netflix/HBO Tarzı) */
    --accent-primary: #E50914; 
    --accent-secondary: #B81D24;
    --accent-tertiary: #831010;
    --accent-glow: rgba(229, 9, 20, 0.4);
    --accent-glow-light: rgba(229, 9, 20, 0.1);
    
    /* 1.3 Semantic Colors */
    --success: #10B981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --warning: #F5C518; /* IMDb Gold */
    --warning-glow: rgba(245, 197, 24, 0.2);
    --error: #EF4444;

    /* Theme Backgrounds */
    --bg-base: var(--black-90);
    --bg-surface: var(--black-80);
    --bg-elevated: var(--black-70);
    
    /* Text Colors */
    --text-primary: var(--white-100);
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    /* Glassmorphism System */
    --glass-bg-heavy: rgba(6, 9, 19, 0.85);
    --glass-bg-medium: rgba(15, 20, 35, 0.65);
    --glass-bg-light: rgba(26, 34, 53, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-solid: rgba(255, 255, 255, 0.12);
    --glass-blur-sm: blur(8px);
    --glass-blur-md: blur(16px);
    --glass-blur-xl: blur(40px);

    /* Shadows (Kurumsal ve Yumuşak) */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.6);
    --shadow-neon: 0 0 15px var(--accent-glow), 0 0 30px rgba(229, 9, 20, 0.1);
    --shadow-inner: inset 0 2px 10px rgba(0, 0, 0, 0.2);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-round: 50%;
    --radius-pill: 9999px;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --grad-premium: linear-gradient(135deg, #E50914 0%, #F5C518 100%);

    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-base: 0.3s ease;
    --trans-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index */
    --z-sticky: 1000;
    --z-modal: 9999;
}
/* --------------------------------------------------------------------------
   01.5 LIGHT MODE TOKENS (AÇIK TEMA RENKLERİ)
   -------------------------------------------------------------------------- */
body.light-mode {
    /* Açık Arka Planlar */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #f1f5f9;
    
    /* Açık Temada Koyu Yazılar */
    --text-primary: #0f1423;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    /* Açık Temada Cam (Glassmorphism) Efektleri */
    --glass-bg-heavy: rgba(255, 255, 255, 0.9);
    --glass-bg-medium: rgba(255, 255, 255, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-solid: rgba(0, 0, 0, 0.15);
    
    /* Açık Temada Gölgeler (Çok daha yumuşak) */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.12);
    --shadow-neon: 0 0 15px rgba(229, 9, 20, 0.3);
    --shadow-inner: inset 0 2px 10px rgba(0, 0, 0, 0.03);

    /* Arkaplan Işık Sızmalarını Yumuşat */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(229, 9, 20, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.04), transparent 25%);
}

/* Açık Temada Film Kartlarının İçindeki Siyah Gölgeleri Düzeltme */
body.light-mode .card-overlay {
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 40%, transparent 100%);
}
body.light-mode .card-title {
    color: var(--text-primary);
    text-shadow: none;
}
body.light-mode .movie-card:hover .movie-poster {
    filter: brightness(0.9) saturate(1.1);
}

/* --------------------------------------------------------------------------
   02. RESET & NORMALIZE (CROSS-BROWSER FIXES)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* Kurumsal Işık Sızmaları (Çok hafif kırmızı ve lacivert) */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(229, 9, 20, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.03), transparent 25%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--accent-primary);
    color: var(--white-100);
}

/* Webkit Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); border-left: 1px solid var(--glass-border); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

img, svg { display: block; max-width: 100%; height: auto; object-fit: cover; }
input, button, textarea, select { font: inherit; color: inherit; border: none; background: transparent; outline: none; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.2; }

/* Safe Fallbacks for Clamp */
.heading-display { font-size: 3rem; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 900; letter-spacing: -0.04em; }
.heading-h1 { font-size: 2.5rem; font-size: clamp(2rem, 4vw, 4rem); }
.heading-h2 { font-size: 2rem; font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 20px; }
.heading-h3 { font-size: 1.5rem; font-size: clamp(1.2rem, 2vw, 2rem); margin-bottom: 15px;}

.text-lead { font-size: 1.1rem; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--text-secondary); line-height: 1.8; }
.text-muted { color: var(--text-secondary); }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.mt-3 { margin-top: 15px; } .mt-4 { margin-top: 20px; } .mb-4 { margin-bottom: 20px; }
.bold { font-weight: 700 !important; }

/* --------------------------------------------------------------------------
   04. HEADER (YUKARI KAYAN, KARIŞMAYAN ÜST MENÜ)
   -------------------------------------------------------------------------- */
.site-header {
    position: relative;
    width: 100%;
    z-index: var(--z-sticky);
    background: rgba(6, 9, 19, 0.98); 
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: var(--shadow-soft);
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white-100);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 40px; height: 40px;
    background: var(--grad-primary);
    border-radius: var(--radius-md);
    display: flex; justify-content: center; align-items: center;
    color: var(--white-100); font-size: 1.2rem;
    box-shadow: var(--shadow-neon); transform: rotate(-10deg);
    transition: var(--trans-bounce);
}
.brand-logo:hover .brand-icon { transform: rotate(0deg) scale(1.1); }

.header-actions { display: flex; align-items: center; gap: 15px; }

.action-icon-btn {
    width: 45px; height: 45px;
    border-radius: var(--radius-round);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem; color: var(--text-primary);
    transition: var(--trans-bounce);
    position: relative;
}
.action-icon-btn:hover { background: var(--accent-primary); border-color: transparent; transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-neon); }

.nav-btn-text {
    font-weight: 600; color: var(--text-secondary);
    padding: 10px; display: flex; align-items: center; gap: 8px;
    transition: var(--trans-fast);
}
.nav-btn-text:hover { color: var(--accent-primary); }

.gradient-btn {
    background: var(--grad-primary); color: #fff;
    padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 800;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3); transition: var(--trans-base);
}
.gradient-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5); }

.badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--white-100); color: var(--accent-primary);
    font-size: 0.75rem; font-weight: 800; padding: 2px 6px;
    border-radius: 20px; border: 2px solid var(--bg-base);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute; top: 65px; right: 0;
    width: 320px; max-height: 400px; overflow-y: auto;
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur-md); -webkit-backdrop-filter: var(--glass-blur-md);
    border: 1px solid var(--glass-border-solid);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none; flex-direction: column;
    z-index: 1000;
}
.dropdown-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--glass-border);
}

/* --------------------------------------------------------------------------
   05. HERO SECTION & AI SEARCH (YAPAY ZEKA ARAMA ALANI)
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 60px 0 40px 0;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative;
}
.hero-subtitle {
    display: inline-block; padding: 4px 12px; margin-bottom: 20px;
    background: var(--warning-glow); border: 1px solid rgba(245, 197, 24, 0.3);
    color: var(--warning); border-radius: var(--radius-pill);
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.hero-title { max-width: 800px; margin: 0 auto 15px auto; }
.hero-description { max-width: 600px; margin: 0 auto 40px auto; }

.search-architect { width: 100%; max-width: 800px; margin: 0 auto; }

.search-bar-advanced {
    display: flex; background: var(--bg-surface);
    border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
    padding: 8px; box-shadow: var(--shadow-md);
    backdrop-filter: var(--glass-blur-sm); -webkit-backdrop-filter: var(--glass-blur-sm);
    transition: var(--trans-base); align-items: center;
}
.search-bar-advanced:focus-within { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow-light), var(--shadow-lg); transform: translateY(-2px); }

.search-filter {
    background: rgba(0,0,0,0.4); color: var(--text-primary); font-weight: 600;
    padding: 12px 20px; border-radius: var(--radius-pill); margin-right: 10px;
    -webkit-appearance: none; cursor: pointer;
}
.search-filter option { background: var(--bg-surface); }

.search-input-wrapper { flex: 1; display: flex; align-items: center; gap: 10px; }
.search-icon { color: var(--text-secondary); font-size: 1.1rem; }
.search-input { flex: 1; font-size: 1.05rem; color: var(--white-100); }

.search-btn {
    background: var(--grad-primary); color: var(--white-100);
    padding: 12px 30px; border-radius: var(--radius-pill); font-weight: 800;
    box-shadow: var(--shadow-neon); transition: var(--trans-fast);
}
.search-btn:hover { transform: scale(1.05); }

.ai-mood-bar {
    background: rgba(37, 99, 235, 0.05); border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-pill); display: flex; align-items: center; padding: 8px 8px 8px 20px;
    transition: var(--trans-base); margin-top: 15px;
}
.ai-mood-bar:focus-within { border-color: rgba(37, 99, 235, 0.6); box-shadow: 0 0 20px rgba(37, 99, 235, 0.2); }
.ai-icon { color: #60A5FA; font-size: 1.2rem; margin-right: 15px; animation: float 3s ease-in-out infinite; }
.ai-input { flex: 1; font-size: 1rem; color: var(--white-100); }
.ai-input::placeholder { color: rgba(96, 165, 250, 0.5); }

/* --------------------------------------------------------------------------
   06. FİLM VİTRİNİ VE KATEGORİLER
   -------------------------------------------------------------------------- */
.horizontal-scroll-container {
    display: flex; overflow-x: auto; gap: 15px;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.horizontal-scroll-container::-webkit-scrollbar { display: none; }

.genre-btn {
    white-space: nowrap; padding: 10px 24px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border-solid);
    border-radius: var(--radius-pill); color: var(--text-secondary);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: var(--trans-bounce);
}
.genre-btn:hover { background: rgba(255,255,255,0.08); color: var(--white-100); transform: translateY(-2px); }
.genre-btn.active { background: var(--accent-primary); color: var(--white-100); border-color: transparent; box-shadow: var(--shadow-neon); }

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px; padding: 20px 0 40px 0;
}

.movie-card {
    position: relative; border-radius: var(--radius-md);
    background: var(--bg-elevated); aspect-ratio: 2/3;
    overflow: hidden; cursor: pointer; box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0); /* Hardware Accel */
}

.movie-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; }
.movie-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: var(--shadow-lg), 0 0 25px var(--accent-glow-light); z-index: 2; }
.movie-card:hover img { transform: scale(1.08); filter: brightness(0.4) saturate(1.2); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 20px 15px 15px; display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0; transform: translateY(15px); transition: all 0.4s ease;
}
.movie-card:hover .card-overlay { opacity: 1; transform: translateY(0); }
.card-title { color: var(--white-100); font-size: 1.1rem; font-weight: 800; margin-bottom: 5px; line-height: 1.3; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }

.card-actions { margin-top: 10px; }
.card-btn { width: 100%; padding: 8px; border-radius: var(--radius-sm); font-weight: bold; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 5px; border: none;}
.card-btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px); }
.card-btn-secondary:hover { background: var(--accent-primary); border-color: var(--accent-primary); }

/* ==========================================================================
   GECENİN BAŞROLÜ (FEATURED SHOWCASE) - SİNEMATİK VİTRİN YAMASI
   ========================================================================== */

.featured-showcase {
    position: relative !important;
    width: 100% !important;
    height: 65vh !important;
    min-height: 450px !important;
    max-height: 700px !important;
    border-radius: var(--radius-xl) !important;
    overflow: hidden !important;
    margin-bottom: 40px !important;
    box-shadow: var(--shadow-xl) !important;
    display: flex !important;
    align-items: flex-end !important; /* İçeriği her zaman dibe yapıştırır */
}

/* Arkaplan Resmi ve Animasyonu */
.showcase-bg {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    filter: brightness(0.8) !important;
    transform: scale(1.05);
    animation: showcaseZoom 20s linear infinite alternate;
}

/* Yazıların Okunması İçin Akıllı Siyah Geçiş (Vignette) */
.showcase-vignette {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 100% !important;
    z-index: 2 !important;
    background: 
        linear-gradient(to top, var(--bg-base) 0%, rgba(0,0,0,0.6) 40%, transparent 100%),
        linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, transparent 100%) !important;
}

/* İçerik Kutusu (Yazılar ve Butonlar) */
.showcase-content {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    max-width: 800px !important;
    padding: 50px 40px !important;
    text-align: left !important;
}

/* Gecenin Başrolü Kırmızı Etiket */
.showcase-badge {
    display: inline-block !important;
    background: var(--accent-primary) !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4) !important;
}

/* Film Başlığı */
.showcase-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    color: #fff !important;
    margin-bottom: 15px !important;
    font-family: 'Playfair Display', serif !important;
    line-height: 1.1 !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9) !important;
}

/* Film Özeti */
.showcase-overview {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* Metni 3 satırla sınırlar */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9) !important;
    max-width: 650px !important;
}

/* Buton Grubu */
.showcase-actions {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

/* Çok hafif yakınlaşma animasyonu */
@keyframes showcaseZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Mobil Cihazlar İçin Optimizasyon */
@media (max-width: 768px) {
    .featured-showcase { 
        height: 55vh !important; 
        min-height: 400px !important; 
        border-radius: var(--radius-lg) !important; 
    }
    
    /* Mobilde gölge alttan yukarı çıksın (sağdan sola iptal) */
    .showcase-vignette { 
        background: linear-gradient(to top, var(--bg-base) 0%, rgba(0,0,0,0.8) 60%, transparent 100%) !important; 
    }
    
    .showcase-content { 
        padding: 30px 20px !important; 
        text-align: center !important; /* Mobilde ortalı daha şık durur */
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
    }
    
    .showcase-actions { 
        justify-content: center !important; 
        width: 100% !important;
    }
    
    .showcase-title { font-size: 2.2rem !important; }
}

/* Gündüz Modunda Yazıların Kaybolmaması İçin Koruma */
body.light-mode .showcase-vignette {
    background: 
        linear-gradient(to top, var(--bg-base) 0%, rgba(248, 250, 252, 0.7) 40%, transparent 100%),
        linear-gradient(to right, rgba(248, 250, 252, 0.9) 0%, rgba(248, 250, 252, 0.2) 60%, transparent 100%) !important;
}
body.light-mode .showcase-title { color: var(--text-primary) !important; text-shadow: none !important; }
body.light-mode .showcase-overview { color: var(--text-secondary) !important; text-shadow: none !important; }
/* --------------------------------------------------------------------------
   07. AÇILIR PENCERELER (MODALS - DETAY SAYFASI)
   -------------------------------------------------------------------------- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: var(--z-modal);
    justify-content: center; align-items: center;
    backdrop-filter: var(--glass-blur-md); -webkit-backdrop-filter: var(--glass-blur-md);
}

.modal-content {
    background: var(--bg-base); width: 95%; max-width: 1000px; max-height: 90vh;
    border-radius: var(--radius-xl); border: 1px solid var(--glass-border);
    position: relative; overflow-y: auto; padding: 0; /* İçerikler kendi paddingini ayarlar */
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.modal-content::-webkit-scrollbar { width: 6px; }

.close-modal {
    position: absolute; top: 20px; right: 20px;
    width: 45px; height: 45px; border-radius: var(--radius-round);
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    color: var(--white-100); font-size: 1.2rem;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: var(--trans-bounce); z-index: 100;
    backdrop-filter: blur(5px);
}
.close-modal:hover { background: var(--accent-primary); transform: rotate(90deg); border-color: transparent;}

.modal-hero { position: relative; width: 100%; height: 45vh; min-height: 350px; }
.modal-hero-bg { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%); }
.trailer-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: rgba(0,0,0,0.6); border: 2px solid var(--accent-primary); border-radius: var(--radius-round); color: var(--white-100); display: flex; justify-content: center; align-items: center; font-size: 2rem; padding-left: 5px; cursor: pointer; backdrop-filter: blur(5px); transition: var(--trans-bounce); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.5); }
.trailer-play-btn:hover { background: var(--accent-primary); transform: translate(-50%, -50%) scale(1.1); }

.modal-details { padding: 0 40px 40px 40px; margin-top: -80px; position: relative; z-index: 2; display: flex; gap: 30px; }
.modal-poster-wrap { flex-shrink: 0; width: 220px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); transform: translateY(-30px); }
.modal-poster-wrap img { width: 100%; border-radius: var(--radius-md); }

.modal-info-wrap { flex: 1; padding-top: 20px; }
.modal-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; line-height: 1.1; letter-spacing: -1px; }

.genre-badge {
    display: inline-block; padding: 6px 14px; margin: 0 8px 8px 0;
    background: var(--accent-glow-light); border: 1px solid var(--glass-border-brand);
    color: var(--accent-primary); border-radius: var(--radius-pill);
    font-size: 0.85rem; font-weight: 600;
}

/* YENİ YILDIZ OYLAMA SİSTEMİ (Kurumsal Altın) */
.rating-box {
    display: inline-flex; align-items: center; background: var(--bg-surface);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 12px 28px; margin-bottom: 20px; box-shadow: var(--shadow-inner);
}
.rating-score { display: flex; flex-direction: column; align-items: center; margin-right: 20px; }
.rating-score-val { font-size: 2.2rem; font-weight: 900; color: var(--warning); line-height: 1; text-shadow: 0 0 15px var(--warning-glow); }
.rating-score-count { font-size: 0.75rem; color: var(--text-tertiary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.rating-divider { width: 1px; height: 45px; background: var(--glass-border-solid); margin-right: 20px; }
.interactive-stars { display: flex; flex-direction: row; gap: 8px; }
.star-btn { background: transparent; border: none; padding: 0; margin: 0; color: rgba(255,255,255,0.15); font-size: 1.8rem; cursor: pointer; transition: var(--trans-spring); }
.star-btn:hover { transform: scale(1.25) rotate(-5deg); color: var(--warning); filter: drop-shadow(0 0 5px var(--warning-glow)); }
.star-btn.active { color: var(--warning); filter: drop-shadow(0 0 10px rgba(245, 197, 24, 0.7)); }

/* Comments Section */
.discussion-section { padding: 40px; border-top: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); }
.comment-input-box { background: var(--bg-surface); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 30px; }
.comment-textarea { width: 100%; min-height: 80px; padding: 15px; font-family: inherit; font-size: 1rem; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: var(--radius-md); color: var(--white-100); transition: var(--trans-base); resize: vertical; }
.comment-textarea:focus { border-color: var(--accent-primary); background: rgba(0,0,0,0.5); }
.comment-submit-row { display: flex; justify-content: flex-end; margin-top: 15px; }

.comment-thread { display: flex; flex-direction: column; gap: 20px; }
.comment-avatar { width: 48px; height: 48px; border-radius: var(--radius-round); background: var(--grad-primary); border: 2px solid var(--bg-surface); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.comment-content { flex: 1; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 20px; border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comment-author-name { font-weight: 800; color: var(--accent-primary); font-size: 1.05rem; }
.vote-btn { background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--glass-border); color: var(--text-secondary); font-weight: bold; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 5px; transition: 0.2s; }
.vote-btn:hover { background: rgba(255,255,255,0.1); color: var(--white-100); }
.vote-btn.up.active { background: var(--success-glow); color: var(--success); border-color: var(--success); }
.vote-btn.down.active { background: var(--error-bg); color: var(--error); border-color: var(--error); }

/* --------------------------------------------------------------------------
   08. AUTHENTICATION (GİRİŞ & KAYIT) EKRANLARI - KURUMSAL UI
   -------------------------------------------------------------------------- */
.auth-wrapper {
    display: flex; justify-content: center; align-items: center;
    min-height: 80vh; padding: 20px; width: 100%;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.05) 0%, transparent 60%);
}

.auth-card {
    width: 100%; max-width: 450px; padding: 50px 40px; text-align: center;
    background: var(--glass-bg-heavy); backdrop-filter: var(--glass-blur-xl); -webkit-backdrop-filter: var(--glass-blur-xl);
    border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative; overflow: hidden; margin: auto;
}

.auth-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--grad-primary); box-shadow: var(--shadow-neon); }

.auth-icon-wrapper {
    width: 70px; height: 70px; margin: 0 auto 20px auto;
    background: var(--accent-glow-light); border: 2px solid var(--glass-border-brand);
    border-radius: var(--radius-round); display: flex; justify-content: center; align-items: center;
    font-size: 2rem; color: var(--accent-primary); box-shadow: var(--shadow-neon);
}

.auth-title { font-size: 2.2rem; margin-bottom: 10px; font-weight: 900; letter-spacing: -1px; color: var(--white-100); }
.auth-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 30px; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.input-floating { position: relative; width: 100%; }
.input-floating i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 1.2rem; transition: var(--trans-base); z-index: 2; }
.input-floating input {
    width: 100%; padding: 18px 20px 18px 55px; font-size: 1.05rem; font-weight: 500;
    background: rgba(0,0,0,0.4); border: 2px solid rgba(255,255,255,0.05); border-radius: var(--radius-md);
    color: var(--text-primary); transition: all 0.3s ease; box-shadow: var(--shadow-inner);
}
.input-floating input::placeholder { color: rgba(255,255,255,0.2); }
.input-floating input:focus { border-color: var(--accent-primary); background: rgba(0,0,0,0.6); box-shadow: var(--shadow-inner), 0 0 0 4px var(--accent-glow-light); }
.input-floating input:focus + i, .input-floating input:not(:placeholder-shown) + i { color: var(--accent-primary); }

.otp-input-group input { text-align: center; padding: 16px; font-size: 1.8rem; letter-spacing: 12px; font-weight: 900; color: var(--warning); background: var(--warning-glow); border-color: rgba(245, 197, 24, 0.2); font-family: monospace; }
.otp-input-group input:focus { border-color: var(--warning); box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.15); }

.auth-submit-btn {
    background: var(--grad-primary); color: #fff; border: none; padding: 18px; border-radius: var(--radius-md);
    font-size: 1.15rem; font-weight: 800; cursor: pointer; transition: 0.3s ease; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; width: 100%;
}
.auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5); }

.auth-links { margin-top: 25px; display: flex; flex-direction: column; gap: 12px; }
.auth-link { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: var(--trans-fast); cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px;}
.auth-link:hover { color: var(--accent-primary); }
.auth-link.bold { color: var(--white-100); }

/* --------------------------------------------------------------------------
   09. PROFILE DASHBOARD (KULLANICI PROFİLİ)
   -------------------------------------------------------------------------- */
.profile-dashboard { padding: 40px 0; width: 100%; }

.profile-header-card {
    background: var(--bg-surface); border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    padding: 40px; display: flex; align-items: center; gap: 40px; margin-bottom: 40px; box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
}
.profile-header-card::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(circle at 100% 50%, var(--accent-glow-light), transparent); pointer-events: none; }

.avatar-wrapper { position: relative; width: 160px; height: 160px; border-radius: var(--radius-round); padding: 4px; background: var(--grad-primary); box-shadow: var(--shadow-neon); z-index: 2;}
.profile-avatar-img { width: 100%; height: 100%; border-radius: var(--radius-round); border: 4px solid var(--bg-surface); object-fit: cover; }
.avatar-edit-btn { position: absolute; bottom: 5px; right: 5px; width: 40px; height: 40px; background: var(--accent-primary); border: 3px solid var(--bg-surface); border-radius: var(--radius-round); display: flex; justify-content: center; align-items: center; color: #fff; cursor: pointer; transition: var(--trans-bounce); }
.avatar-edit-btn:hover { transform: scale(1.15); }

.profile-info { flex: 1; z-index: 2; }
.profile-username { font-size: 2.8rem; margin-bottom: 5px; font-weight: 900; letter-spacing: -1px; color: var(--white-100);}

.profile-stats-grid { display: flex; gap: 20px; margin-top: 25px; flex-wrap: wrap;}
.stat-box {
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    padding: 15px 25px; text-align: center; transition: 0.3s; box-shadow: var(--shadow-inner); min-width: 120px;
}
.stat-box:hover { border-color: var(--accent-primary); transform: translateY(-5px); background: var(--accent-glow-light); }
.stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--white-100); margin-bottom: 5px; }

/* --------------------------------------------------------------------------
   10. PROFİL & SOSYAL AKIŞ SEKMELERİ (Important Tweakleri)
   -------------------------------------------------------------------------- */
.feed-item {
    background: var(--bg-surface) !important; border: 1px solid var(--glass-border) !important; border-radius: var(--radius-lg) !important;
    padding: 25px !important; margin-bottom: 20px !important; display: flex !important; gap: 20px !important; align-items: flex-start !important;
    transition: all 0.4s ease !important; box-shadow: var(--shadow-sm) !important;
}
.feed-item:hover { transform: translateY(-5px) !important; border-color: var(--accent-primary) !important; box-shadow: var(--shadow-md) !important; background: var(--bg-elevated) !important; }
.feed-avatar { width: 55px !important; height: 55px !important; border-radius: 50% !important; background: var(--grad-primary) !important; color: #fff !important; font-weight: 900 !important; font-size: 1.5rem !important; display: flex !important; justify-content: center !important; align-items: center !important; box-shadow: var(--shadow-neon) !important; flex-shrink: 0 !important; }
.feed-content { flex: 1 !important; text-align: left !important; }
.feed-header { color: var(--text-secondary) !important; font-size: 0.95rem !important; margin-bottom: 12px !important; }
.feed-header strong { color: var(--text-primary) !important; font-size: 1.15rem !important; cursor: pointer !important; transition: 0.3s !important; }
.feed-header strong:hover { color: var(--accent-primary) !important; }
.feed-body { background: rgba(0, 0, 0, 0.4) !important; padding: 15px 20px !important; border-radius: 0 15px 15px 15px !important; border-left: 4px solid var(--accent-primary) !important; color: var(--text-primary) !important; font-size: 1.05rem !important; line-height: 1.6 !important; }
.feed-time { color: var(--text-tertiary) !important; font-size: 0.85rem !important; margin-top: 12px !important; display: inline-block !important; }

#profileMovies > div:first-child { display: flex !important; justify-content: center !important; gap: 15px !important; border-bottom: 1px solid var(--glass-border) !important; padding-bottom: 20px !important; margin-bottom: 30px !important; margin-top: 40px !important; }
.profile-tab { background: transparent !important; border: none !important; color: var(--text-secondary) !important; font-weight: 700 !important; font-size: 1.1rem !important; padding: 10px 25px !important; cursor: pointer !important; transition: all 0.3s ease !important; border-bottom: 3px solid transparent !important; }
.profile-tab:hover { color: var(--text-primary) !important; }
.profile-tab.active { color: var(--accent-primary) !important; border-bottom: 3px solid var(--accent-primary) !important; text-shadow: 0 0 15px var(--accent-glow) !important; }

.profile-item-card { background: var(--bg-surface) !important; border: 1px solid var(--glass-border) !important; border-radius: var(--radius-lg) !important; padding: 20px 25px !important; display: flex !important; align-items: center !important; gap: 20px !important; color: var(--text-primary) !important; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; cursor: pointer !important; box-shadow: var(--shadow-sm) !important; width: 100% !important; text-align: left !important; box-sizing: border-box !important; }
.profile-item-card:hover { background: var(--accent-glow-light) !important; border-color: var(--accent-primary) !important; transform: translateX(8px) !important; box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3), inset 3px 0 0 var(--accent-primary) !important; }
.profile-item-card > div:first-child span { font-size: 0.9rem !important; }

.collection-tab-btn { background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: var(--text-secondary) !important; padding: 12px 24px !important; border-radius: var(--radius-pill) !important; font-weight: 600 !important; font-size: 0.95rem !important; cursor: pointer !important; transition: all 0.3s ease !important; white-space: nowrap !important; box-shadow: none !important; }
.collection-tab-btn:hover { background: rgba(255, 255, 255, 0.1) !important; color: var(--text-primary) !important; }
.collection-tab-btn.active { background: var(--grad-primary) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4) !important; }
#customListMoviesContainer > div:first-child { background: rgba(0, 0, 0, 0.3) !important; border: 1px solid var(--glass-border) !important; border-radius: var(--radius-md) !important; padding: 20px !important; display: flex !important; align-items: center !important; margin-bottom: 30px !important; border-left: 4px solid var(--accent-primary) !important; box-shadow: var(--shadow-sm) !important; }

/* ==========================================================================
   SOSYAL AKIŞ (SOCIAL FEED) - DÜZENLEME YAMASI
   ========================================================================== */

/* Akışın ana çerçevesi */
.feed-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Her bir akış kartı (Blok yapısı) */
.feed-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-align: left;
}

.feed-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    background: var(--bg-elevated);
}

/* Üst kısım: Profil resmi ve isimler */
.feed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Yuvarlak Baş Harf İkonu */
.feed-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-neon);
    flex-shrink: 0;
}

/* İsim, eylem ve saat bölümü */
.feed-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed-action-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feed-action-text strong {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.1rem;
    transition: 0.2s;
}

.feed-action-text strong:hover {
    color: var(--accent-primary);
}

.feed-time {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Alt kısımdaki yorum/liste balonu */
.feed-content-box {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--accent-primary);
    padding: 15px 20px;
    border-radius: 0 12px 12px 12px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 65px; /* Kutunun profil resmiyle değil, yazıyla hizalanmasını sağlar */
}

/* Koleksiyona ekleme işleminde yeşil çizgi */
.feed-content-box.movie-add {
    border-left-color: var(--success);
}

/* --- Gündüz Modu (Light Mode) Destek Yaması --- */
body.light-mode .feed-card {
    background: rgba(255, 255, 255, 0.6);
}
body.light-mode .feed-card:hover {
    background: rgba(255, 255, 255, 0.9);
}
body.light-mode .feed-content-box {
    background: rgba(0, 0, 0, 0.04);
}
/* --------------------------------------------------------------------------
   11. REAL-TIME CHAT LAYOUT (FLOATING PANEL)
   -------------------------------------------------------------------------- */
.chat-layout { display: flex !important; flex-direction: row !important; padding: 0 !important; overflow: hidden !important; height: 85vh !important; }
.chat-sidebar { width: 320px; background: var(--bg-surface); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; flex-shrink: 0; z-index: 2;}
.chat-main { flex: 1; display: flex !important; flex-direction: column !important; height: 100% !important; background: url('https://www.transparenttextures.com/patterns/stardust.png') rgba(6,9,19,0.95); overflow: hidden !important; position: relative;}

.msg-header-title { font-size: 1.2rem; font-weight: 800; color: var(--text-pure); padding: 25px; border-bottom: 1px solid var(--glass-border); background: var(--bg-surface); margin: 0;}
.msg-chat-area { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; }

.msg-input-area { display: flex; padding: 25px; background: var(--bg-surface); border-top: 1px solid var(--glass-border); gap: 15px; align-items: center;}
.msg-input-area input { flex: 1; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); padding: 16px 20px; border-radius: var(--radius-pill); color: var(--text-pure); outline: none; transition: var(--trans-base); font-size: 1.05rem;}
.msg-input-area input:focus { border-color: var(--accent-primary); box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 0 10px var(--accent-glow-light);}
.msg-send-btn { width: 55px; height: 55px; border-radius: var(--radius-round); background: var(--grad-primary); color: #fff; display: flex; justify-content: center; align-items: center; border: none; font-size: 1.2rem; transition: var(--trans-bounce); box-shadow: var(--shadow-neon);}
.msg-send-btn:hover:not([disabled]) { transform: scale(1.1) rotate(10deg); }
.msg-send-btn[disabled] { background: #333; color: #666; cursor: not-allowed; box-shadow: none; }

/* --------------------------------------------------------------------------
   12. KEYFRAMES & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); } 100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* --------------------------------------------------------------------------
   13. RESPONSIVE DESIGN (CROSS-DEVICE MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .modal-content { width: 95%; max-width: 900px; }
    .chat-sidebar { width: 280px; }
}

@media (max-width: 768px) {
    .site-header { padding: 15px 5%; }
    .nav-btn-text { display: none; } 
    
    .search-architect { padding: 0; }
    .search-bar-advanced, .ai-mood-bar { flex-direction: column; border-radius: var(--radius-lg); padding: 15px; gap: 15px; }
    .search-filter { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 15px; width: 100%; text-align: center; margin: 0;}
    .search-input-wrapper { width: 100%; padding: 5px 0; }
    .search-btn, .ai-mood-bar button { width: 100%; padding: 18px; border-radius: var(--radius-sm); }
    
    .profile-header-card { flex-direction: column; text-align: center; padding: 30px 20px; gap: 20px; }
    .profile-stats-grid { justify-content: center; width: 100%; }
    .stat-box { flex: 1; min-width: 45%; }
    
    .chat-layout { flex-direction: column !important; height: 90vh !important;}
    .chat-sidebar { width: 100%; height: 160px; flex-shrink: 0; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .chat-main { flex: 1; }
    
    .modal-details { flex-direction: column; padding: 0 20px 20px 20px; margin-top: -40px; }
    .modal-poster-wrap { width: 180px; margin: 0 auto; transform: translateY(-30px); }
    .modal-info-wrap { text-align: center; padding-top: 0; }
    .modal-meta-row { justify-content: center; }
    .interactive-stars { justify-content: center; }
    .close-modal { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1rem;}
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-section { padding: 30px 0 20px 0; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; padding-bottom: 20px;}
    
    .auth-wrapper { padding: 10px; }
    .auth-card { padding: 40px 20px; border-radius: var(--radius-lg); border: none; background: rgba(6, 9, 19, 0.98); }
    .auth-icon-wrapper { width: 60px; height: 60px; font-size: 1.5rem; }
    .auth-title { font-size: 1.8rem; }
    .input-floating input { padding: 16px 15px 16px 50px; font-size: 1rem;}
}

/* iOS Güvenli Alan Koruması */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}
/* ==========================================================================
   AÇIK TEMA (LIGHT MODE) HEADER DÜZELTMELERİ
   ========================================================================== */

/* Header'ın açık temada ferah beyaz/gri olması */
body.light-mode .site-header {
    background: rgba(248, 250, 252, 0.98); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Sol üstteki AliRehber yazısının siyah olması */
body.light-mode .brand-logo {
    color: var(--text-primary);
}

/* Sağ üstteki yuvarlak ikonların (profil, bildirim vb.) açık temaya uyumu */
body.light-mode .action-icon-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-mode .action-icon-btn:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Bildirimler açılır menüsünün üst kısmı */
body.light-mode .dropdown-header {
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Gündüz modunda buton yazılarının okunaklı olması */
body.light-mode .nav-btn-text {
    color: var(--text-secondary);
}
body.light-mode .nav-btn-text:hover {
    color: var(--accent-primary);
}
/* ==========================================================================
   PROFİL EKRANI (USER HUB) - ULTIMATE PREMİUM YAMASI
   ========================================================================== */

/* 1. Profil Ana Kartı (Cinematic Background & Grid) */
.profile-header-card {
    background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-elevated) 100%) !important;
    border: 1px solid var(--glass-border-solid) !important;
    border-radius: var(--radius-2xl) !important;
    padding: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 50px !important;
    margin-bottom: 40px !important;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Kart İçi Cyberpunk Noktalı Arkaplan Deseni */
.profile-header-card::after {
    content: '';
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1.5px, transparent 1.5px) !important;
    background-size: 20px 20px !important;
    z-index: 0 !important;
    opacity: 0.6 !important;
}

/* Profil Kartı Soluma Işık Efekti */
.profile-header-card::before {
    content: '';
    position: absolute !important;
    top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse at center, var(--accent-glow-light) 0%, transparent 70%) !important;
    transform: rotate(-45deg) !important;
    z-index: 0 !important;
    animation: pulse-neon 4s infinite alternate !important;
}

/* Z-index ayarları (İçerikler arkaplanın üstünde kalsın) */
.avatar-wrapper, .profile-user-info {
    position: relative !important;
    z-index: 2 !important;
}

/* 2. Avatar (Premium Işık Hüzmesi) */
.avatar-wrapper {
    width: 170px !important; 
    height: 170px !important;
    border-radius: 50% !important;
    padding: 5px !important;
    background: var(--grad-primary) !important;
    box-shadow: 0 0 30px var(--accent-glow) !important;
    transition: transform 0.4s ease !important;
}
.avatar-wrapper:hover {
    transform: scale(1.05) rotate(5deg) !important;
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.6) !important;
}
.profile-avatar-img {
    width: 100% !important; 
    height: 100% !important;
    border-radius: 50% !important;
    border: 5px solid var(--bg-base) !important;
    object-fit: cover !important;
}

/* 3. Kullanıcı Bilgileri */
.profile-username {
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px !important;
    color: var(--text-pure) !important;
    margin-bottom: 5px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8) !important;
}

.profile-bio {
    color: var(--text-secondary) !important;
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    max-width: 550px !important;
    padding-left: 15px !important;
    border-left: 3px solid var(--accent-primary) !important;
    margin-bottom: 20px !important;
}

/* 4. İstatistik Kutuları (E-Spor / Oyun Tarzı) */
.profile-stats-grid {
    display: flex !important;
    gap: 15px !important;
    margin-top: 25px !important;
    flex-wrap: wrap !important;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--glass-border-light) !important;
    border-radius: var(--radius-lg) !important;
    padding: 15px 25px !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 130px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.02) !important;
}

.stat-box:hover {
    border-color: var(--accent-primary) !important;
    transform: translateY(-5px) !important;
    background: rgba(229, 9, 20, 0.05) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 0 1px var(--accent-glow) !important;
}

.stat-num {
    display: block !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: var(--text-pure) !important;
    margin-bottom: 2px !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

.stat-label {
    font-size: 0.8rem !important;
    color: var(--text-tertiary) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 800 !important;
}

/* 5. Modern Navigasyon Sekmeleri (Apple Pill Style) */
#profileMovies > div:first-child {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-pill) !important;
    padding: 8px !important;
    display: inline-flex !important;
    gap: 5px !important;
    margin-bottom: 30px !important;
    margin-top: 10px !important;
    box-shadow: var(--shadow-inner) !important;
}

.profile-tab-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 12px 30px !important;
    border-radius: var(--radius-pill) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.profile-tab-btn:hover {
    color: var(--text-pure) !important;
}

.profile-tab-btn.active {
    background: var(--accent-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4) !important;
}

/* 6. Liste İçerik Kartları (Koleksiyon, Arkadaş, Yorum) */
.list-item-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-sm) !important;
    position: relative !important;
    overflow: hidden !important;
}

.list-item-card::before {
    content: '';
    position: absolute !important;
    left: 0 !important; top: 0 !important;
    height: 100% !important; width: 4px !important;
    background: var(--accent-primary) !important;
    transform: scaleY(0) !important;
    transition: transform 0.3s ease !important;
}

.list-item-card:hover {
    background: rgba(229, 9, 20, 0.03) !important;
    border-color: rgba(229, 9, 20, 0.3) !important;
    transform: translateX(6px) !important;
    box-shadow: var(--shadow-md) !important;
}

.list-item-card:hover::before {
    transform: scaleY(1) !important;
}

/* Açık Tema (Light Mode) Destek Yaması */
body.light-mode .profile-header-card { background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%) !important; }
body.light-mode .profile-header-card::after { background-image: radial-gradient(rgba(0,0,0,0.05) 1.5px, transparent 1.5px) !important; }
body.light-mode .stat-box { background: rgba(0,0,0,0.03) !important; border-color: rgba(0,0,0,0.1) !important; }
body.light-mode .stat-num { color: var(--text-primary) !important; }
body.light-mode .profile-username { color: var(--text-primary) !important; text-shadow: none !important;}
body.light-mode #profileMovies > div:first-child { background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.1) !important;}
/* ==========================================================================
   JS SATIR İÇİ (INLINE) STİLLERİ EZME YAMASI (ULTIMATE OVERRIDE)
   (script.js değiştirmeden profil içi hatalı renkleri ve tasarımları onarır)
   ========================================================================== */

/* Profil Ünvanı ve İstatistik Kutu Renkleri */
#profileStats .stat-num {
    color: var(--text-pure) !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.2) !important;
}
#profileStats .stat-box:nth-child(3) .stat-num {
    color: var(--warning) !important; /* Ünvan Rengi Altın Sarısı */
    text-shadow: 0 0 15px var(--warning-glow) !important;
}

/* Profil Altındaki Aksiyon Butonları (Fotoğraf Değiştir, Mesajlaş vb.) */
#profileStats + div button {
    background: var(--grad-primary) !important;
    color: var(--text-pure) !important;
    padding: 14px 30px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: var(--shadow-neon) !important;
    transition: var(--trans-spring) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}
#profileStats + div button:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.5) !important;
}

/* "Mesaj Gönder" Butonunu Kurumsal Netflix Formatında Yeşile Çevirme */
#profileStats + div button[onclick*="openChatModal"] {
    background: var(--success) !important;
    box-shadow: 0 0 15px var(--success-glow) !important;
}
#profileStats + div button[onclick*="openChatModal"]:hover {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4) !important;
}

/* Profil Sekmeleri Kapsayıcısı (JS'deki çirkin border'ı ezme) */
#profileMovies > div:first-child {
    border-bottom: none !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-pill) !important;
    padding: 8px !important;
    display: inline-flex !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 40px auto 30px auto !important;
    box-shadow: var(--shadow-inner) !important;
}

/* Profil Sekme Butonları (Koleksiyon, Arkadaş, Yorum) */
#profileMovies .profile-tab {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 12px 30px !important;
    border-radius: var(--radius-pill) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
#profileMovies .profile-tab:hover {
    color: var(--text-pure) !important;
}
#profileMovies .profile-tab.active {
    background: var(--accent-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4) !important;
}

/* --------------------------------------------------------------------------
   LİSTE, ARKADAŞ VE YORUM KARTLARI (JS'deki onmouseover'ları Ezme)
   -------------------------------------------------------------------------- */
#profileContentArea .list-item-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 20px 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-sm) !important;
    width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Kartların Solundaki Işın Kılıcı Efekti */
#profileContentArea .list-item-card::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important; top: 0 !important;
    height: 100% !important; width: 4px !important;
    background: var(--accent-primary) !important;
    transform: scaleY(0) !important;
    transition: transform 0.3s ease !important;
}

/* JS onmouseover kurallarını !important ile iptal etme ve doğru animasyonu basma */
#profileContentArea .list-item-card:hover {
    background: rgba(229, 9, 20, 0.03) !important;
    border-color: rgba(229, 9, 20, 0.3) !important;
    transform: translateX(8px) !important;
    box-shadow: var(--shadow-md) !important;
}
#profileContentArea .list-item-card:hover::before {
    transform: scaleY(1) !important;
}

/* JS İçindeki Satır içi İkon Renklerini Ezme */
#profileContentArea .list-item-card i {
    color: var(--accent-primary) !important;
}
#profileContentArea .list-item-card .text-muted {
    color: var(--text-tertiary) !important;
}

/* --------------------------------------------------------------------------
   GÜNDÜZ MODU (LIGHT MODE) OPTİMİZASYONLARI
   -------------------------------------------------------------------------- */
body.light-mode #profileStats + div button { color: #fff !important; }
body.light-mode #profileMovies > div:first-child { background: rgba(0,0,0,0.05) !important; border: 1px solid rgba(0,0,0,0.1) !important; }
body.light-mode #profileMovies .profile-tab.active { background: var(--accent-primary) !important; color: #fff !important; }
body.light-mode #profileContentArea .list-item-card { background: #fff !important; border-color: rgba(0,0,0,0.1) !important; }
body.light-mode #profileContentArea .list-item-card:hover { background: rgba(229,9,20,0.05) !important; }