/* ============================================
   MODERN NEXT-GEN HEADER STYLES
   Glassmorphism, Animations, Modern UI/UX
   ============================================ */

:root {
    --header-height: 70px;
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --header-border: rgba(0, 0, 0, 0.08);
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --hover-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-hover: #4F46E5;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MODERN HEADER CONTAINER
   ============================================ */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    z-index: 9999;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
}

/* WordPress Admin Bar Uyumu - Daha agresif */
.admin-bar .modern-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .modern-header {
        top: 46px !important;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .modern-header {
        top: 46px !important;
    }
}

.modern-header.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-blur-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

.modern-header > .container {
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 1.5rem;
}

/* ============================================
   LOGO SECTION
   ============================================ */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s var(--transition-smooth);
}

.logo-link:hover .logo-icon {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: rotate(5deg);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-link span {
    font-size: inherit;
    font-weight: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-container img {
    max-height: 45px;
    width: auto;
    transition: all 0.3s var(--transition-smooth);
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-list > li > a,
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: transparent;
}

.nav-list > li > a::before,
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
    z-index: -1;
    border-radius: 14px;
    pointer-events: none;
}

.nav-list > li > a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 2px 2px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list > li > a:hover,
.nav-link:hover {
    color: #4F46E5;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nav-list > li > a:hover::before,
.nav-link:hover::before {
    opacity: 1;
}

.nav-list > li > a:hover::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-list > li.current-menu-item > a,
.nav-link.current-menu-item,
.current-menu-item > .nav-link {
    color: #6366F1;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.nav-list > li.current-menu-item > a::before,
.nav-link.current-menu-item::before,
.current-menu-item > .nav-link::before {
    opacity: 1;
}

.nav-list > li.current-menu-item > a::after,
.nav-link.current-menu-item::after,
.current-menu-item > .nav-link::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: all 0.3s var(--transition-smooth);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-link:hover .nav-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.nav-link.current-menu-item .nav-icon,
.current-menu-item > .nav-link .nav-icon {
    color: #6366F1;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.4));
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

/* Membership Badge */
.membership-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition-smooth);
    cursor: default;
}

.membership-badge-modern:hover {
    transform: translateY(-2px);
}

.membership-badge-modern.membership-premium_monthly {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #7C3AED;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.membership-badge-modern.membership-premium_yearly {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Icon Buttons */
.header-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
}

.header-icon-btn:hover {
    background: white;
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366F1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.header-icon-btn svg {
    transition: all 0.3s var(--transition-smooth);
}

.header-icon-btn:hover svg {
    transform: scale(1.1);
}

/* Notification Badge */
.notification-badge,
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    }
}

/* ============================================
   USER MENU
   ============================================ */
.user-menu-container {
    position: relative;
}

.user-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: white;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    overflow: visible;
}

.user-avatar:hover {
    border-color: #6366F1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.user-avatar img,
.user-avatar .avatar-img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.dropdown-arrow {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: all 0.3s var(--transition-smooth);
    z-index: 1;
}

.dropdown-arrow svg {
    color: white;
}

.user-avatar:hover .dropdown-arrow,
.user-avatar.active .dropdown-arrow {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--transition-smooth);
    z-index: 10001;
    overflow: hidden;
    pointer-events: none;
}

