/**
 * Nexta Multilingual - Frontend Styles
 * Language switcher in 3 styles: dropdown, inline, flags
 */

.nexta-lang-switcher {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

/* ===== Dropdown style ===== */
.nexta-lang-switcher--dropdown .nexta-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}

.nexta-lang-switcher--dropdown .nexta-lang-toggle:hover {
    background: rgba(201, 168, 118, 0.15);
    border-color: rgba(201, 168, 118, 0.4);
}

.nexta-lang-switcher--dropdown .nexta-lang-flag {
    font-size: 14px;
    line-height: 1;
}

.nexta-lang-switcher--dropdown .nexta-lang-chevron {
    transition: transform 0.2s;
    margin-left: 2px;
}

.nexta-lang-switcher--dropdown.is-open .nexta-lang-chevron {
    transform: rotate(180deg);
}

.nexta-lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.16);
    padding: 6px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.nexta-lang-switcher--dropdown.is-open .nexta-lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nexta-lang-list .nexta-lang-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #0a1628;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}

.nexta-lang-list .nexta-lang-link:hover {
    background: #faf8f3;
}

.nexta-lang-list .nexta-lang-item.is-active .nexta-lang-link {
    background: #0a1628;
    color: #ffffff;
}

.nexta-lang-list .nexta-lang-name {
    font-weight: 500;
}

/* ===== Inline style ===== */
.nexta-lang-list-inline {
    display: inline-flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.nexta-lang-list-inline a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: inherit;
    opacity: 0.6;
    text-decoration: none;
    transition: all 0.2s;
}

.nexta-lang-list-inline a:hover {
    opacity: 1;
}

.nexta-lang-list-inline .is-active a {
    background: #c9a876;
    color: #0a1628;
    opacity: 1;
}

/* ===== Flags style ===== */
.nexta-lang-list-flags {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nexta-lang-list-flags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.2s;
}

.nexta-lang-list-flags a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.nexta-lang-list-flags .is-active a {
    opacity: 1;
    background: rgba(201, 168, 118, 0.3);
    box-shadow: 0 0 0 2px #c9a876;
}

/* ===== Loading state ===== */
.nexta-lang-switcher.is-loading .nexta-lang-toggle {
    opacity: 0.6;
    pointer-events: none;
}
