/* Language Switcher Styles */
.lang-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary-blue, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    object-fit: cover;
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.lang-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    min-width: 150px;
    z-index: 1001;
    overflow: hidden;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.lang-option:hover {
    background: #f3f4f6;
}

.lang-option.active {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    font-weight: 600;
}

.lang-option img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }

    .lang-dropdown {
        right: auto;
        left: 0;
    }

    .lang-btn {
        padding: 10px 14px;
    }
}

/* Light background variant */
.nav-scrolled .lang-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: #1f2937;
}

.nav-scrolled .lang-btn:hover {
    border-color: var(--primary-blue, #3b82f6);
}
