/* ===================================
   Header V2 - Clean & Modern
   =================================== */

.header-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header-v2.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Navigation Container */
.nav-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 40px;
}

/* Logo - Original Style */
.nav-v2__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-v2__logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

/* Support for PNG logo image */
.nav-v2__logo img.logo-icon {
    background: transparent;
    padding: 4px;
}

.nav-v2__logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.nav-v2__logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

/* Navigation Links */
.nav-v2__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-v2__link {
    position: relative;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-v2__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-v2__link:hover {
    color: var(--gray-800);
}

.nav-v2__link:hover::after {
    width: 100%;
}

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

.nav-v2__link.active::after {
    width: 100%;
}

/* Actions */
.nav-v2__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Language Switch */
.lang-switch {
    position: relative;
}

.lang-switch__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-switch__btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.lang-flag {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-switch__btn svg {
    color: var(--gray-400);
    transition: transform 0.2s ease;
}

.lang-switch:hover .lang-switch__btn svg {
    transform: rotate(180deg);
}

/* Language Dropdown */
.lang-switch__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.lang-switch:hover .lang-switch__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switch__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

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

.lang-switch__option.active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

.lang-switch__option img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* Sign In Button */
.nav-v2__signin {
    padding: 10px 18px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-v2__signin:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

/* CTA Button */
.nav-v2__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.938rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.nav-v2__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Mobile Toggle */
.nav-v2__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-v2__toggle:hover {
    background: var(--gray-100);
}

.nav-v2__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-v2__toggle span:nth-child(2) {
    width: 70%;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1024px) {
    .nav-v2__links {
        display: none;
    }
    
    .nav-v2__toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-v2__signin {
        display: none;
    }
    
    .nav-v2 {
        height: 64px;
    }
}

@media (max-width: 480px) {
    .nav-v2__logo .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-v2__cta {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .lang-switch__btn span {
        display: none;
    }
    
    .lang-switch__btn {
        padding: 8px 10px;
    }
}
