/* ── FAQ Language Switcher ─────────────────────────────────────────────────── */

.faqt-switcher {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    z-index: 200;
}

/* Toggle button */
.faqt-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--faq-border);
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--faq-text-secondary);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: border-color 0.15s, background 0.15s;
}

.faqt-switcher__toggle:hover,
.faqt-switcher__toggle:focus-visible {
    border-color: var(--faq-accent);
    background: var(--faq-nav-active-bg);
    outline: none;
}

.faqt-switcher__toggle[aria-expanded="true"] {
    border-color: var(--faq-accent);
}

.faqt-switcher__globe svg {
    display: block;
}

.faqt-switcher__chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.15s;
}

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

/* Dropdown */
.faqt-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--faq-bg-sidebar);
    border: 1px solid var(--faq-border);
    border-radius: 6px;
    padding: 4px 0;
    margin: 0;
    list-style: none;
    box-shadow: var(--faq-shadow-card);
    z-index: 201;
}

.faqt-switcher__dropdown.is-open {
    display: block;
}

/* Option items */
.faqt-switcher__option a {
    display: block;
    padding: 9px 14px;
    color: var(--faq-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.1s, color 0.1s;
}

.faqt-switcher__option a:hover {
    background: var(--faq-nav-active-bg);
    color: var(--faq-text-primary);
    text-decoration: none;
}

.faqt-switcher__option--active a {
    color: var(--faq-text-primary);
    font-weight: 600;
    position: relative;
}

.faqt-switcher__option--active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f7931a; /* BTC orange */
    border-radius: 0 2px 2px 0;
}

/* Missing translation notice */
.faqt-missing-notice {
    background: #fff3cd !important;
    padding: 12px 16px !important;
    border-left: 4px solid #ffc107 !important;
    margin-bottom: 24px !important;
    color: #333 !important;
    font-size: 14px !important;
}

/* ── Sidebar wrapper — mobile/tablet slide-out only ────────────────────────── */
/* Hidden on desktop: the topbar already has the switcher in .faq-topbar__right */

.faqt-switcher-sidebar-wrap {
    display: none;
}

@media (max-width: 768px) {
    .faqt-switcher-sidebar-wrap {
        display: block;
        padding: 12px 0 4px;
        border-bottom: 1px solid var(--faq-border);
        margin-bottom: 8px;
    }
}

/* ── Mobile: switcher in sidebar menu ──────────────────────────────────────── */

@media (max-width: 768px) {
    .faqt-switcher {
        display: block;
        width: 100%;
    }

    .faqt-switcher__toggle {
        width: 100%;
        justify-content: space-between;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 12px 16px;
    }

    .faqt-switcher__dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-width: unset;
        width: 100%;
    }
}
