/* Comutator limba RO/EN din header */
/* NB: nu setam `display` pe .lang-switcher de baza, ca sa nu suprascriem
   regulile responsive .nav-cta-mobile/.nav-cta-desktop din idava-home.css.
   Display-ul vine doar din variantele specifice de mai jos. */
.lang-switcher {
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    user-select: none;
}

.lang-switcher .lang-option {
    text-decoration: none;
    color: inherit;
    opacity: 0.55;
    padding: 4px 6px;
    border-radius: 6px;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.lang-switcher .lang-option:hover {
    opacity: 0.85;
}

.lang-switcher .lang-option.active {
    opacity: 1;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.06);
}

.lang-switcher .lang-sep {
    opacity: 0.35;
}

/* Desktop: afisat langa switcher-ul de portaluri (vizibilitatea o da .nav-cta-desktop) */
.lang-switcher.nav-cta-desktop {
    display: inline-flex;
    margin-right: 14px;
}

/* Mobile: <li>-ul parinte (.nav-cta-mobile) e ascuns/afisat de idava-home.css.
   Aici doar centram si stilizam switcher-ul interior. */
.lang-switcher-mobile-wrap {
    text-align: center;
}

.lang-switcher.lang-switcher-mobile {
    display: inline-flex;
}

.lang-switcher.lang-switcher-mobile .lang-option {
    font-size: 1rem;
    padding: 6px 12px;
}

/* Varianta flotanta — pe paginile cu header ascuns (portaluri) */
.lang-switcher-floating {
    display: inline-flex;
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 1200;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lang-switcher-floating .lang-option {
    color: #333;
}

@media (max-width: 768px) {
    .lang-switcher-floating {
        top: 10px;
        right: 10px;
    }
}

/* Varianta integrata in header-ul dashboard-urilor (langa hamburger).
   .dc-menu-wrap exista doar pe dashboards. */
.dc-menu-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-lang-switcher {
    display: inline-flex;
}

.dc-lang-switcher .lang-option {
    color: #fff;
}

.dc-lang-switcher .lang-option.active {
    background-color: rgba(255, 255, 255, 0.25);
}

.dc-lang-switcher .lang-sep {
    color: #fff;
    opacity: 0.5;
}

/* Header principal pe mobil (≤1024px, unde apare hamburger-ul):
   switcher-ul EN|RO ramane in bara, INAINTEA hamburger-ului. */
@media (max-width: 1024px) {
    .lang-switcher.nav-cta-desktop {
        display: inline-flex;
        order: 2;
        margin-right: 12px;
    }

    #site-header .hamburger {
        order: 3;
    }

    /* switcher-ul din meniul dropdown devine redundant — il ascundem pe mobil */
    .lang-switcher-mobile-wrap {
        display: none !important;
    }
}
