/**
 * File: assets/css/frontend/store-localization/language.css
 * Purpose: Styles the header language switcher widget.
 * Scope: Language switcher presentation only.
 * Related PHP: src/Modules/SiteTranslator/SiteTranslatorWidget.php
 * Package: HyperDAF Engine
 */

.hdf-language-switcher {
    min-width: 17rem;
    max-width: 20rem;
    padding: 1rem;
}

.hdf-language-switcher__heading {
    margin: 0 0 .6rem;
    color: var(--hdf-color-text-primary, #0b1f3a);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hdf-language-switcher__search {
    display: block;
    margin-bottom: .6rem;
}

.hdf-language-switcher__search input {
    width: 100%;
    box-sizing: border-box;
    padding: .55rem .75rem;
    border: 1px solid var(--hdf-color-border, #e5eaf1);
    border-radius: .6rem;
    background: var(--hdf-color-surface-soft, #f4f8f6);
    font-size: .8rem;
}

.hdf-language-switcher__search input:focus {
    border-color: var(--hdf-color-primary, #1e7a4f);
    outline: none;
}

.hdf-language-switcher__list {
    display: grid;
    max-height: 19rem;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    gap: .15rem;
    list-style: none;
}

.hdf-language-switcher__item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .6rem;
    padding: .5rem .65rem;
    border: 1px solid transparent;
    border-radius: .6rem;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.hdf-language-switcher__item:hover {
    border-color: var(--hdf-color-border, #e5eaf1);
    background: var(--hdf-color-surface-soft, #f4f8f6);
}

.hdf-language-switcher__item.is-active {
    border-color: var(--hdf-color-primary, #1e7a4f);
    background: rgba(30, 122, 79, .07);
}

.hdf-language-switcher__meta {
    display: grid;
    min-width: 0;
    gap: .05rem;
}

.hdf-language-switcher__meta strong {
    color: var(--hdf-color-text-primary, #0b1f3a);
    font-size: .82rem;
    font-weight: 700;
}

.hdf-language-switcher__meta small {
    color: var(--hdf-color-text-muted, #5c6e84);
    font-size: .7rem;
}

.hdf-language-switcher__check {
    margin-left: auto;
    color: var(--hdf-color-primary, #1e7a4f);
    font-weight: 800;
}

.hdf-language-switcher__note {
    margin: .7rem 0 0;
    color: var(--hdf-color-text-muted, #5c6e84);
    font-size: .7rem;
    line-height: 1.5;
}
