/* ===================================
   MODERN HEADER STYLES
   (Orijinal mavi tema + Sepet düzeltmesi)
   =================================== */

/* Navbar Base */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid rgba(0, 191, 255, 0.2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.navbar .logo:hover {
    transform: scale(1.05);
}

.navbar .logo i {
    color: #00bfff;
    font-size: 28px;
    animation: logoGlow 2s infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.5)); }
    50% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.8)); }
}

.navbar .logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.3));
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a.nav-link-highlight {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.24));
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55), 0 0 12px rgba(56, 189, 248, 0.35);
    animation: navHighlightPulse 2.4s ease-in-out infinite;
}

.nav-links a.nav-link-highlight i {
    color: #fde68a;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(0, 191, 255, 0.15);
}

.nav-links a.active {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.2);
}

@keyframes navHighlightPulse {
    0% {
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px 3px rgba(56, 189, 248, 0.2);
    }
    100% {
        opacity: 0.9;
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35);
    }
}

.nav-links i {
    font-size: 14px;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search form {
    position: relative;
    display: flex;
}

.header-search .search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search .search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.header-search .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-search .search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.4);
}

/* Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-auth .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-auth .btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-auth .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-auth .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.nav-auth .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.nav-auth .cart-icon {
    position: relative;
    min-width: auto;
    padding: 10px 15px;
}

.nav-auth .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(0, 191, 255, 0.15);
    border-color: rgba(0, 191, 255, 0.3);
    color: #fff;
}

.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.theme-toggle-btn .sun-icon {
    opacity: 1;
}

.theme-toggle-btn .moon-icon {
    opacity: 0;
}

body.dark-theme .theme-toggle-btn .sun-icon {
    opacity: 0;
}

body.dark-theme .theme-toggle-btn .moon-icon {
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 191, 255, 0.15);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90%;
    height: 100vh;
    background: #1a1a2e;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1100;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile menu logo sizing */
.mobile-menu .logo .logo-image {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .mobile-menu .logo .logo-image {
        height: 32px;
    }
}

.mobile-menu-header h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.mobile-menu-close {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 71, 87, 0.2);
}

.mobile-menu-content {
    padding: 0;
}

/* Mobile Search Bar */
.mobile-search-bar {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-bar form {
    position: relative;
    display: flex;
}

.mobile-search-bar input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
}

.mobile-search-bar input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 191, 255, 0.5);
}

.mobile-search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

/* Mobile Nav Links */
.mobile-nav-links {
    padding: 10px;
    list-style: none;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    position: relative;
}

.mobile-nav-links a.nav-link-highlight {
    background: rgba(0, 191, 255, 0.16);
    color: #ffffff;
    animation: navHighlightPulse 2.4s ease-in-out infinite;
}

.mobile-nav-links li:nth-child(3n + 1) a.nav-link-highlight {
    animation-delay: 0s;
}

.mobile-nav-links li:nth-child(3n + 2) a.nav-link-highlight {
    animation-delay: 0.4s;
}

.mobile-nav-links li:nth-child(3n + 3) a.nav-link-highlight {
    animation-delay: 0.8s;
}

.mobile-nav-links a:hover {
    background: rgba(0, 191, 255, 0.15);
    color: #fff;
}

.mobile-nav-links a i {
    width: 20px;
    text-align: center;
    color: #00bfff;
}

.mobile-nav-links .cart-badge {
    position: absolute;
    right: 15px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    border: none;
}

/* Mobile Contact */
.mobile-contact {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.mobile-contact-item:hover {
    background: rgba(0, 191, 255, 0.15);
    color: #fff;
}

.mobile-contact-item i {
    width: 20px;
    text-align: center;
    color: #00bfff;
    font-size: 18px;
}

/* Responsive (Orijinal) */
@media (max-width: 1200px) {
    .header-search {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .nav-links,
    .header-search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar .container {
        padding: 12px 20px;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .navbar .container {
        padding: 10px 15px;
    }
    
    .navbar .logo {
        font-size: 20px;
    }
    
    .navbar .logo i {
        font-size: 24px;
    }
    
    .navbar .logo-image {
        height: 35px;
    }
    
    .nav-auth .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .nav-auth .btn-text {
        display: none;
    }
}

/* ========================================
   YENİ İKİ KATMANLI HEADER DÜZENLEMESİ
======================================== */

/* Orijinal navbar'ı gizle */
.navbar {
    display: none !important;
}

/* Yeni Ana Header */
.site-header-new {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid rgba(0, 191, 255, 0.2);
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ÜST BAR */
.header-top-new .container {
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.site-header-new .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.site-header-new .logo:hover { transform: scale(1.05); }
.site-header-new .logo i {
    color: #00bfff;
    font-size: 28px;
    animation: logoGlow 2s infinite;
}
.site-header-new .logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.3));
}

/* Arama çubuğu */
.header-top-new .header-search {
    flex: 1;
    max-width: 500px;
}

/* ===========================================
   SEPET BUTONU DÜZELTMESİ - USER DROPDOWN İLE AYNI BOYUT
=========================================== */
.nav-auth-new {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sepet Butonu - User Dropdown ile aynı boyut */
.nav-auth-new .cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px !important; /* User dropdown ile aynı padding */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-auth-new .cart-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-auth-new .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.nav-auth-new .cart-count:not(:empty) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Diğer Auth Butonları */
.nav-auth-new .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}
.nav-auth-new .btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-auth-new .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.nav-auth-new .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}
.nav-auth-new .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* ALT BAR */
.header-nav-new {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.header-nav-new .container {
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* "Tüm Kategoriler" Butonu */
.all-categories-btn-new {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}
.all-categories-btn-new i {
    margin-right: 8px;
}

/* Nav Links ortada */
.header-nav-new .nav-links {
    flex: 1;
    display: flex;
}

.header-nav-new .nav-links li:nth-child(3n + 1) a.nav-link-highlight {
    animation-delay: 0s;
}

.header-nav-new .nav-links li:nth-child(3n + 2) a.nav-link-highlight {
    animation-delay: 0.4s;
}

.header-nav-new .nav-links li:nth-child(3n + 3) a.nav-link-highlight {
    animation-delay: 0.8s;
}

/* Tema değiştirici sağda */
.theme-toggle-new {
    flex-shrink: 0;
    margin-left: auto;
}

/* ========================================
   YENİ YAPI İÇİN RESPONSIVE
======================================== */

@media (max-width: 992px) {
    .header-top-new .container {
        flex-wrap: wrap;
        padding: 12px 20px;
        gap: 15px;
    }
    .header-top-new .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin: 5px 0 0 0;
        display: block !important; 
    }
    .site-header-new .logo { order: 1; }
    .nav-auth-new { order: 2; margin-left: auto; }
    
    .header-top-new .mobile-menu-toggle {
        order: 4;
        display: flex;
    }

    .header-nav-new {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-top-new .container {
        padding: 10px 15px;
    }
    .site-header-new .logo-image {
        height: 35px;
    }
    .nav-auth-new .btn-text {
        display: none;
    }
    .nav-auth-new .btn {
        padding: 8px 15px;
    }
    
    /* Mobilde sepet ikonu */
    .nav-auth-new .cart-icon {
        padding: 8px 15px !important;
    }
}
