/* ========================================
   Header Component Styles - MS Eğitim
   ======================================== */

/* Header - Professional Theme System */
.header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: var(--transition);
}

/* Dark theme header */
[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.82);
    border-bottom-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.92);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem var(--space-xl);
    height: 64px;
}

/* Logo - Semantic theme system */
.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary);
    text-decoration: none;
    border-radius: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* Dark theme logo */
[data-theme="dark"] .logo {
    color: var(--text-dark);
}

/* Logo hover animasyonu kaldırıldı */

/* Logo Image & Text Styles - WebP Optimized */
.logo-image {
    height: 42px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    /* WebP için optimize edilmiş rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.logo-text {
    font-weight: var(--font-extrabold);
    font-size: 1rem;
    color: var(--primary); /* Light temada mavi */
    transition: var(--transition);
    line-height: 1.05;
    letter-spacing: 0;
    white-space: nowrap;
}

.logo-slogan {
    font-size: 0.64rem;
    font-weight: var(--font-medium);
    color: var(--text-light);
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
}

/* Dark theme için logo text */
[data-theme="dark"] .logo-text {
    color: var(--white); /* Dark temada beyaz */
}

/* Dark theme için logo slogan */
[data-theme="dark"] .logo-slogan {
    color: rgba(255, 255, 255, 0.6); /* Dark temada beyaz şeffaf */
}

/* Dark theme için logo düzenlemeleri */
[data-theme="dark"] .logo-image {
    filter: brightness(1.1) contrast(1.05);
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    .logo-image {
        height: 36px;
        max-width: 140px;
    }
    
    .logo-text {
        font-size: var(--text-base);
    }
    
    .logo-slogan {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 32px;
        max-width: 120px;
    }
    
    .logo-text {
        font-size: var(--text-sm);
    }
    
    .logo-slogan {
        font-size: 0.5rem;
    }
}

.logo i {
    font-size: var(--text-xl);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0.28rem;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .nav-menu {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(30, 41, 59, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle .dropdown-arrow {
    margin-left: auto;
}

.dropdown-arrow {
    font-size: 0.7rem;  /* Daha küçük dropdown ok */
    transition: var(--transition);
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    background: rgba(255, 255, 255, 0.96);
    min-width: 250px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: var(--z-dropdown);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    padding: 0.4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Dark tema için dropdown */
[data-theme="dark"] .dropdown-menu {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 0;
    border-radius: 12px;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

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

.dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(2px);
}

/* Dark tema için dropdown item */
[data-theme="dark"] .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: #475569 !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.nav-link {
    font-family: var(--font-family);
    color: var(--text);
    text-decoration: none;
    font-weight: var(--font-semibold);
    padding: 0.55rem 0.82rem;
    border-radius: 999px;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.86rem;
    line-height: 1;
}

.nav-link i:not(.dropdown-arrow) {
    font-size: 0.82rem;
    color: var(--primary);
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 22px rgba(0, 29, 132, 0.22);
}

.nav-link.active i:not(.dropdown-arrow) {
    color: var(--white);
    opacity: 1;
}

/* Dark theme nav-links */
[data-theme="dark"] .nav-link {
    color: var(--text);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    box-shadow: none;
}

[data-theme="dark"] .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

[data-theme="dark"] .nav-link i:not(.dropdown-arrow) {
    color: var(--primary);
}

/* Header Actions - Sepet + Kompakt auth ve theme toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   Theme Toggle Button - Header
   ======================================== */

/* Desktop Theme Toggle */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(var(--primary-rgb, 0, 29, 132), 0.1);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(var(--primary-rgb, 0, 29, 132), 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 0, 29, 132), 0.2);
}

.theme-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(var(--primary-rgb, 0, 29, 132), 0.15);
}

.theme-toggle-btn .theme-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Theme icon rotation animation */
.theme-toggle-btn:hover .theme-icon {
    transform: rotate(15deg);
}

