/* Compact public-page language switcher (top-right). */

.language-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    gap: 6px;
    align-items: center;
}

.language-switcher__form {
    margin: 0;
    padding: 0;
}

.language-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.72);
    color: #e0e0e0;
    font-family: 'Rubik', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.language-switcher__btn:hover,
.language-switcher__btn:focus {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.language-switcher__btn.is-active {
    border-color: rgba(100, 170, 235, 0.85);
    background: rgba(40, 70, 100, 0.85);
}

.language-switcher__flag {
    font-size: 14px;
    line-height: 1;
}

.language-switcher__code {
    letter-spacing: 0.02em;
}

/* Inline variant for pages that already have a top nav row */
.language-switcher--inline {
    position: static;
    top: auto;
    right: auto;
}
