/* Universal Enhanced Header - Consistent Across All Pages */

/* Base Header Structure */
.header-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
}

/* Navigation Layout */
.nav-left {
    flex-shrink: 0;
}

.nav-center {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xl);
    flex: 1;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-main {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* Navigation Links */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.nav-link.active {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Consistent Underline Effect for Active Links */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 30px;
        opacity: 1;
    }
}

/* Navigation Icon Buttons */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-icon-btn:hover {
    background: var(--accent-gold);
    color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.nav-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Enhanced Search Button */
.nav-search-btn {
    background: var(--accent-gold);
    color: var(--dark-primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.nav-search-btn:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--accent-gold-hover);
}

/* Header States */
.header-enhanced.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

.header-enhanced.scrolled .nav-center {
    gap: var(--spacing-lg);
}

/* Notification Badge */
.nav-icon-btn .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-enhanced {
        padding: 0 var(--spacing-lg);
    }
    
    .nav-center {
        gap: var(--spacing-lg);
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(20, 20, 20, 0.98);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-center.mobile-open {
        display: flex;
    }
    
    .nav-center li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        text-align: center;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background: rgba(212, 175, 55, 0.2);
        border: 1px solid var(--accent-gold);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-right {
        gap: var(--spacing-sm);
    }
    
    .nav-icon-btn {
        width: 35px;
        height: 35px;
    }
    
    .logo-main {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .nav-enhanced {
        padding: 0 var(--spacing-md);
    }
    
    .nav-right {
        gap: var(--spacing-xs);
    }
    
    .nav-icon-btn {
        width: 32px;
        height: 32px;
    }
    
    .nav-icon-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .logo-main {
        height: 30px;
    }
}

/* Animation Classes */
.nav-link, .nav-icon-btn, .nav-search-btn {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-link:nth-child(4) { animation-delay: 0.25s; }
.nav-link:nth-child(5) { animation-delay: 0.3s; }
.nav-link:nth-child(6) { animation-delay: 0.35s; }

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

/* Focus States for Accessibility */
.nav-link:focus,
.nav-icon-btn:focus,
.nav-search-btn:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Enhanced Hover Effects */
.nav-icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.nav-icon-btn:hover::before {
    width: 100%;
    height: 100%;
}