/* ============================================================================
   HEADER CSS — UI refactor Dilim 2 (2026-07-30)
   header.html'in <style> blogundan AYNEN tasindi; :root token blogu ve global
   * font kurali haric (ikisi de theme.css'te; dark-mode :root yorum icinde,
   dokunulmadi). Token'lar theme.css'ten gelir. Yalniz base.html yukler.
   ========================================================================== */
    /* ===================== MODERN HEADER STYLES ===================== */

    /* ===================== HEADER CONTAINER ===================== */

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        z-index: 1000;
        transition: box-shadow var(--transition-base);
    }

    .header:hover {
        box-shadow: var(--shadow-md);
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 24px;
        max-width: 1920px;
        margin: 0 auto;
        gap: 20px;
    }

    /* ===================== LOGO SECTION ===================== */

    .logo-section {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-shrink: 0;
    }

    .logo-section img {
        max-width: 180px;
        height: auto;
        transition: transform var(--transition-base), opacity var(--transition-base);
    }

    .logo-section img:hover {
        transform: scale(1.03);
        opacity: 0.9;
    }

    /* ===================== SEARCH SECTION ===================== */

    .search-section {
        position: relative;
        flex: 0 1 420px;
    }

    .search-container-modern {
        position: relative;
        width: 100%;
    }

    .search-icon-modern {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 16px;
        pointer-events: none;
        z-index: 2;
        transition: color var(--transition-fast);
    }

    #headerSearchInput {
        width: 100%;
        height: 46px;
        padding: 0 16px 0 48px;
        border: 2px solid var(--border-color);
        border-radius: var(--radius-lg);
        font-size: 14px;
        font-weight: 400;
        color: var(--text-primary);
        background: var(--light-bg);
        transition: all var(--transition-base);
        outline: none;
    }

    #headerSearchInput:hover {
        border-color: var(--border-hover);
        background: var(--white);
    }

    #headerSearchInput:focus {
        background: var(--white);
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    }

    #headerSearchInput:focus + .search-icon-modern {
        color: var(--secondary-color);
    }

    #headerSearchInput::placeholder {
        color: var(--text-light);
        font-weight: 400;
    }

    /* Search Results Dropdown */
    .search-bar {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        min-width: 380px;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        display: none;
        z-index: 1050;
        max-height: 450px;
        overflow: hidden;
        animation: slideDown 0.3s ease;
    }

    .search-mode {
        display: flex;
        gap: 8px;
        padding: 12px 16px;
        background: var(--light-bg);
        border-bottom: 1px solid var(--border-color);
    }

    .search-mode-item {
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
        cursor: pointer;
        border-radius: var(--radius-md);
        transition: all var(--transition-fast);
        user-select: none;
    }

    .search-mode-item:hover {
        background: rgba(74, 144, 226, 0.08);
        color: var(--secondary-color);
    }

    .search-mode-item.active {
        background: var(--secondary-color);
        color: var(--white);
        box-shadow: var(--shadow-xs);
    }

    .search-items {
        max-height: 380px;
        overflow-y: auto;
        padding: 0;
        margin: 0;
    }

    .search-items li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        cursor: pointer;
        border-bottom: 1px solid var(--border-color);
        transition: all var(--transition-fast);
        list-style: none;
    }

    .search-items li:last-child {
        border-bottom: none;
    }

    .search-items li:hover {
        background: var(--light-bg);
        padding-left: 20px;
    }

    .search-items li img {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        object-fit: cover;
        border: 2px solid var(--border-color);
        transition: transform var(--transition-fast);
    }

    .search-items li:hover img {
        transform: scale(1.1);
        border-color: var(--secondary-color);
    }

    /* ===================== NAVIGATION LINKS ===================== */

    .nav-links {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }

    .nav-link-modern {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        color: var(--primary-color);
        background: transparent;
        border-radius: var(--radius-md);
        text-decoration: none;
        transition: all var(--transition-base);
        white-space: nowrap;
        position: relative;
    }

    .nav-link-modern::before {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 80%;
        height: 2px;
        background: var(--primary-color);
        transition: transform var(--transition-base);
    }

    .nav-link-modern:hover::before {
        transform: translateX(-50%) scaleX(1);
    }

    .nav-link-modern i {
        font-size: 16px;
        transition: transform var(--transition-base);
    }

    .nav-link-modern:hover {
        background: rgba(26, 60, 135, 0.06);
        color: var(--primary-hover);
    }

    .nav-link-modern:hover i {
        transform: translateY(-1px);
    }

    .nav-link-modern:active {
        transform: scale(0.97);
    }

    /* ===================== ACTIONS SECTION ===================== */

    .actions-section {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    /* ===================== BUTTONS COMMON STYLES ===================== */

    .hamburger-btn,
    .notification-btn,
    .broken-link-icon-box {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--light-bg);
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-base);
        color: var(--text-primary);
        position: relative;
    }

    .hamburger-btn:hover,
    .notification-btn:hover,
    .broken-link-icon-box:hover {
        background: var(--border-hover);

        box-shadow: var(--shadow-sm);
    }

    .hamburger-btn:active,
    .notification-btn:active,
    .broken-link-icon-box:active {
        transform: translateY(0);
    }

    /* ===================== HAMBURGER MENU ===================== */

    .hamburger-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 320px;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 8px;
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }

    .hamburger-menu.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .menu-item-modern {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        background: transparent;
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-fast);
        width: 100%;
        text-align: left;
    }

    .menu-item-modern i {
        font-size: 18px;
        color: var(--primary-color);
        width: 24px;
        transition: transform var(--transition-fast);
    }

    .menu-item-modern:hover {
        background: var(--light-bg);
        padding-left: 20px;
    }

    .menu-item-modern:hover i {
        transform: scale(1.15);
    }

    .menu-item-modern:active {
        transform: scale(0.98);
    }

    /* ===================== NOTIFICATION SYSTEM ===================== */

    .notification-wrapper,
    .broken-link-wrapper,
    .profile-wrapper {
        position: relative;
    }

    .notification-btn i,
    .broken-link-icon-box i {
        font-size: 20px;
        color: var(--primary-color);
        transition: transform var(--transition-fast);
    }

    .notification-btn:hover i,
    .broken-link-icon-box:hover i {
        transform: scale(1.1) rotate(-5deg);
    }

    /* Badge Styling */
    .notification-badge,
    .broken-link-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 6px;
        background: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
        color: var(--white);
        font-size: 11px;
        font-weight: 700;
        border-radius: var(--radius-full);
        border: 2px solid var(--white);
        box-shadow: var(--shadow-sm);
        animation: pulse 2s infinite;
    }

    /* Notification Dropdown */
    .notification-dropdown,
    .broken-dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: 400px;
        max-height: 550px;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        overflow: hidden;
        z-index: 1001;
    }

    .notification-dropdown.show,
    .broken-dropdown-menu.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    /* Notification Tabs */
    .notif-tabs {
        display: flex;
        background: var(--light-bg);
        border-bottom: 1px solid var(--border-color);
    }

    .notif-tab-btn {
        flex: 1;
        padding: 14px 12px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        cursor: pointer;
        transition: all var(--transition-base);
        position: relative;
    }

    .notif-tab-btn:hover {
        background: rgba(74, 144, 226, 0.05);
        color: var(--secondary-color);
    }

    .notif-tab-btn.active {
        color: var(--secondary-color);
        border-bottom-color: var(--secondary-color);
        font-weight: 600;
        background: rgba(74, 144, 226, 0.08);
    }

    /* Notification Content */
    .notif-content {
        max-height: 480px;
        overflow-y: auto;
    }

    .notification-item {
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        transition: all var(--transition-fast);
    }

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item:hover {
        background: var(--light-bg);
        padding-left: 20px;
    }

    .notification-item p {
        margin: 0 0 8px 0;
        font-size: 14px;
        color: var(--text-primary);
        font-weight: 500;
        line-height: 1.5;
    }

    .notification-item p:last-child {
        margin: 0;
    }

    .notification-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    /* Button Variants */
    .btn-sm-modern {
        padding: 8px 16px;
        font-size: 12px;
        font-weight: 600;
        border-radius: var(--radius-md);
        border: none;
        cursor: pointer;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-xs);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-success-modern {
        background: var(--success-color);
        color: var(--white);
    }

    .btn-success-modern:hover {
        background: var(--success-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-danger-modern {
        background: var(--danger-color);
        color: var(--white);
    }

    .btn-danger-modern:hover {
        background: var(--danger-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-primary-modern {
        background: var(--secondary-color);
        color: var(--white);
    }

    .btn-primary-modern:hover {
        background: var(--secondary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-sm-modern:active {
        transform: translateY(0);
    }

    /* ===================== BROKEN LINKS ===================== */

    .broken-header {
        padding: 16px 20px;
        background: var(--light-bg);
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .broken-header h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .broken-list {
        max-height: 450px;
        overflow-y: auto;
    }

    .broken-item {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: flex-start;
        gap: 12px;
        transition: all var(--transition-fast);
    }

    .broken-item:last-child {
        border-bottom: none;
    }

    .broken-item:hover {
        background: var(--light-bg);
        padding-left: 24px;
    }

    .broken-text {
        flex: 1;
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.6;
    }

    .broken-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .b-action-btn {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-md);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all var(--transition-base);
        font-size: 14px;
        box-shadow: var(--shadow-xs);
    }

    .btn-nav {
        background: #dbeafe;
        color: #0284c7;
    }

    .btn-nav:hover {
        background: #0284c7;
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-fix {
        background: #d1fae5;
        color: #059669;
    }

    .btn-fix:hover {
        background: #059669;
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .b-action-btn:active {
        transform: translateY(0);
    }

    /* ===================== PROFILE SECTION ===================== */

    .profile-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: var(--light-bg);
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-base);
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        white-space: nowrap;
    }

    .profile-btn i {
        font-size: 12px;
        transition: transform var(--transition-fast);
    }

    .profile-btn:hover {
        background: var(--border-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }



    .profile-btn:active {
        transform: translateY(0);
    }

    .profile-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 220px;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        z-index: 1000;
    }

    .profile-dropdown.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .profile-dropdown a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all var(--transition-fast);
        border-bottom: 1px solid var(--border-color);
    }

    .profile-dropdown a:last-child {
        border-bottom: none;
    }

    .profile-dropdown a:hover {
        background: var(--light-bg);
        padding-left: 24px;
    }

    .profile-dropdown a i {
        font-size: 16px;
        color: var(--primary-color);
        transition: transform var(--transition-fast);
    }

    .profile-dropdown a:hover i {
        transform: scale(1.2);
    }

    /* ===================== MOBILE APP BUTTON ===================== */

    .app-button {
        flex-shrink: 0;
    }

    .app-button button {
        padding: 11px 24px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: var(--white);
        border: none;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-sm);
        position: relative;
        overflow: hidden;
    }

    .app-button button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .app-button button:hover::before {
        left: 100%;
    }

    .app-button button:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .app-button button:active {
        transform: translateY(0);
    }

    /* ===================== EMPTY STATE ===================== */

    .empty-state {
        padding: 50px 30px;
        text-align: center;
        color: var(--text-muted);
    }

    .empty-state i {
        font-size: 48px;
        margin-bottom: 16px;
        color: var(--border-hover);
        opacity: 0.5;
    }

    .empty-state p {
        margin: 8px 0 4px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-secondary);
    }

    .empty-state span {
        font-size: 13px;
        color: var(--text-light);
    }

    /* ===================== SCROLLBAR STYLING ===================== */

    .search-items::-webkit-scrollbar,
    .notif-content::-webkit-scrollbar,
    .hamburger-menu::-webkit-scrollbar,
    .broken-list::-webkit-scrollbar {
        width: 6px;
    }

    .search-items::-webkit-scrollbar-track,
    .notif-content::-webkit-scrollbar-track,
    .hamburger-menu::-webkit-scrollbar-track,
    .broken-list::-webkit-scrollbar-track {
        background: var(--lighter-bg);
        border-radius: var(--radius-sm);
    }

    .search-items::-webkit-scrollbar-thumb,
    .notif-content::-webkit-scrollbar-thumb,
    .hamburger-menu::-webkit-scrollbar-thumb,
    .broken-list::-webkit-scrollbar-thumb {
        background: var(--border-hover);
        border-radius: var(--radius-sm);
        transition: background var(--transition-fast);
    }

    .search-items::-webkit-scrollbar-thumb:hover,
    .notif-content::-webkit-scrollbar-thumb:hover,
    .hamburger-menu::-webkit-scrollbar-thumb:hover,
    .broken-list::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

    /* ===================== ANIMATIONS ===================== */

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.12);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    /* ===================== RESPONSIVE DESIGN ===================== */

    /* Large Tablets and Small Desktops */
    @media screen and (max-width: 1200px) {
        .nav-links {
            display: none;
        }

        .search-section {
            flex: 0 1 320px;
        }

        .notification-dropdown,
        .broken-dropdown-menu {
            width: 360px;
        }
    }

    /* Tablets */
    @media screen and (max-width: 768px) {
        .header-container {
            padding: 10px 16px;
            gap: 12px;
        }

        .logo-section {
            gap: 12px;
        }

        .logo-section img {
            max-width: 140px;
        }

        .search-section {
            flex: 1;
            max-width: 240px;
        }

        #headerSearchInput {
            height: 42px;
            font-size: 13px;
            padding: 0 12px 0 42px;
        }

        .search-icon-modern {
            left: 14px;
            font-size: 14px;
        }

        .search-bar {
            min-width: 320px;
        }

        .notification-dropdown,
        .broken-dropdown-menu {
            width: 340px;
        }

        .hamburger-btn,
        .notification-btn,
        .broken-link-icon-box {
            width: 42px;
            height: 42px;
        }

        .profile-btn {
            padding: 9px 14px;
            font-size: 13px;
        }

        .app-button button {
            padding: 9px 18px;
            font-size: 13px;
        }

        .actions-section {
            gap: 8px;
        }
    }

    /* Mobile Phones */
    @media screen and (max-width: 480px) {
        .header-container {
            padding: 8px 12px;
            gap: 8px;
        }

        .logo-section {
            gap: 8px;
        }

        .logo-section img {
            max-width: 110px;
        }

        .search-section {
            max-width: 160px;
        }

        #headerSearchInput {
            height: 38px;
            font-size: 12px;
            padding: 0 10px 0 36px;
            border-radius: var(--radius-md);
        }

        .search-icon-modern {
            left: 12px;
            font-size: 13px;
        }

        .search-bar {
            min-width: 280px;
            max-width: 90vw;
            left: auto;
            right: 0;
        }

        .notification-dropdown,
        .broken-dropdown-menu {
            width: 300px;
            max-width: 90vw;
            left: auto;
            right: 0;
        }

        .hamburger-btn,
        .notification-btn,
        .broken-link-icon-box {
            width: 38px;
            height: 38px;
        }

        .hamburger-btn i,
        .notification-btn i,
        .broken-link-icon-box i {
            font-size: 18px;
        }

        .profile-btn {
            padding: 8px 12px;
            font-size: 12px;
        }

        .app-button {
            display: none;
        }

        .actions-section {
            gap: 6px;
        }

        .menu-item-modern {
            padding: 10px 14px;
            font-size: 13px;
        }

        .notification-item {
            padding: 14px;
        }

        .btn-sm-modern {
            padding: 6px 12px;
            font-size: 11px;
        }

        .hamburger-menu {
            min-width: 280px;
        }
    }

    /* Extra Small Devices */
    @media screen and (max-width: 360px) {
        .header-container {
            padding: 6px 10px;
        }

        .logo-section img {
            max-width: 100px;
        }

        .search-section {
            max-width: 140px;
        }

        #headerSearchInput {
            height: 36px;
            font-size: 11px;
        }

        .hamburger-btn,
        .notification-btn,
        .broken-link-icon-box {
            width: 36px;
            height: 36px;
        }
    }

    /* Landscape Mobile */
    @media screen and (max-width: 768px) and (orientation: landscape) {
        .notification-dropdown,
        .broken-dropdown-menu {
            max-height: 60vh;
        }

        .search-bar {
            max-height: 250px;
        }
    }

    /* Touch Device Optimizations */
    @media (hover: none) and (pointer: coarse) {
        .hamburger-btn,
        .notification-btn,
        .broken-link-icon-box,
        .profile-btn,
        .b-action-btn,
        .btn-sm-modern {
            min-height: 44px;
            min-width: 44px;
        }

        .menu-item-modern,
        .notification-item,
        .search-items li,
        .profile-dropdown a {
            min-height: 48px;
        }
    }

    /* Print Styles */
    @media print {
        .header {
            position: static;
            box-shadow: none;
            border-bottom: 1px solid var(--text-muted);
        }

        .search-section,
        .actions-section,
        .nav-links {
            display: none;
        }
    }

    /* Dark Mode Support (Optional) */
    @media (prefers-color-scheme: dark) {
        /* Uncomment to enable dark mode support */
        /*
        :root {
            --primary-color: #4a90e2;
            --light-bg: #1e293b;
            --white: #0f172a;
            --border-color: #334155;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
        }
        */
    }

    /* Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

/* ============================================================================
   DILIM 2B (2026-07-30) — govde markup'indan tasinan inline stiller.
   Degerler kaldirilan style= atributlarinin birebir kopyasi, renkler token.
   .notif-tabs/.notif-tab-btn BILEREK yok: yukaridaki (eski "olu") yazarli
   kurallar artik canli ve inline'dan daha iyi (hover/active token'li).
   ========================================================================== */

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
}

