/* =====================================================
   PREMIUM HEADER STYLE - Professional Level
   ===================================================== */

.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    z-index: var(--z-fixed);
    height: 80px;
}

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

/* Logo Section - FAZ 6.1: Stiller header-logo.css'e taşındı */
/* .header-logo, .logo-link, .logo-icon, .logo-text stilleri
   artık assets/css/components/header-logo.css dosyasından geliyor */

/* Navigation */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 30px 4px 26px 4px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Active Page Indicator - Bottom Border */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 8px rgba(var(--primary-color-rgb, 0, 113, 194), 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    min-width: 250px;
    width: auto;
    justify-content: flex-end;
}

/* Language & Currency Selectors */
.language-selector,
.currency-selector {
    position: relative;
}

.selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    min-width: 60px;
    justify-content: center;
    
    /* Override base.css button styles */
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.selector-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.current-flag {
    font-size: 16px;
}

.current-text {
    font-weight: 600;
    font-size: 13px;
}

.selector-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #666;
}

/* DROPDOWN STYLES - Fixed z-index and positioning issues */
.selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color, #e0e6ed);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-overlay);
    overflow: hidden;
    pointer-events: none;
}

.selector-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    animation: dropdownSlideIn 0.3s ease-out;
}

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

.selector-btn:hover .selector-arrow {
    color: var(--primary-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-light, #f5f7fa);
}

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

.dropdown-item:hover {
    background: var(--bg-tertiary, #f5f7fa);
}

.item-flag {
    font-size: 16px;
}

.item-text {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

/* Shopping Cart - Premium Style */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary, #f5f7fa);
    border: 1px solid var(--border-color, #e0e6ed);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);

    /* Override base.css button styles */
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: auto !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.cart-btn:hover {
    background: var(--bg-secondary, #e8ecef);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.cart-btn i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.cart-btn:hover i {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.cart-count.show {
    transform: scale(1);
}

/* Call Button - Header Style */
.call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--business-primary, var(--success-color, #3b82f6));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    min-width: auto !important; /* FIX: Prevent mobile override */
    min-height: auto !important;
    width: auto !important; /* FIX: Prevent mobile override */
    height: auto !important; /* FIX: Prevent mobile override */
    
    /* Override base.css button styles */
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.call-btn:hover {
    background: var(--business-secondary, var(--success-color, #2563eb));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    color: white;
}

.call-btn i {
    font-size: 14px;
}

.call-text {
    display: inline !important; /* FIX: Force visibility on desktop */
    color: var(--on-primary, white) !important;
    font-weight: 700 !important;
    text-shadow: none; /* Clean text, no blur effect */
}

/* Desktop-first approach - call button with text */
@media (min-width: 769px) {
    .call-text {
        display: inline !important; /* Desktop'ta text göster */
    }
    
    .call-btn {
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        padding: 12px 20px !important;
        gap: 8px !important;
    }
}


/* Dropdown Styles - MAXIMUM Z-INDEX */
.premium-header .selector-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    background: var(--bg-primary, white) !important;
    border: 1px solid var(--border-color, #e0e6ed) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px var(--shadow-black-12, rgba(0, 0, 0, 0.12)) !important;
    min-width: 180px !important;
    z-index: var(--z-overlay);
    overflow: hidden !important;

    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: all 0.2s ease !important;
}

.premium-header .selector-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
    
    .nav-list {
        gap: 24px;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .call-text {
        display: none;
    }
    
    .call-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
}

/* TABLET MOBİL (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-container {
        padding: 0 24px;
    }

    /* logo-text stili header-logo.css'e taşındı */

    .nav-list {
        gap: 24px;
    }

    .header-actions {
        gap: 12px;
    }
}

