/* Language Selector Styles */

.language-selector {
    position: relative;
}

.lang-button {
    background: var(--vf-bg);
    color: var(--vf-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--vf-border);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lang-button:hover {
    border-color: var(--vf-accent);
    color: var(--vf-accent);
    box-shadow: 0 4px 12px rgba(9, 177, 186, 0.15);
}

.lang-button svg {
    width: 18px;
    height: 18px;
}

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

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1.5px solid var(--vf-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lang-option {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: var(--vf-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    font-size: 14px;
}

.lang-option:first-child {
    border-radius: 7px 7px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 7px 7px;
}

.lang-option:hover {
    background: var(--vf-bg-alt);
}

.lang-option.active {
    background: #F0FEFF;
    color: var(--vf-accent);
    font-weight: 600;
}

.lang-option.active .lang-code {
    color: var(--vf-accent);
}

.lang-code {
    font-weight: 700;
    font-size: 12px;
    color: var(--vf-text-secondary);
    min-width: 24px;
}

.lang-name {
    flex: 1;
    text-align: left;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-selector {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .lang-button {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .lang-button .current-lang {
        display: none;
    }

    .lang-dropdown {
        bottom: calc(100% + 8px);
        top: auto;
        right: 0;
    }

    .lang-dropdown.show {
        transform: translateY(0);
    }
}

/* Animation for language change */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-i18n] {
    animation: fadeIn 0.3s ease-out;
}
