/* 
   DAILYOL HEADER STİL DOSYASI (V6 - Renk Uyumu Fix)
   - Navbar zemin rengi tek tona çekildi (Sırıtma yok).
   - Sidebar arkası şeffaf yapıldı (Koyu gri kutu yok).
*/

/* 1. DEĞİŞKENLER */
:root {
    --font-primary: 'Inter', 'Roboto', sans-serif;
    
    --bg-header-top: #151515;
    --bg-header-bottom: #ffffff;
    
    --text-header: #ffffff;
    --text-primary: #1a1a1a;
    --brand-red: #cc0000;
    
    --header-top-height: 80px;
    --header-bottom-height: 60px;
    --header-container-width: 1280px;
}

/* 2. GECE MODU (GÜÇLENDİRİLMİŞ DÜZELTME) */
[data-theme="dark"] body, 
body.dark {
    background-color: #121212 !important;
    color: #e8eaed !important;
}

/* Navbar Alt Kısım Rengi (Tek Ton Olsun) */
[data-theme="dark"], body.dark {
    --bg-header-top: #000000;
    --bg-header-bottom: #121212; /* Gri kutu yerine tam koyu */
    --text-primary: #e8eaed;
}

/* Gece Modunda Sidebar ve Ana Kapsayıcılar ŞEFFAF olsun */
/* Böylece arkada gri bir blok kalmaz */
[data-theme="dark"] .site-main,
[data-theme="dark"] .content-area,
[data-theme="dark"] .sidebar,
[data-theme="dark"] aside,
[data-theme="dark"] .container,
body.dark .site-main,
body.dark .sidebar,
body.dark aside {
    background-color: transparent !important; /* Gri kutuyu yok et */
    border: none !important;
    box-shadow: none !important;
    color: #e8eaed !important;
}

/* Sadece içindeki kartlar/widgetlar koyu olsun */
[data-theme="dark"] .widget,
[data-theme="dark"] .card,
[data-theme="dark"] article,
body.dark .widget,
body.dark article {
    background-color: #1e1e1e !important; /* Kart rengi */
    border-color: #333 !important;
}

/* Navbar Alt Çizgisi */
[data-theme="dark"] .site-header-bottom,
body.dark .site-header-bottom {
    background-color: #121212 !important; /* Simsiyah değil, gövdeyle aynı */
    border-bottom: 1px solid #222 !important;
}

/* 3. HEADER YAPISI */
.site-header-top {
    background-color: var(--bg-header-top);
    color: var(--text-header);
    height: var(--header-top-height);
    width: 100%;
    position: fixed; top: 0; left: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex; align-items: center;
    font-family: var(--font-primary);
    box-sizing: border-box;
}

.header-inner { 
    display: flex; justify-content: space-between; align-items: center; 
    width: 100%; height: 100%;
    max-width: var(--header-container-width);
    margin: 0 auto; padding: 0 16px;
    box-sizing: border-box;
}

/* Logo */
.header-branding .logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; height: 100%; }
.logo-icon { width: 42px; height: 42px; filter: drop-shadow(0 0 5px rgba(204,0,0,0.5)); }
.logo-text { font-weight: 900; font-size: 32px; color: #fff; letter-spacing: -1.5px; line-height: 1; }

/* Araçlar */
.header-tools { display: flex; align-items: center; gap: 20px; }
.search-wrapper { position: relative; }
.search-form { 
    display: flex; align-items: center; 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; padding: 0 16px; height: 44px; width: 280px;
}
.search-input { background: transparent; border: none; color: #fff; width: 100%; outline: none; }
.search-submit { background: none; border: none; color: #aaa; cursor: pointer; }
.theme-switch, .menu-trigger { cursor: pointer; color: #ddd; display: flex; align-items: center; }

/* 4. ALT NAVİGASYON */
.site-header-bottom {
    background-color: var(--bg-header-bottom);
    border-bottom: 1px solid #e0e0e0;
    height: var(--header-bottom-height);
    width: 100%;
    position: fixed; top: var(--header-top-height); left: 0; z-index: 999;
    transition: transform 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-primary);
}

.nav-up { transform: translateY(-100%); }
.nav-down { transform: translateY(0); }

.category-scroll-wrapper {
    max-width: var(--header-container-width);
    margin: 0 auto; padding: 0 16px;
    height: 100%; width: 100%;
    display: flex; align-items: center;
}

.header-cat-list { 
    display: flex; align-items: center; height: 100%; 
    white-space: nowrap; overflow-x: auto; scrollbar-width: none;
    list-style: none; margin: 0; padding: 0;
}
.header-cat-list::-webkit-scrollbar { display: none; }

.header-cat-list li { 
    height: 100%; 
    display: flex; align-items: center;
    margin: 0; padding: 0; 
}

.header-cat-list a {
    display: flex; align-items: center; justify-content: center;
    padding: 0 20px; 
    height: 100%; 
    font-size: 15px; 
    font-weight: 800; 
    color: var(--text-primary); 
    text-transform: uppercase; 
    text-decoration: none;
    border-bottom: 4px solid transparent;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    background: transparent !important; /* Linklerin kendi background'u olmasın */
}
.header-cat-list a:hover { 
    color: var(--brand-red); 
    border-bottom-color: var(--brand-red); 
}

/* --- MOBİL MENÜ --- */
@media (max-width: 1023px) {
    .search-wrapper { display: none; }
    .d-lg-none { display: block !important; }
    
    .category-scroll-wrapper.mobile-menu-open {
        display: block !important;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background-color: var(--bg-header-bottom) !important;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .category-scroll-wrapper.mobile-menu-open .header-cat-list {
        display: flex; flex-direction: column; align-items: flex-start;
        height: auto; width: 100%;
    }
    .category-scroll-wrapper.mobile-menu-open .header-cat-list li {
        width: 100%; height: auto;
        border-bottom: 1px solid rgba(128,128,128,0.1);
    }
    .category-scroll-wrapper.mobile-menu-open .header-cat-list a {
        width: 100%; height: 50px;
        justify-content: flex-start; padding-left: 20px;
    }
}
@media (min-width: 1024px) {
    .d-lg-none { display: none !important; }
}






