/* ── HAL Multilingual — Frontend CSS ──────────────────────────────────────── */

/* ── Dropdown switcher ────────────────────────────────────────────────────── */
.hml-switcher--dropdown {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

.hml-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: border-color .2s, box-shadow .2s;
}
.hml-switcher__toggle:hover { border-color: #888; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.hml-caret { font-size: .7rem; opacity: .6; transition: transform .2s; }
.hml-switcher--dropdown.hml-open .hml-caret { transform: rotate(180deg); }

.hml-switcher__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9990;
}
.hml-switcher--dropdown.hml-open .hml-switcher__menu { display: block; }

.hml-switcher__menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    text-decoration: none;
    color: #1d2327;
    font-size: .875rem;
    transition: background .15s;
}
.hml-switcher__menu li a:hover { background: #f0f0f1; }
.hml-switcher__menu li.hml-current a { font-weight: 700; color: #2271b1; }

/* ── List switcher ────────────────────────────────────────────────────────── */
.hml-switcher--list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hml-switcher--list li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #1d2327;
    font-size: .85rem;
    transition: all .2s;
}
.hml-switcher--list li a:hover { border-color: #2271b1; color: #2271b1; }
.hml-switcher--list li.hml-current a { background: #2271b1; color: #fff; border-color: #2271b1; }

/* ── Flags switcher ───────────────────────────────────────────────────────── */
.hml-switcher--flags {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.hml-flag-link {
    font-size: 1.4rem;
    text-decoration: none;
    line-height: 1;
    opacity: .6;
    transition: opacity .2s, transform .2s;
}
.hml-flag-link:hover { opacity: 1; transform: scale(1.2); }
.hml-flag-link.hml-current { opacity: 1; }

/* ── Floating switcher ────────────────────────────────────────────────────── */
.hml-switcher--floating {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9500;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 8px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
