/* ==========================================================================
   GLOBAL.CSS - ANA STİL DOSYASI (Header, Footer, Ticker, Menü, Genel)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DEĞİŞKENLER VE RENK PALETİ
   -------------------------------------------------------------------------- */
:root {
    --nav-height: 90px;
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-contrast: #fff;
    --nav-bg: #ffffff;
    --bg-body: #f4f6f8;
    --bg-card: #ffffff;
    --text-main: #1d1b30;
    --text-muted: #6c757d;
    --border-color: #e5e5e5;
    --line-gray: #e0e0e0;
}

[data-theme="dark"] {
    --nav-bg: #111116;
    --bg-body: #0a0a0a;
    --bg-card: #161616;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2a2a;
    --line-gray: #333333;
    --primary: #ffb400;
}

/* --------------------------------------------------------------------------
   2. GENEL SIFIRLAMA VE TYPOGRAPHY
   -------------------------------------------------------------------------- */
html { overflow-x: hidden; height: 100%; }

body { 
    margin: 0; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

h1, h2, h3, h4, h5, .logo-font, .btn-custom, .logo-text, .font-rajdhani { 
    font-family: 'Rajdhani', sans-serif; 
    text-transform: uppercase; 
    font-weight: 700; 
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--primary); }

.text-primary { color: var(--primary) !important; }
.opacity-10 { opacity: 0.1 !important; }

/* --------------------------------------------------------------------------
   3. HEADER VE MENÜ
   -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--nav-bg);
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Gölge güçlendirildi */
    position: sticky;
    top: 0;
    transition: top 0.3s ease;
}

.header-main {
    height: var(--nav-height);
    background-color: var(--nav-bg);
    /* Ticker ile birleşmesi için alt çizgiyi kaldırdık */
}

/* --- LOGO ALANI --- */
.brand-logo { transition: transform 0.2s; }
.brand-logo:hover { transform: scale(1.02); }

.logo-icon {
    width: 40px; height: 40px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15);
    transform: rotate(-5deg); /* Hafif eğim efekti */
}
.logo-text { font-size: 1.8rem !important; letter-spacing: 1px; color: var(--text-main); line-height: 1; text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.15); }

/* --- MENÜ YAPISI --- */
.main-menu { gap: 5px; }

