/**
 * NECOX — Language Switcher (v3.27.0)
 */

.necox-lang-switcher {
    display: inline-flex;
    align-items: center;
    position: relative;
    font-size: 0.9rem;
}

/* ─── Flags ─── */
.necox-lang-switcher--flags {
    gap: 8px;
}
.necox-lang-switcher--flags a {
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.necox-lang-switcher--flags a:hover,
.necox-lang-switcher--flags a.is-active {
    opacity: 1;
    transform: scale(1.1);
}

/* ─── Text ─── */
.necox-lang-switcher--text {
    gap: 6px;
}
.necox-lang-switcher--text a {
    color: inherit;
    opacity: 0.65;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.15s;
}
.necox-lang-switcher--text a:hover,
.necox-lang-switcher--text a.is-active {
    opacity: 1;
}
.necox-lang-sep {
    opacity: 0.3;
}

/* ─── Dropdown ─── */
.necox-lang-switcher--dropdown .necox-lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}
.necox-lang-switcher--dropdown .necox-lang-switcher__btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
.necox-lang-switcher__flag {
    font-size: 1.1rem;
    line-height: 1;
}
.necox-lang-switcher__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    list-style: none;
    margin: 0;
    padding: 4px;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}
.necox-lang-switcher--dropdown.is-open .necox-lang-switcher__menu {
    display: block;
}
.necox-lang-switcher__menu li {
    margin: 0;
}
.necox-lang-switcher__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #1e293b;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.necox-lang-switcher__menu a:hover {
    background: #f1f5f9;
}
.necox-lang-switcher__menu a.is-active {
    background: #eff6ff;
    color: #0284c7;
    font-weight: 600;
}