/* Dark theme styles for theme toggle */
[data-theme="dark"] .theme-toggle-btn {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Theme icon change for dark mode */
[data-theme="dark"] .theme-toggle-btn .theme-icon:before {
    content: "\f185"; /* fa-sun */
}



/* ========================================
   Responsive Theme Toggle
   ======================================== */

/* Tablet ve küçük ekranlar için */
@media (max-width: 768px) {
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        margin-right: 0.25rem;
    }
    
    .theme-toggle-btn .theme-icon {
        font-size: 0.9rem;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    .theme-toggle-btn {
        width: 30px;
        height: 30px;
    }
    
    .theme-toggle-btn .theme-icon {
        font-size: 0.85rem;
    }
}

/* Focus states for accessibility */
.theme-toggle-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

[data-theme="dark"] .theme-toggle-btn:focus {
    outline-color: var(--primary-light);
}

/* Eğitim Sepeti Styles */
.cart-section {
    display: flex !important;
    align-items: center;
    position: relative;
}

.cart-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

/* Light tema sepet stilleri */
.cart-btn:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary-border-soft);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-btn i {
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.cart-btn:hover i {
    transform: scale(1.05);
    color: var(--primary);
}

/* Sepet Count Badge - Varsayılan boş sepet stili */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(156, 163, 175, 0.8); /* Gri, şeffaf - kırmızı değil! */
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2); /* Gri gölge */
    border: 2px solid var(--white);
    z-index: 10;
    opacity: 0.9;
}

.cart-count:empty {
    display: none;
}

/* Boş sepet stili - sıfırken daha şeffaf görünüm */
.cart-count.empty-cart {
    background: rgba(156, 163, 175, 0.8) !important; /* Gri, şeffaf - !important ile override */
    color: #ffffff !important;
    opacity: 0.9 !important;
    box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2) !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important; /* Hızlı geçiş */
}

/* Boş sepet hover efekti */
.cart-btn:hover .cart-count.empty-cart {
    background: rgba(107, 114, 128, 0.9);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Dolu sepet stili - yeşil/mavi tonlar */
.cart-count.has-items {
    background: #10b981; /* Yeşil - başarı rengi */
    color: #ffffff;
    animation: pulse-success 2s infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Badge hover efekti */
.cart-btn:hover .cart-count {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.4);
}

.cart-btn:hover .cart-count.has-items {
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
}

/* Başarı animasyonu */
@keyframes pulse-success {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); 
    }
    50% { 
        box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5); 
    }
}

/* Dark tema sepet stilleri */
[data-theme="dark"] .cart-btn {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.16);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .cart-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cart-btn:hover i {
    color: var(--primary-light);
}

[data-theme="dark"] .cart-count {
    border-color: var(--bg-primary);
    background: rgba(75, 85, 99, 0.8); /* Dark tema için gri - kırmızı değil! */
    box-shadow: 0 2px 6px rgba(75, 85, 99, 0.3); /* Gri gölge */
}

[data-theme="dark"] .cart-btn:hover .cart-count {
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.5);
}

/* Dark tema boş sepet */
[data-theme="dark"] .cart-count.empty-cart {
    background: rgba(75, 85, 99, 0.8) !important;
    border-color: var(--bg-primary) !important;
    box-shadow: 0 2px 6px rgba(75, 85, 99, 0.3) !important;
    transition: all 0.15s ease !important;
}

[data-theme="dark"] .cart-btn:hover .cart-count.empty-cart {
    background: rgba(55, 65, 81, 0.9);
    box-shadow: 0 2px 8px rgba(55, 65, 81, 0.4);
}

/* Dark tema dolu sepet */
[data-theme="dark"] .cart-count.has-items {
    background: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

[data-theme="dark"] .cart-btn:hover .cart-count.has-items {
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.5);
}

/* Sepet aktif durumda ek stiller */
.cart-btn.has-items {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary-border-soft);
    box-shadow: 0 10px 22px rgba(0, 29, 132, 0.12);
}

