/* ═══════════════════════════════════════════════════════════
   site-header.css — ORTAK SİTE HEADER + RESET & BASE CSS
   -----------------------------------------------------------
   partials/header.php'deki inline "RESET & BASE" bloğunun tek
   kaynağı. Tüm sayfalar (ana sayfa, kategori, haber detay, yazar,
   statik sayfalar) bu dosyayı <link> ile çağırır.
   ═══════════════════════════════════════════════════════════ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; background: #f8f9fa; color: #222; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: #e31b23; }

/* TOP BAR */
.top-bar { background: #111; color: #aaa; font-size: 11px; padding: 5px 0; border-bottom: 1px solid #222; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-right a { color: #aaa; display: flex; align-items: center; gap: 5px; font-size: 11px; transition: 0.2s; }
.top-bar-right a:hover { color: #fff; }
.top-bar-right a i { color: #e31b23; font-size: 11px; }
.top-bar-sep { color: #444; }

/* HEADER MAIN - Kontra Spor Tarzı */
.header-main {
    background: #fff;
    border-bottom: 3px solid #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 76px;
    gap: 0;
}

/* SOL MENÜ */
.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding-right: 15px;
    border-right: 2px solid #eee;
    height: 100%;
}

/* SAĞ MENÜ */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-left: 15px;
    border-left: 2px solid #eee;
    height: 100%;
}

/* LOGO - ORTA */
.logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    height: 100%;
    text-decoration: none;
    gap: 10px;
    white-space: nowrap;
}
.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
}
.logo-text .t1 { color: #000; display: block; }
.logo-text .t2 { color: #e31b23; display: block; }

/* NAV LİNKLER */
.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    position: relative;
    transition: 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #e31b23;
    transition: 0.3s;
}
.nav-link:hover { color: #e31b23; }
.nav-link:hover::after { width: 100%; }

/* SAĞ AKSIYONLAR */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 10px;
}
.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: 0.2s;
    text-decoration: none;
}
.action-btn:hover { background: #e31b23; color: #fff; }

/* ARAMA OVERLAY */
.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.search-overlay.active { display: flex; }
.search-box-inner {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
}
.search-box-inner form { display: flex; gap: 10px; }
.search-box-inner input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}
.search-box-inner input:focus { border-color: #e31b23; }
.search-box-inner button[type=submit] {
    background: #e31b23;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
}
.search-close {
    position: absolute;
    top: 10px; right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

/* DARK MODE */
body.dark-mode { background: #121212; color: #e0e0e0; }
body.dark-mode .header-main { background: #1a1a1a; border-bottom-color: #333; }
body.dark-mode .nav-left { border-right-color: #333; }
body.dark-mode .nav-right { border-left-color: #333; }
body.dark-mode .nav-link { color: #ccc; }
body.dark-mode .nav-link:hover { color: #e31b23; }
body.dark-mode .logo-text .t1 { color: #fff; }
body.dark-mode .action-btn { background: #333; color: #ccc; }

/* MOBİL */
.mobile-header {
    display: none;
    background: #fff;
    border-bottom: 3px solid #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 15px;
}
.mobile-nav {
    display: none;
    background: #111;
    border-top: 3px solid #e31b23;
}
.mobile-nav a {
    display: block;
    padding: 14px 20px;
    color: #ccc;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    transition: 0.2s;
}
.mobile-nav a:hover { background: #222; color: #fff; padding-left: 28px; }
.mobile-nav.active { display: block; }

body.dark-mode .mobile-header { background: #1a1a1a; border-bottom-color: #333; }
body.dark-mode .mobile-header-inner .logo-text .t1 { color: #fff; }

@media (max-width: 992px) {
    .header-main { display: none; }
    .top-bar { display: none; }
    .mobile-header { display: block; }

}
@media (min-width: 993px) {
    .mobile-header { display: none; }
}