.main-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Menü Çizgisi (ALTA ALINDI) */
.main-menu-item::before {
    content: '';
    position: absolute;
    bottom: 0; /* En alta yapıştırıldı */
    left: 0;
    width: 100%; height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-menu-item:hover {
    color: var(--primary);
    background-color: rgba(var(--primary), 0.05); /* Hover rengi */
}

.main-menu-item:hover::before { transform: scaleX(1); }
.main-menu-item.active { color: var(--primary); }
.main-menu-item.active::before { transform: scaleX(1); }

/* --- İKON BUTONLARI --- */
.icon-btn, .theme-switch { 
    background: transparent; border: 1px solid var(--border-color); 
    color: var(--text-main); width: 40px; height: 40px; 
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; cursor: pointer; transition: 0.3s; 
}
.icon-btn:hover, .theme-switch:hover { 
    background: var(--primary); color: #fff; 
    border-color: var(--primary); transform: translateY(-2px); 
}

/* --------------------------------------------------------------------------
   4. TICKER / GÜNDEM BANDI
   -------------------------------------------------------------------------- */
/* --- TICKER (GÜNDEM) --- */
.ticker-wrap-container { background-color: var(--nav-bg); padding-bottom: 10px; width: 100%; }
.ticker-wrap { background: #111116; height: 42px; display: flex; align-items: center; border-bottom: 3px solid var(--primary); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.ticker-label { background: var(--primary); color: var(--primary-contrast); height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 25px; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 0.9rem; clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); min-width: 130px; z-index: 10; }
.ticker-content { flex: 1; height: 100%; overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker-content marquee { width: 100%; margin: 0; }
.ticker-item { text-decoration: none; display: inline-flex; align-items: center; margin-right: 50px; transition: 0.3s; }
.ticker-item:hover { transform: scale(1.02); }
.ticker-text { color: #e0e0e0; font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.ticker-badge { border-radius: 4px; font-size: 0.7rem; padding: 3px 8px; font-weight: 800; margin-right: 10px; color: #fff !important; }
.bg-news { background-color: #0d6efd; }
.bg-announce { background-color: #dc3545; }
.badge-static { display: inline-flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-weight: 800; text-transform: uppercase; color: #ffffff !important; border-radius: 0px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 5; line-height: 1; }

@media (max-width: 768px) {
    .ticker-label { padding: 0 15px; min-width: 100px; font-size: 0.8rem; }
    .ticker-text { font-size: 0.85rem; }
}

/* --------------------------------------------------------------------------
   5. ARAMA EKRANI (Search Overlay)
   -------------------------------------------------------------------------- */
.search-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px); 
    z-index: 9999; opacity: 0; visibility: hidden; 
    transition: all 0.3s ease; 
    display: flex !important; justify-content: center !important; 
    align-items: flex-start !important; padding-top: 15vh !important; 
}
.search-overlay.active { opacity: 1; visibility: visible; }

.close-search { 
    position: absolute; top: 30px; right: 40px; background: none; 
    border: none; color: #fff; font-size: 2.5rem; 
    cursor: pointer; transition: 0.3s; 
}
.close-search:hover { transform: rotate(90deg); color: var(--primary); }

.search-input { 
    background: transparent; border: none; 
    border-bottom: 2px solid #555; color: #fff; 
    border-radius: 0; font-size: 2rem; padding: 15px 0; 
    box-shadow: none !important; 
}
.search-input::placeholder { color: #888; font-style: italic; }
.search-input:focus { background: transparent; color: #fff; border-bottom-color: var(--primary); }

.search-submit-btn { 
    position: absolute; right: 0; bottom: 15px; 
    background: none; border: none; font-size: 1.5rem; color: var(--primary); 
}

/* =========================================
   LIVE SEARCH GÖRÜNÜRLÜK (KESİN ÇÖZÜM)
   ========================================= */

/* 1. Overlay Taşma Sorunu Çözümü (Kutunun kesilmemesi için) */
.search-overlay, 
.search-overlay .container, 
.search-overlay form {
    overflow: visible !important;
}

/* 2. Sonuç Kutusu (Kapsayıcı) */
/* NOT: HTML'deki ID 'overlaySearchResults' ise burası da öyle olmalı */
#overlaySearchResults {
    position: absolute !important;
    top: 100% !important; /* Inputun tam altı */
    left: 0 !important;
    width: 100% !important;
    z-index: 2147483647 !important; /* En yüksek katman */
    margin-top: 15px !important;
    display: none; /* JS ile açılacak */
}

/* 3. Glass Tasarım (Kutunun Görsel Yapısı) */
.glass-dropdown {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
}

/* 4. Liste Elemanları (Linkler) */
.glass-item {
    display: flex !important;
    align-items: center;
    padding: 15px !important;
    text-decoration: none !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    cursor: pointer !important;
    position: relative;
    z-index: 2147483648 !important;
}

.glass-item:hover {
    background-color: var(--primary, #0d6efd) !important; /* Hover rengi */
}

/* 5. Resimler */
.glass-item img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

/* 6. Tümünü Gör Butonu (Listenin sonundaki) */
.glass-dropdown a:last-child:hover {
    filter: brightness(1.2);
}
/* --------------------------------------------------------------------------
   6. ADMIN BAR
   -------------------------------------------------------------------------- */
.admin-notch {
    position: fixed !important; top: 0 !important; left: 50% !important;
    transform: translateX(-50%); background: #1a1a1a !important;
    color: #ffb400 !important; padding: 6px 25px !important;
    border-radius: 0 0 15px 15px !important; cursor: pointer !important;
    z-index: 999999 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    display: flex !important; align-items: center; gap: 10px;
    border: 1px solid #333; border-top: none;
}
.admin-top-bar {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 42px !important;
    background: #1a1a1a !important; z-index: 999998 !important;
    display: none !important; align-items: center;
    border-bottom: 2px solid #ffb400;
}
.admin-top-bar.show { display: flex !important; }
body.admin-bar-open { padding-top: 42px !important; }
body.admin-bar-open .site-header { top: 42px !important; }

.admin-bar-link { 
    color: #fff; text-decoration: none; margin-right: 15px; 
    transition: 0.2s; background: rgba(255,255,255,0.1); 
    padding: 2px 10px; border-radius: 4px; 
}
.admin-bar-link:hover { background: var(--primary); color: #fff; }

/* --------------------------------------------------------------------------
   7. FOOTER VE SPONSOR ALANI
   -------------------------------------------------------------------------- */
.site-footer { background-color: #111; color: #999; font-family: 'Inter', sans-serif; margin-top: 60px; border-top: 5px solid var(--primary); }
.site-footer .pixel-heading h5 { color: #ffffff !important; }
}
.footer-top { background-color: #0a0a0a; padding: 25px 0; border-bottom: 1px solid #222; }
.footer-main { padding: 50px 0; }
.footer-copy { 
    background: #000; padding: 20px 0; text-align: center; 
    font-size: 0.8rem; color: #888; border-top: 1px solid #222; 
}

/* 1. Kapsayıcıyı hizala */
.sponsor-item { 
    display: flex !important; 
    align-items: center !important; /* Dikey Ortalama */
    justify-content: center !important; /* Yatay Ortalama */
    height: 70px; 
    padding: 0 10px;
}

/* 2. Yazının kendi ayarlarını sıfırla */
.sponsor-text { 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 900; 
    font-size: 2.4rem; 
    color: #383838; 
    text-transform: uppercase; 
    
    /* ÖNEMLİ AYARLAR BURADA */
    line-height: 1 !important; /* Satır yüksekliğini sabitle */
    margin: 0 !important;      /* Dış boşlukları sil */
    padding: 0 !important;     /* İç boşlukları sil */
    position: static !important; /* Kaydırmayı iptal et (top, bottom iptal) */
    transform: none !important; /* Kaydırmayı iptal et */
    
    transition: 0.3s; 
    white-space: nowrap; 
}

/* Hover Efekti */
.sponsor-item:hover .sponsor-text { 
    color: #fff; 
    text-shadow: 0 0 15px rgba(255,255,255,0.4); 
    transform: scale(1.05); /* Sadece büyüt, yukarı itme */
    z-index: 10; 
}
/* Footer Linkleri */
.f-links { list-style: none; padding: 0; margin: 0; }
.f-links a { color: #888; text-decoration: none; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #1a1a1a; padding: 10px 0; transition: color 0.3s ease, border-color 0.3s ease; }
.f-links a:hover { color: #fff; border-bottom-color: var(--primary); }
.f-links::-webkit-scrollbar { width: 4px; }
.f-links::-webkit-scrollbar-track { background: #111; }
.f-links::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.f-links::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.footer-bottom-nav a { 
    color: #bbb; text-decoration: none; font-weight: 500; 
    font-size: 0.85rem; text-transform: uppercase; 
    font-family: 'Rajdhani', sans-serif; transition: 0.3s; letter-spacing: 0.5px; 
}
.footer-bottom-nav a:hover { color: var(--primary); }
.footer-bottom-nav .sep { color: #444; margin: 0 10px; font-weight: 300; }

/* Sosyal Medya Butonları */
.social-btn {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05); color: #fff; border-radius: 8px;
    text-decoration: none; transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); font-size: 1.1rem;
}
.social-btn:hover {
    background: var(--social-color, var(--primary)); 
    border-color: var(--social-color, var(--primary));
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); color: #fff;
}

/* --------------------------------------------------------------------------
   8. FORM, BUTON VE KULLANICI MENÜSÜ
   -------------------------------------------------------------------------- */
.btn-primary { 
    background-color: var(--primary) !important; 
    border-color: var(--primary) !important; 
    color: var(--primary-contrast) !important; 
    font-weight: 700; 
}

.form-control-pixel, .comment-form .form-control { 
    background: var(--bg-card) !important; 
    border: 1px solid var(--border-color) !important; 
    color: var(--text-main) !important; 
    border-radius: 8px; padding: 12px 15px; font-weight: 600; width: 100%; 
    display: block; transition: all 0.3s; 
}
.form-control-pixel:focus, .comment-form .form-control:focus { 
    background: var(--bg-card) !important; 
    border-color: var(--primary) !important; 
    color: var(--text-main) !important; 
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important; 
    outline: none; 
}
.form-control-pixel::placeholder, .comment-form .form-control::placeholder { 
    color: var(--text-muted); opacity: 0.7; 
}

/* Kullanıcı Menüsü */
.user-menu-toggle { color: inherit; transition: 0.2s; }
.user-menu-toggle:hover { opacity: 0.8; }
.user-name-text { color: var(--text-main); }
[data-theme="dark"] .user-name-text { color: #fff; }

.dropdown-item:active, .dropdown-item:focus { background-color: var(--primary); color: #fff !important; }
.dropdown-item:active i, .dropdown-item:focus i { color: #fff !important; }

.series-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.series-card { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.series-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.series-card:hover img { transform: scale(1.1); }
/* ==========================================
    VIP PROFİL IŞILTILARI VE RÜTBE EFEKTLERİ
   ========================================== */

/* Avatarları saran ana kutu (Taç ikonunun görünmesi için kritik) */
.avatar-ring-wrapper {
    position: relative;
    display: inline-flex;
    overflow: visible !important; /* Tacın dışarı taşmasına izin ver */
    border-radius: 50%;
    z-index: 10;
}

/* Tüm rütbe sınıfları için yuvarlak form garantisi */
.ring-seckin, .ring-admin, .ring-destekci {
    border-radius: 50% !important;
    position: relative;
}

/* 1. SEÇKİN ÜYE (Altın Sarısı Yumuşak Parlama) */
.ring-seckin {
    border: 2px solid #f1c40f !important;
    animation: pulse-gold 2s infinite alternate ease-in-out;
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.3); }
    100% { box-shadow: 0 0 15px rgba(241, 196, 15, 0.8), inset 0 0 5px rgba(241, 196, 15, 0.4); }
}

/* 2. YÖNETİCİ (Kırmızı Agresif Işıltı) */
.ring-admin {
    border: 2px solid #ff4757 !important;
    animation: pulse-red 1.5s infinite alternate ease-in-out;
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 5px rgba(255, 71, 87, 0.4); }
    100% { box-shadow: 0 0 18px rgba(255, 71, 87, 0.9); }
}

/* 3. DESTEKÇİ (Siberpunk Turkuaz Sabit Işıltı) */
.ring-destekci {
    border: 2px solid #00d2d3 !important;
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.5) !important;
    transition: all 0.3s ease;
}

/* Seçkin Üyelere Özel Havada Süzülen Taç İkonu (Final Hizalama) */
.vip-crown-icon {
    position: absolute !important;
    top: -12px !important;    /* Yuvarlak hattan yukarı taşıma */
    right: -5px !important;   /* Sağ üst çepere sabitleme */
    color: #f1c40f !important;
    font-size: 1.1rem !important; 
    z-index: 999 !important;   /* Her zaman en üstte */
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
    animation: float-crown 3s infinite ease-in-out;
    pointer-events: none;      /* Tıklamayı engellemez */
    transform: rotate(15deg);
}

@keyframes float-crown {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-4px) rotate(20deg); }
}

/* ==========================================
    İSİM PARLAMA (GLOW) EFEKTLERİ
   ========================================== */

/* Seçkin Üye: Altın Sarısı Parlama */
.name-glow-seckin {
    color: #f1c40f !important;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
    animation: name-pulse-gold 2s infinite alternate;
    font-weight: 700;
}

@keyframes name-pulse-gold {
    from { text-shadow: 0 0 5px rgba(241, 196, 15, 0.3); }
    to { text-shadow: 0 0 12px rgba(241, 196, 15, 0.7); }
}

/* Yönetici: Kırmızı Parlama */
.name-glow-admin {
    color: #ff4757 !important;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
    animation: name-pulse-red 1.5s infinite alternate;
}

@keyframes name-pulse-red {
    from { text-shadow: 0 0 5px rgba(255, 71, 87, 0.3); }
    to { text-shadow: 0 0 15px rgba(255, 71, 87, 0.8); }
}

/* Destekçi: Turkuaz Işıltı */
.name-glow-destekci {
    color: #00d2d3 !important;
    text-shadow: 0 0 5px rgba(0, 210, 211, 0.5);
}
/* HEADER MOBİL SADELEŞTİRME */
@media (max-width: 991px) {
    /* 1. Giriş Yap / Kayıt Ol Butonlarını Mobilde Gizle */
    .header-main .d-flex.gap-2 {
        display: none !important;
    }

    /* 2. Giriş Yapmış Kullanıcı Profil Alanını Gizle */
    .header-main .dropdown {
        display: none !important;
    }

    /* 3. Arama ve Tema Butonları Kalsın (Display ayarlarını korur) */
    .header-main .search-trigger,
    .header-main .theme-switch {
        display: flex !important;
    }

    /* 4. Logo ve Buton Arasındaki Hizalama */
    .header-main .container {
        justify-content: space-between !important;
    }
}