.cart-btn.has-items:hover {
    background: rgba(0, 29, 132, 0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.cart-btn.has-items .cart-count {
    background: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Dark tema aktif sepet */
[data-theme="dark"] .cart-btn.has-items {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    border-color: var(--primary-light);
}

[data-theme="dark"] .cart-btn.has-items:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Header Auth ve Hesap Menüsü */
.guest-auth-menu,
.account-menu {
    position: relative;
}

.auth-entry,
.account-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 0.95rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: var(--font-bold);
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.auth-entry {
    border: 0;
    font-family: inherit;
}

.account-trigger {
    background: rgba(248, 250, 252, 0.86);
    border-color: rgba(226, 232, 240, 0.9);
    color: var(--text-dark);
    max-width: 164px;
}

.auth-entry:hover,
.account-trigger:hover,
.guest-auth-menu:focus-within .auth-entry,
.guest-auth-menu.auth-menu-active .auth-entry,
.account-menu:focus-within .account-trigger,
.account-menu:hover .account-trigger {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.auth-entry:hover,
.guest-auth-menu:focus-within .auth-entry,
.guest-auth-menu.auth-menu-active .auth-entry {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
    color: var(--white);
}

.account-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-chevron {
    font-size: 0.65rem;
    opacity: 0.65;
}

.auth-entry-chevron {
    font-size: 0.62rem;
    opacity: 0.78;
    transition: transform 0.18s ease;
}

.guest-auth-menu:hover .auth-entry-chevron,
.guest-auth-menu:focus-within .auth-entry-chevron,
.guest-auth-menu.auth-menu-active .auth-entry-chevron {
    transform: rotate(180deg);
}

.auth-entry-menu,
.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 185px;
    padding: 0.45rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: var(--z-dropdown);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.guest-auth-menu:hover .auth-entry-menu,
.guest-auth-menu:focus-within .auth-entry-menu,
.guest-auth-menu.auth-menu-active .auth-entry-menu,
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-entry-menu a,
.account-dropdown a,
.account-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 0.86rem;
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition);
}

.auth-entry-menu i,
.account-dropdown i {
    width: 16px;
    color: var(--primary);
    text-align: center;
}

.auth-entry-menu a:hover,
.account-dropdown a:hover,
.account-dropdown button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.account-dropdown a:last-child {
    color: var(--error);
}

.account-dropdown a:last-child i {
    color: var(--error);
}

.account-dropdown a:last-child:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

[data-theme="dark"] .account-trigger {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.16);
    color: var(--text-dark);
}

[data-theme="dark"] .auth-entry-menu,
[data-theme="dark"] .account-dropdown {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .auth-entry-menu a,
[data-theme="dark"] .account-dropdown a,
[data-theme="dark"] .account-dropdown button {
    color: var(--text);
}

[data-theme="dark"] .auth-entry-menu a:hover,
[data-theme="dark"] .account-dropdown a:hover,
[data-theme="dark"] .account-dropdown button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

[data-theme="dark"] .account-dropdown .theme-icon:before {
    content: "\f185";
}





/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
    padding: 0;
    border-radius: 12px;
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary-border-soft);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: var(--space-md);
    right: var(--space-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    overflow: hidden;
    z-index: var(--z-dropdown);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Dark tema için mobile menu */
[data-theme="dark"] .mobile-menu {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.18);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

.mobile-menu-content {
    padding: 0.75rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.82rem 0.9rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 14px;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    margin-bottom: 0.25rem;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(2px);
}

/* Dark theme mobile nav-links */
[data-theme="dark"] .mobile-nav-link {
    color: var(--text);
}

[data-theme="dark"] .mobile-nav-link:hover,
[data-theme="dark"] .mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

/* Dark theme mobile dropdown */
[data-theme="dark"] .mobile-dropdown-header {
    color: var(--text);
}

[data-theme="dark"] .mobile-dropdown-header:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

/* Mobile Dropdown Section */
.mobile-dropdown-section {
    margin: var(--space-sm) 0;
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
    padding: 0.82rem 0.9rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 14px;
    transition: var(--transition);
    margin-bottom: 0.25rem;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
}

.mobile-nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-nav-main i {
    width: 20px;
    text-align: center;
}

.mobile-dropdown-header:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(2px);
}

.mobile-dropdown-header .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
    margin-left: auto;
}

.mobile-dropdown-header:hover .dropdown-arrow {
    opacity: 1;
}

.mobile-dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-dropdown-content {
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-content.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.mobile-nav-link.sub-item {
    margin-left: 0.75rem;
    padding: 0.68rem 0.85rem;
    font-size: var(--text-sm);
    color: var(--text-light);
    border-left: 2px solid var(--border-light);
}

.mobile-nav-link.sub-item:hover,
.mobile-nav-link.sub-item.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-soft);
}



/* Mobile Actions - Auth butonları */
.mobile-actions {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-sm);
}

