/* Internationalization Styles */

/* Language switcher (used by i18n.js) */
.language-switcher {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    padding: 4px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.language-switcher button {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.language-switcher button:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.language-switcher button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 16px;
        justify-content: center;
    }
}

/* Legacy language selector */
.lang-selector {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.lang-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Text direction support */
[dir="rtl"] {
    direction: rtl;
}

[dir="ltr"] {
    direction: ltr;
}

/* Translation elements */
[data-i18n] {
    transition: opacity 0.2s;
}

/* Hide elements by language */
.lang-en:not(.active) [data-lang="en"],
.lang-ru:not(.active) [data-lang="ru"],
.lang-et:not(.active) [data-lang="et"] {
    display: none;
}

/* Loading state for translations */
.i18n-loading {
    opacity: 0.6;
    pointer-events: none;
}
