/* Modern Header Styles */

.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Header Layout */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 0.5rem;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 4px;
}

/* Animated hamburger to X */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-logo .flag-icon {
    font-size: 1.5rem;
}

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

/* Desktop Header Layout */
.desktop-header {
    display: none;
    align-items: center;
    height: 80px;
    gap: 2rem;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
}

/* Desktop Logo */
.desktop-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

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

.logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.logo-icon .flag-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-icon i {
    color: white;
    font-size: 1.5rem;
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-item.cta-nav {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-item.cta-nav:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

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

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--dark);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.dropdown-trigger:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

.dropdown-trigger i:last-child {
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-trigger i:last-child {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-section {
    padding: 1.5rem;
}

.dropdown-section:not(:last-child) {
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.dropdown-item.featured {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
}

.dropdown-item.featured:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary);
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-title {
    font-weight: 600;
    color: var(--dark);
}

.item-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.popular-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-600);
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

.language-selector.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-option:hover {
    background: var(--gray-50);
}

.lang-option.active {
    background: var(--primary);
    color: white;
}

.lang-option .flag {
    font-size: 1.2rem;
}

.header-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.header-cta-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Mobile Navigation Sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

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

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.nav-logo .flag-icon {
    font-size: 1.25rem;
}

.nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.nav-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.mobile-nav-content {
    padding: 1rem 0;
}

.nav-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

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

.mobile-nav-link i {
    width: 20px;
    color: var(--gray-400);
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: inherit;
}

.mobile-nav-link span:first-of-type {
    flex: 1;
}

.nav-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.mobile-nav-footer {
    padding: 1.5rem;
    background: var(--gray-50);
    margin-top: auto;
}

.nav-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (min-width: 1025px) {
    .mobile-header {
        display: none;
    }
    
    .desktop-header {
        display: flex;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .mobile-overlay {
        display: none;
    }
}

@media (max-width: 1024px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
}

@media (max-width: 768px) {
    .mobile-nav {
        max-width: 350px;
    }
    
    .mobile-header {
        height: 60px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-nav-header {
        padding: 1rem;
    }
    
    .nav-section {
        padding: 1rem;
    }
    
    .mobile-nav-footer {
        padding: 1rem;
    }
}