/* Mobile Auth Compact */
.mobile-auth-compact,
.mobile-user-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-weight: var(--font-medium);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.mobile-auth-login:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mobile-auth-register {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.mobile-auth-register:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mobile-auth-profile:hover {
    background: var(--bg-hover);
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-auth-logout {
    color: var(--error);
    border-color: rgba(220, 38, 38, 0.3);
}

.mobile-auth-logout:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: #dc2626;
}

/* Dark theme mobile auth */
[data-theme="dark"] .mobile-auth-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .mobile-auth-login:hover {
    background: var(--primary);
    color: var(--white);
}

[data-theme="dark"] .mobile-auth-register {
    background: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .mobile-auth-profile:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Header Scroll Effect */
.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(20px) saturate(1.22);
    -webkit-backdrop-filter: blur(20px) saturate(1.22);
}

/* Dark theme scroll effect */
[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.92) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

/* Mobile Right Actions - Sepet + Hamburger yan yana */
.mobile-right-actions {
    display: none;
    align-items: center;
    gap: 12px; /* Hamburger menü ile sepet ikonu arasında boşluk */
}

/* Responsive Design */
@media (max-width: 968px) {  /* Breakpoint artırıldı - daha erken mobile moda geçiş */
    .nav-menu {
        display: none;
    }
    
    /* Mobile'da header auth butonlarını gizle - hamburger menüde zaten var */
    .auth-compact,
    .user-compact,
    .guest-auth-menu,
    .account-menu {
        display: none !important;
    }
    
    /* Mobile'da header'daki desktop sepeti tamamen gizle */
    .header-actions .desktop-cart {
        display: none !important;
    }
    
    /* Mobile right actions'ı göster */
    .mobile-right-actions {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: 0;
    }
    
    /* Mobile sepet boyutu - hamburger ile aynı */
    .mobile-right-actions .cart-btn {
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0;
        margin: 0;
        border-radius: 12px;
    }
    
    .cart-btn i {
        font-size: 0.9rem;
    }
    
    .cart-count {
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
        top: -5px;
        right: -5px;
        border-width: 1.5px;
    }

    .navbar {
        padding: 0.35rem var(--space-md);
        height: 64px;
    }

    .logo {
        font-size: var(--text-lg);
    }

    .logo i {
        font-size: var(--text-lg);
    }

    /* Flex dropdown items için mobile düzeni */
    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Tablet için ek optimizasyon */
@media (max-width: 1024px) and (min-width: 969px) {
    .nav-menu {
        gap: var(--space-sm);  /* Tablet'te daha dar boşluk */
    }
    
    .nav-link {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .mobile-menu-content {
        padding: var(--space-md);
    }
}

/* Focus States for Accessibility */
.nav-link:focus,
.mobile-menu-toggle:focus,
.mobile-nav-link:focus,
.auth-btn:focus,
.auth-entry:focus,
.account-trigger:focus,
.auth-entry-menu a:focus,
.account-dropdown a:focus,
.account-dropdown button:focus,
.mobile-auth-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   Mobile Theme Toggle - Hamburger Menu
   ======================================== */

/* Mobile tema değişiklik butonu - hamburger menu içinde */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.mobile-theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: translateX(4px);
}

.mobile-theme-toggle i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-theme-toggle:hover i {
    transform: rotate(15deg) scale(1.05);
    color: var(--primary);
}

.mobile-theme-toggle span {
    font-weight: var(--font-medium);
}

/* Dark theme mobile theme toggle */
[data-theme="dark"] .mobile-theme-toggle {
    color: var(--text);
}

[data-theme="dark"] .mobile-theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-dark);
}

[data-theme="dark"] .mobile-theme-toggle:hover i {
    color: var(--primary-light);
}

/* Dark theme icon change */
[data-theme="dark"] .mobile-theme-toggle .theme-icon:before {
    content: "\f185"; /* fa-sun */
}

/* ========================================
   Desktop/Mobile Theme Toggle Visibility
   ======================================== */

/* Desktop tema butonu - sadece desktop'ta görünsün */
.theme-toggle-btn.desktop-only {
    display: flex;
}

/* Mobile breakpoint'te desktop tema butonunu gizle */
@media (max-width: 968px) {
    .theme-toggle-btn.desktop-only {
        display: none !important;
    }
}

/* Focus states for mobile theme toggle */
.mobile-theme-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

[data-theme="dark"] .mobile-theme-toggle:focus {
    outline-color: var(--primary-light);
}
