/*
 * OnLinux language switcher
 * RO / EN
 */

.onlinux-language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1;
}

.onlinux-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    min-height: 31px;
    padding: 6px 7px;
    box-sizing: border-box;
    border: 1px solid var(--ol-border, #263238);
    border-radius: 7px;
    background: var(--ol-surface, #101619);
    color: var(--ol-muted, #929da5);
    text-decoration: none !important;
    font-weight: 700;
    letter-spacing: .03em;
    transition:
        color .15s ease,
        border-color .15s ease,
        background-color .15s ease;
}

.onlinux-language-switcher a:hover,
.onlinux-language-switcher a:focus-visible {
    color: var(--ol-green, #7ee787);
    border-color: var(--ol-green, #7ee787);
    background: var(--ol-green-soft, rgba(126,231,135,.10));
    outline: none;
}

.onlinux-language-switcher a.is-current {
    color: var(--ol-green, #7ee787);
    border-color: rgba(126,231,135,.55);
    background: var(--ol-green-soft, rgba(126,231,135,.10));
}

.onlinux-language-switcher span {
    color: var(--ol-muted, #929da5);
    opacity: .65;
    font-size: 11px;
}

/*
 * Keep the control compact on phones.
 */
@media (max-width: 781px) {
    .onlinux-language-switcher {
        gap: 2px;
        font-size: 11px;
    }

    .onlinux-language-switcher a {
        min-width: 28px;
        min-height: 30px;
        padding: 5px 5px;
        border-radius: 6px;
    }

    .onlinux-language-switcher span {
        font-size: 10px;
    }
}

/*
 * Very narrow / curved-edge phones:
 * preserve a little safety space at the right side of the header.
 */
@media (max-width: 390px) {
    .onlinux-language-switcher {
        transform: translateX(-2px);
    }

    .onlinux-language-switcher a {
        min-width: 27px;
        padding-left: 4px;
        padding-right: 4px;
    }
}
