/* Denutivo Languages — Language switcher */

/* ── Shared ──────────────────────────────────────────────────────────────── */

.dl-switcher {
    display: inline-flex;
    font-size: 14px;
    line-height: 1.4;
}

.dl-switcher__flag  { display: inline-block; margin-right: 4px; line-height: 1; }
.dl-switcher__name  { display: inline-block; }

/* ── List style ──────────────────────────────────────────────────────────── */

.dl-switcher--list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.dl-switcher--list .dl-switcher__item { list-style: none; margin: 0; padding: 0; }

.dl-switcher--list .dl-switcher__link {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background .12s, color .12s;
    white-space: nowrap;
}

.dl-switcher--list .dl-switcher__link:hover {
    background: rgba(0,0,0,.07);
    color: inherit;
}

.dl-switcher--list .dl-switcher__link--current {
    background: rgba(0,0,0,.06);
    font-weight: 600;
    cursor: default;
}

/* ── Dropdown style ──────────────────────────────────────────────────────── */

.dl-switcher--dropdown {
    position: relative;
}

.dl-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: inherit;
    line-height: 1.4;
    color: inherit;
    transition: border-color .12s, background .12s;
}

.dl-switcher__toggle:hover,
.dl-switcher__toggle[aria-expanded="true"] {
    border-color: rgba(0,0,0,.35);
    background: rgba(0,0,0,.04);
}

.dl-switcher__chevron {
    flex-shrink: 0;
    transition: transform .15s;
}

.dl-switcher__toggle[aria-expanded="true"] .dl-switcher__chevron {
    transform: rotate(180deg);
}

.dl-switcher__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 9999;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: none;
    overflow: hidden;
}

.dl-switcher__panel[aria-hidden="false"],
.dl-switcher--dropdown.is-open .dl-switcher__panel {
    display: block;
}

.dl-switcher__option { list-style: none; margin: 0; padding: 0; }

.dl-switcher__option-link {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    text-decoration: none;
    color: #1d2327;
    font-size: 13px;
    white-space: nowrap;
    transition: background .1s;
}

.dl-switcher__option-link:hover  { background: #f6f7f7; color: #1d2327; }

.dl-switcher__option--active .dl-switcher__option-link {
    font-weight: 600;
    background: #f0f6fc;
    color: #2271b1;
}

/* ── RTL support ─────────────────────────────────────────────────────────── */

[dir="rtl"] .dl-switcher--list   { flex-direction: row-reverse; }
[dir="rtl"] .dl-switcher__flag   { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .dl-switcher__panel  { left: auto; right: 0; }