.header-content {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.hdr-brand-group { display: flex; align-items: center; gap: 15px; }
.hdr-brand-group > div { position: relative; }
.hdr-logo-link { display: flex; align-items: center; }
.hdr-logo-img { max-width: 140px; height: auto; }

.search-containerr { position: relative; display: flex; align-items: center; }
.search-containerr .search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 14px;
}
#headerSearchInput {
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    height: 32px;
    width: 240px;
    border-radius: var(--radius-full);
    padding-left: 32px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}
#headerSearchInput:focus {
    background: var(--white);
    border-color: var(--secondary-color);
}
#search-results.search-bar { top: 40px; }

.hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-right > div { position: relative; }

.hdr-nav {
    display: flex;
    gap: 8px;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid var(--lighter-bg);
}
.hdr-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    text-decoration: none;
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 500;
    font-size: 10px;
    min-width: 65px;
    text-align: center;
    gap: 2px;
    transition: background-color var(--transition-fast);
}
.hdr-nav-link i { font-size: 16px; }
.hdr-nav-link:hover { background-color: var(--lighter-bg); color: var(--primary-hover); }

#hamburgerMenu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}
#hamburgerMenu:hover { color: var(--primary-color); }

.menu {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    position: absolute;
    top: 45px;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px;
    z-index: 1000;
    min-width: 300px;
    gap: 5px;
    max-height: 80vh;
    overflow-y: auto;
}
.menu-divider { width: 100%; height: 1px; background: var(--lighter-bg); margin: 5px 0; }
.btn-menu-item {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-menu-item:hover { background-color: var(--lighter-bg); }
.btn-menu-item i { color: var(--primary-color); }

.notification-btn { position: relative; padding: 8px; }
.notification-btn .fa-bell {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.notification-btn:hover .fa-bell { color: var(--primary-color); }
.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid var(--white);
}
.notification-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: -50px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-width: 320px;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
}

/* ============================================================================
   DILIM 9 (2026-07-30) — gorunur cila: bar/nav/menu mikro-etkilesimleri.
   Dilim 2B kurallarindan SONRA gelir, ayni ozgullukte olanlar burada kazanir.
   ========================================================================== */

.header-wrapper {
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.hdr-nav-link {
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.hdr-nav-link i { color: var(--primary-color); }
.hdr-nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--primary-color);
    transform: translateY(-1px);
}
.hdr-nav-link { transition: all var(--transition-fast); }

#headerSearchInput {
    background: var(--lighter-bg);
    border-color: transparent;
}
#headerSearchInput:focus {
    background: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.10);
    width: 280px;
}
#headerSearchInput { transition: all 0.25s ease; }

.menu,
.notification-dropdown {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.btn-menu-item { transition: background-color var(--transition-fast), padding-left var(--transition-fast); }
.btn-menu-item:hover { background-color: rgba(var(--bs-primary-rgb), 0.06); padding-left: 16px; }

.notification-btn { border-radius: var(--radius-full); transition: background-color var(--transition-fast); }
.notification-btn:hover { background-color: var(--lighter-bg); }
