/* MC Translate — Language Switcher */

.mct-switcher {
    display: inline-block;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.4;
}

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

.mct-dropdown {
    position: relative;
}

.mct-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background 0.15s, opacity 0.15s;
}

.mct-dropdown__trigger:hover,
.mct-dropdown__trigger:focus {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.mct-dropdown__arrow {
    font-size: 0.7em;
    margin-left: 2px;
    transition: transform 0.15s;
}

.mct-dropdown[aria-expanded="true"] .mct-dropdown__arrow,
.mct-dropdown.mct-open .mct-dropdown__arrow {
    transform: rotate(180deg);
}

.mct-dropdown__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 9999;
    min-width: 160px;
    margin: 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    list-style: none;
    display: none;
}

.mct-dropdown__list.mct-visible {
    display: block;
}

.mct-dropdown__list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}

.mct-dropdown__list li a:hover,
.mct-dropdown__list li.mct-active a {
    background: #f0f4ff;
    color: #0073aa;
}

.mct-dropdown__list li.mct-active a {
    font-weight: 600;
}

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

.mct-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mct-list li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

.mct-list li a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.mct-list li.mct-active a {
    font-weight: 700;
    border-bottom: 2px solid currentColor;
}

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

.mct-flag {
    font-style: normal;
    line-height: 1;
}

.mct-lang-name {
    line-height: 1;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .mct-dropdown__trigger,
    .mct-dropdown__arrow,
    .mct-dropdown__list li a,
    .mct-list li a {
        transition: none;
    }
}
