/* =============================================================
       ANISUB DESIGN SYSTEM - AniList Inspired
       ============================================================= */

    /* --- DARK THEME (Varsayılan - AniList Dark) --- */
    :root,
    [data-theme="dark"] {
        --bg-primary:     #0B1622;
        --bg-secondary:   #151F2E;
        --bg-tertiary:    #1F2937;
        --bg-navbar:      rgba(21, 31, 46, 0.96);
        --bg-card:        #151F2E;
        --bg-hover:       #1A2536;
        --bg-input:       #1F2937;

        --text-primary:   #D5DAE0;
        --text-secondary: #8BA0B2;
        --text-muted:     #647380;
        --text-bright:    #FFFFFF;

        --accent:         #3DB4F2;
        --accent-dark:    #2B9ED8;
        --accent-glow:    rgba(61, 180, 242, 0.15);
        --accent-surface: rgba(61, 180, 242, 0.08);

        --green:  #4CCA51;
        --red:    #E85D75;
        --orange: #F79A63;
        --purple: #C063F5;
        --yellow: #F9D457;
        --blue:   #3DB4F2;

        --border:       rgba(255, 255, 255, 0.06);
        --border-light: rgba(255, 255, 255, 0.1);
        --shadow:       0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-lg:    0 14px 40px rgba(0, 0, 0, 0.5);

        --radius-sm:   4px;
        --radius:      8px;
        --radius-lg:   12px;
        --radius-full: 9999px;

        --font: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* --- LIGHT THEME (AniList Light) --- */
    [data-theme="light"] {
        --bg-primary:     #EDF1F5;
        --bg-secondary:   #FAFAFA;
        --bg-tertiary:    #FFFFFF;
        --bg-navbar:      rgba(250, 250, 250, 0.96);
        --bg-card:        #FFFFFF;
        --bg-hover:       #F0F3F5;
        --bg-input:       #EDF1F5;

        --text-primary:   #3D4C5C;
        --text-secondary: #5C728A;
        --text-muted:     #8BA0B2;
        --text-bright:    #1A1F26;

        --border:       rgba(0, 0, 0, 0.06);
        --border-light: rgba(0, 0, 0, 0.1);
        --shadow:       0 2px 12px rgba(0, 0, 0, 0.08);
        --shadow-lg:    0 8px 30px rgba(0, 0, 0, 0.12);
    }

    /* --- SYSTEM THEME --- */
    @media (prefers-color-scheme: light) {
        [data-theme="system"] {
            --bg-primary:#EDF1F5; --bg-secondary:#FAFAFA; --bg-tertiary:#FFFFFF;
            --bg-navbar:rgba(250,250,250,0.96); --bg-card:#FFFFFF; --bg-hover:#F0F3F5; --bg-input:#EDF1F5;
            --text-primary:#3D4C5C; --text-secondary:#5C728A; --text-muted:#8BA0B2; --text-bright:#1A1F26;
            --border:rgba(0,0,0,0.06); --border-light:rgba(0,0,0,0.1);
            --shadow:0 2px 12px rgba(0,0,0,0.08); --shadow-lg:0 8px 30px rgba(0,0,0,0.12);
        }
    }

    /* --- RESET & BASE --- */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { 
        background: var(--bg-primary); 
        font-family: var(--font);
        color: var(--text-primary);
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    /* --- DUYURU BARI --- */
    .ann-bar {
        background: var(--accent);
        color: #fff;
        padding: 10px 20px;
        text-align: center;
        font-size: 0.875rem;
        font-weight: 600;
        position: relative;
        z-index: 10001;
    }
    .ann-bar--warning { background: var(--orange); }
    .ann-bar--danger  { background: var(--red); }
    .ann-close {
        position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
        cursor: pointer; opacity: 0.8; background: none; border: none; color: #fff;
        font-size: 1rem; padding: 4px;
    }
    .ann-close:hover { opacity: 1; }

    /* --- HEADER / NAVBAR --- */
    .header-root {
        position: sticky; top: 0; z-index: 9999;
        background: var(--bg-navbar);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
    }
    .header-root.scrolled { box-shadow: var(--shadow); }

    .header-container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    .header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        gap: 1.5rem;
    }

    /* Logo */
    .header-logo a {
        display: flex; align-items: center;
        text-decoration: none; flex-shrink: 0;
    }
    .logo-text {
        font-weight: 900; font-size: 1.55rem;
        color: var(--text-bright); letter-spacing: -0.5px;
        line-height: 1;
        transition: opacity 0.15s;
    }
    .header-logo a:hover .logo-text { opacity: 0.85; }
    .logo-text .logo-ani { color: var(--text-bright); }
    .logo-text .logo-sub { color: var(--accent); }

    /* Arama */
    .header-search { flex: 1; max-width: 500px; position: relative; z-index: 10001; }
    .search-box {
        display: flex; align-items: center;
        border-radius: var(--radius);
        background: var(--bg-input);
        border: 1px solid var(--border);
        overflow: hidden;
        transition: all 0.15s;
    }
    .search-box:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
        background: var(--bg-tertiary);
    }
    .search-box input {
        background: transparent; border: none; color: var(--text-primary);
        padding: 9px 14px; flex: 1; outline: none;
        font-size: 0.9rem; font-family: var(--font); min-width: 0;
    }
    .search-box input::placeholder { color: var(--text-muted); }
    .search-btn {
        background: none; border: none; color: var(--text-muted);
        padding: 0 14px; cursor: pointer; transition: color 0.15s;
    }
    .search-btn:hover { color: var(--accent); }

    /* Arama Önerileri */
    .suggestions-box {
        position: absolute; top: calc(100% + 6px); left: 0; right: 0;
        background: var(--bg-card); border: 1px solid var(--border-light);
        border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
        z-index: 10002; max-height: 420px; overflow-y: auto;
        display: none; padding: 6px;
    }
    .suggestions-category {
        padding: 8px 10px 4px; font-size: 0.7rem; color: var(--text-muted);
        text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em;
    }
    .suggestion-item a {
        display: flex; align-items: center; gap: 12px;
        padding: 8px 10px; border-radius: var(--radius);
        color: var(--text-primary); transition: background 0.15s;
    }
    .suggestion-item a:hover { background: var(--bg-hover); }
    .suggestion-img {
        width: 42px; height: 58px; flex-shrink: 0;
        overflow: hidden; border-radius: var(--radius-sm);
        background: var(--bg-tertiary);
    }
    .suggestion-img img { width: 100%; height: 100%; object-fit: cover; }
    .suggestion-img--user { width: 38px; height: 38px; border-radius: var(--radius-full); }
    .suggestion-img--user img { border-radius: var(--radius-full); }
    .suggestion-text { display: flex; flex-direction: column; min-width: 0; }
    .suggestion-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; font-weight: 500; }
    .suggestion-text small { color: var(--text-muted); font-size: 0.75rem; }

    /* Kullanıcı İşlemleri */
    .header-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }

    .icon-btn {
        position: relative; width: 38px; height: 38px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: var(--radius); color: var(--text-secondary);
        background: transparent; border: none; cursor: pointer;
        font-size: 1.1rem; transition: all 0.15s; text-decoration: none;
    }
    .icon-btn:hover { color: var(--text-bright); background: var(--bg-hover); }

    .badge-count {
        position: absolute; top: 2px; right: 2px;
        background: var(--red); color: #fff;
        border-radius: var(--radius-full);
        font-size: 0.6rem; font-weight: 700;
        min-width: 16px; height: 16px; line-height: 16px;
        text-align: center; padding: 0 4px;
        border: 2px solid var(--bg-navbar);
        opacity: 0; transform: scale(0.5);
        transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: none;
    }
    .badge-count.visible { opacity: 1; transform: scale(1); }

    /* Auth Butonları */
    .btn-login {
        color: var(--text-secondary); font-size: 0.875rem; font-weight: 600;
        padding: 7px 16px; border-radius: var(--radius); transition: all 0.15s;
        background: none; border: none; cursor: pointer; font-family: var(--font);
    }
    .btn-login:hover { color: var(--text-bright); background: var(--bg-hover); }
    .btn-signup {
        background: var(--accent); color: #fff !important;
        font-size: 0.875rem; font-weight: 700;
        padding: 7px 18px; border-radius: var(--radius);
        transition: all 0.15s; display: inline-flex; align-items: center;
        border: none; cursor: pointer; font-family: var(--font);
    }
    .btn-signup:hover { background: var(--accent-dark); transform: translateY(-1px); }

    /* Avatar */
    .user-avatar-btn {
        display: block; width: 38px; height: 38px;
        border-radius: var(--radius-full); overflow: hidden;
        cursor: pointer; flex-shrink: 0;
        border: 2px solid transparent;
        transition: border-color 0.15s;
        background: var(--bg-tertiary); padding: 0;
    }
    .user-avatar-btn:hover { border-color: var(--accent); }
    .user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; border: none; margin: 0; padding: 0; }

    /* Dropdown */
    .dropdown { position: relative; }
    .dropdown-menu {
        display: none; position: absolute; right: 0;
        top: calc(100% + 8px); min-width: 260px;
        background: var(--bg-card); border: 1px solid var(--border-light);
        border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
        z-index: 99999; padding: 6px;
        animation: dropdownIn 0.18s ease-out;
    }
    .dropdown.show > .dropdown-menu { display: block; }

    @keyframes dropdownIn {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .dropdown-header-user {
        padding: 12px 10px; display: flex; align-items: center; gap: 12px;
        border-bottom: 1px solid var(--border); margin-bottom: 4px;
        border-radius: var(--radius) var(--radius) 0 0;
        transition: background 0.15s;
    }
    .dropdown-header-user:hover { background: var(--bg-hover); }
    .dropdown-header-user img { width: 42px; height: 42px; border-radius: var(--radius-full); object-fit: cover; flex-shrink: 0; }
    .dropdown-header-user .user-name { color: var(--text-bright); font-weight: 700; font-size: 0.95rem; }
    .dropdown-header-user .user-handle { color: var(--text-muted); font-size: 0.8rem; }

    .dropdown-item {
        display: flex; align-items: center; gap: 10px;
        padding: 9px 12px; color: var(--text-secondary);
        border-radius: var(--radius); font-size: 0.875rem;
        font-weight: 500; transition: all 0.15s;
    }
    .dropdown-item:hover { background: var(--bg-hover); color: var(--text-bright); }
    .dropdown-item i { width: 18px; text-align: center; font-size: 0.9rem; }

    .dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
    .text-accent { color: var(--accent) !important; }
    .text-red    { color: var(--red) !important; }

    /* Bildirim Paneli */
    .notif-header {
        padding: 12px 14px; font-weight: 700; font-size: 0.95rem;
        color: var(--text-bright); border-bottom: 1px solid var(--border);
        display: flex; align-items: center; justify-content: space-between;
    }
    .notif-header a { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
    .notif-list { max-height: 380px; overflow-y: auto; }
    .notif-item {
        display: flex; gap: 10px; padding: 10px 12px;
        border-bottom: 1px solid var(--border);
        color: var(--text-secondary); font-size: 0.85rem;
        align-items: flex-start; transition: background 0.15s;
    }
    .notif-item:last-child { border-bottom: none; }
    .notif-item:hover { background: var(--bg-hover); }
    .notif-item.unread { background: var(--accent-surface); color: var(--text-primary); }
    .notif-item .notif-icon { font-size: 1rem; width: 22px; text-align: center; margin-top: 2px; flex-shrink: 0; }
    .notif-item .notif-content { flex: 1; min-width: 0; }
    .notif-item .notif-content b { color: var(--text-bright); font-weight: 600; }
    .notif-item .notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; display: block; }
    .notif-none { padding: 30px 20px; text-align: center; color: var(--text-muted); font-size: 0.875rem; }

    /* Navigasyon */
    .main-nav { border-top: 1px solid var(--border); }
    .nav-list { display: flex; gap: 0; list-style: none; align-items: center; }
    .nav-link {
        display: flex; align-items: center; gap: 6px;
        color: var(--text-secondary); font-weight: 600;
        padding: 12px 16px; font-size: 0.85rem;
        transition: all 0.15s;
        border-bottom: 3px solid transparent;
        margin-bottom: -1px; white-space: nowrap;
    }
    .nav-link:hover, .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

    .btn-upload-nav {
        margin-left: auto;
        background: var(--accent); color: #fff !important;
        font-weight: 700; border-radius: var(--radius);
        border-bottom: none !important;
        padding: 8px 18px; font-size: 0.85rem;
        transition: all 0.15s;
    }
    .btn-upload-nav:hover { background: var(--accent-dark); border-bottom-color: transparent !important; }

    /* Tema Değiştirici */
    .theme-toggle {
        display: flex; align-items: center; gap: 4px;
        background: var(--bg-input); border-radius: var(--radius-full); padding: 2px;
    }
    .theme-option {
        width: 28px; height: 28px; border-radius: var(--radius-full);
        border: none; background: transparent; color: var(--text-muted);
        cursor: pointer; display: flex; align-items: center; justify-content: center;
        font-size: 0.75rem; transition: all 0.15s;
    }
    .theme-option.active { background: var(--accent); color: #fff; }
    .theme-option:hover:not(.active) { color: var(--text-primary); }

    /* Mobil */
    .mobile-toggle {
        display: none; background: transparent; border: none;
        color: var(--text-secondary); font-size: 1.3rem;
        cursor: pointer; padding: 8px; border-radius: var(--radius);
    }
    .mobile-toggle:hover { color: var(--text-bright); background: var(--bg-hover); }

    @media (max-width: 1024px) {
        .header-container { padding: 0 1rem; }
        .hide-tablet { display: none; }
    }

    @media (max-width: 768px) {
        .mobile-toggle { display: flex; }
        .header-bar { flex-wrap: wrap; height: auto; padding: 10px 0; }
        .header-logo { order: 1; }
        .header-actions { order: 2; }
        .header-search { order: 3; flex-basis: 100%; max-width: none; margin-top: 8px; }

        .main-nav { display: none; border-top: 1px solid var(--border); }
        .main-nav.active { display: block; }
        .nav-list { flex-direction: column; padding: 8px 0; }
        .nav-link {
            width: 100%; border-bottom: none;
            border-left: 3px solid transparent; padding: 10px 16px; font-size: 0.9rem;
        }
        .nav-link:hover, .nav-link.active {
            border-bottom: none; border-left-color: var(--accent); background: var(--bg-hover);
        }
        .btn-upload-nav { margin: 8px 16px; justify-content: center; text-align: center; }
        .hide-mobile { display: none !important; }
        .dropdown:hover > .dropdown-menu { display: none; }
        .dropdown.show > .dropdown-menu { display: block; }
        .dropdown-menu {
            position: relative; top: 0; right: auto;
            box-shadow: none; border: none; border-radius: 0;
            background: var(--bg-hover); margin-top: 0; padding: 0 0 0 20px;
        }
    }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-full); }
    ::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

    /* Erişilebilirlik */
    .skip-nav {
        position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
        background: var(--accent); color: #fff; padding: 8px 16px;
        border-radius: 0 0 var(--radius) var(--radius); z-index: 100000;
        font-weight: 600; font-size: 0.85rem;
    }
    .skip-nav:focus { top: 0; }
		.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-icon {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

.logo-text {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.55rem;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: opacity 0.15s;
}

.header-logo a:hover .logo-text,
.header-logo a:hover .header-logo-icon {
    opacity: 0.9;
}

.logo-text .logo-ani {
    color: var(--text-bright);
}

.logo-text .logo-sub {
    color: #b14cff;
}
		.logo-text .logo-sub {
    background: linear-gradient(90deg, #8b5cf6 0%, #c026d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
