/**
 * Language switcher + i18n UI (loaded on every page so production cache cannot skip header-only rules).
 */

.trojan-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-inline-end: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.14);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.trojan-lang-switcher__btn {
    color: #374151 !important;
    text-decoration: none !important;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.trojan-lang-switcher__btn:hover {
    color: #111827 !important;
    background: rgba(17, 24, 39, 0.08);
}

.trojan-lang-switcher__btn.is-active {
    color: #ffffff !important;
    background: #1f2937 !important;
}

.trojan-lang-switcher__sep {
    color: #9ca3af;
    font-size: 0.65rem;
    user-select: none;
}

@media (max-width: 1024px) {
    .trojan-header-right .trojan-lang-switcher {
        display: none;
    }
}