.user-dropdown.show {
    pointer-events: auto;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-user-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.user-dropdown .dropdown-menu {
    padding: 0.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.user-dropdown .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s var(--transition-smooth);
    font-size: 0.9375rem;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366F1;
    transform: translateX(4px);
}

.dropdown-item svg {
    color: var(--text-secondary);
    transition: all 0.2s var(--transition-smooth);
}

.dropdown-item:hover svg {
    color: #6366F1;
    transform: scale(1.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0.5rem 0;
}

.logout-item {
    color: #EF4444;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
}

.logout-item svg {
    color: #EF4444;
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-modern {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary-modern:hover {
    background: var(--hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary-modern {
    background: rgba(249, 250, 251, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary-modern:hover {
    background: white;
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366F1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* ============================================
   MOBILE MENU
   ============================================ */
/* Note: .mobile-menu-toggle styles are defined in HAMBURGER MENU ENHANCED section below */

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.3s var(--transition-smooth);
    z-index: 9998;
    overflow-y: auto;
    pointer-events: none;
}

.mobile-menu.show {
    pointer-events: auto;
}

/* Admin bar varsa mobile menu pozisyonu */
body.admin-bar .mobile-menu {
    top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .mobile-menu {
        top: calc(var(--header-height) + 46px);
    }
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 0.5rem;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
}

.mobile-nav-list a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366F1;
    transform: translateX(8px);
}

.mobile-nav-list svg {
    color: var(--text-secondary);
    transition: all 0.3s var(--transition-smooth);
}

.mobile-nav-list a:hover svg {
    color: #6366F1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .header-search.desktop-search {
        flex: 0 1 240px;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .header-search.desktop-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-wrapper {
        gap: 1rem;
    }

    .membership-badge-modern {
        display: none;
    }
}

@media (max-width: 768px) {
    .modern-header {
        height: 60px;
    }
    
    .header-wrapper {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .header-icon-btn {
        width: 38px;
        height: 38px;
    }
    
    .header-icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-modern {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-secondary-modern {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.5rem;
    }

    .header-icon-btn:not(.cart-button) {
        display: none;
    }

    .user-dropdown {
        min-width: calc(100vw - 2rem);
        right: 1rem;
    }

    /* Mobile menu toggle her zaman gorunur olmali */
    .mobile-menu-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
    }

    .hamburger-line:nth-child(1) {
        top: 12px;
    }

    .hamburger-line:nth-child(2) {
        top: 19px;
    }

    .hamburger-line:nth-child(3) {
        top: 26px;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        top: 19px;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        top: 19px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modern-header {
    animation: slideInDown 0.5s var(--transition-smooth);
}

/* Sticky Header Hide/Show Animation */
.modern-header.header-hidden {
    transform: translateY(-100%);
}

.modern-header.header-visible {
    transform: translateY(0);
}

/* Sticky header compact mode on scroll */
.modern-header.scrolled .logo-icon {
    width: 36px;
    height: 36px;
}

.modern-header.scrolled .logo-text {
    font-size: 1.125rem;
}

.modern-header.scrolled .nav-list > li > a,
.modern-header.scrolled .nav-link {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Cart hover effect */
.cart-button:hover .cart-badge {
    animation: bounce 0.5s ease;
}

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

/* Notification pulse */
@keyframes notificationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notification-badge {
    animation: notificationPulse 2s infinite;
}

/* ============================================
   NOTIFICATION DROPDOWN - ENHANCED
   ============================================ */
.notification-container {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -80px;
    width: 380px;
    max-height: 480px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s var(--transition-smooth);
    z-index: 10002;
    overflow: hidden;
    pointer-events: none;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 90px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: 1;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notif-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notif-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 50%;
}

.notif-mark-read {
    background: none;
    border: none;
    color: #6366F1;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notif-mark-read:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.notif-list {
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notif-item:hover {
    background: rgba(99, 102, 241, 0.04);
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.06);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #6366F1 0%, #8B5CF6 100%);
}

.notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.notif-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.notif-avatar svg {
    width: 22px;
    height: 22px;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.375rem;
}

.notif-text strong {
    font-weight: 600;
    color: #6366F1;
}

.notif-time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.notif-time svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.notif-loading,
.notif-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.notif-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.notif-loading::before {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366F1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notif-empty svg {
    width: 48px;
    height: 48px;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.notif-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #6366F1;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notif-footer:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4F46E5;
}

/* ============================================
   SEARCH BAR - MODERN DESIGN
   ============================================ */
.header-search {
    position: relative;
    flex: 0 1 320px;
    margin: 0 1rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem 0 2.75rem;
    background: rgba(249, 250, 251, 0.8);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all 0.3s var(--transition-smooth);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:focus {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
    background: white;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input:focus + .search-icon,
.search-wrapper:hover .search-icon {
    color: #6366F1;
}

.search-shortcut {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-shortcut kbd {
    font-family: inherit;
    font-size: 0.75rem;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s var(--transition-smooth);
    z-index: 10003;
    max-height: 400px;
    overflow-y: auto;
}

.search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.04);
}

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

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366F1;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* ============================================
   ENHANCED MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    transform: translateX(100%);
    transition: transform 0.4s var(--transition-smooth);
    z-index: 9998;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.admin-bar .mobile-menu {
    top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .mobile-menu {
        top: calc(var(--header-height) + 46px);
    }
}

.mobile-menu.show {
    transform: translateX(0);
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9997;
    pointer-events: none;
}

.mobile-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Admin bar icin backdrop ayarlamasi */
body.admin-bar .mobile-menu-backdrop {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .mobile-menu-backdrop {
        top: 46px;
    }
}

.mobile-menu-content {
    padding: 1.5rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Mobile Search */
.mobile-search {
    margin-bottom: 1.5rem;
}

.mobile-search .search-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    background: rgba(249, 250, 251, 0.8);
    border: 2px solid var(--color-border);
    border-radius: 14px;
    font-size: 1rem;
}

.mobile-search .search-icon {
    left: 1rem;
}

/* Mobile Navigation Enhanced */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    margin-bottom: 0.25rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.mobile-menu.show .mobile-nav-list > li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.show .mobile-nav-list > li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(9) { transition-delay: 0.45s; }
.mobile-menu.show .mobile-nav-list > li:nth-child(10) { transition-delay: 0.5s; }

/* Mobile user section animasyonu */
.mobile-menu .mobile-user-section {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.show .mobile-user-section {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

/* Mobile search animasyonu */
.mobile-menu .mobile-search {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.show .mobile-search {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Mobile auth buttons animasyonu */
.mobile-menu .mobile-auth-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.show .mobile-auth-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 500;
    border-radius: 14px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.mobile-nav-list > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li.current-menu-item > a {
    background: rgba(99, 102, 241, 0.08);
    color: #6366F1;
    padding-left: 1.5rem;
}

.mobile-nav-list > li > a:hover::before,
.mobile-nav-list > li.current-menu-item > a::before {
    height: 60%;
}

.mobile-nav-list > li > a svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.mobile-nav-list > li > a:hover svg,
.mobile-nav-list > li.current-menu-item > a svg {
    color: #6366F1;
    transform: scale(1.1);
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-mobile-full {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Mobile User Section */
.mobile-user-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    overflow: hidden;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* Mobile Quick Actions */
.mobile-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mobile-quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-quick-action:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.mobile-quick-action svg {
    width: 24px;
    height: 24px;
    color: #6366F1;
}

.mobile-quick-action span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   HAMBURGER MENU ENHANCED
   ============================================ */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 10000;
}

.mobile-menu-toggle:hover {
    background: white;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 14px;
}

.hamburger-line:nth-child(2) {
    top: 21px;
}

.hamburger-line:nth-child(3) {
    top: 28px;
}

.mobile-menu-toggle.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.mobile-menu-toggle.active .hamburger-line {
    background: #6366F1;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Mobile menu toggle responsive visibility */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* ============================================
   ENHANCED USER DROPDOWN
   ============================================ */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s var(--transition-smooth);
    z-index: 10001;
    overflow: hidden;
    pointer-events: none;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: 1;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.dropdown-user-info > img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dropdown-user-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.user-dropdown .dropdown-menu {
    padding: 0.5rem !important;
}

.user-dropdown .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s var(--transition-smooth);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366F1;
    transform: translateX(4px);
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.2s var(--transition-smooth);
    flex-shrink: 0;
}

.dropdown-item:hover svg {
    color: #6366F1;
    transform: scale(1.1);
}

.dropdown-item.admin-item {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
}

.dropdown-item.admin-item:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
}

.dropdown-item.admin-item svg {
    color: #059669;
}

.logout-item {
    color: #EF4444 !important;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #DC2626 !important;
}

.logout-item svg {
    color: #EF4444 !important;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
    margin: 0.5rem 1rem;
}

/* ============================================
   BODY STATES
   ============================================ */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* Mobile menu acikken header her zaman gorunur olmali */
body.mobile-menu-open .modern-header {
    transform: translateY(0) !important;
}

body.mobile-menu-open .modern-header.header-hidden {
    transform: translateY(0) !important;
}

/* Spin animation for search loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}
