/* ==========================================
   LEVY MARTIN LANGUAGE SWITCHER — FIXED
========================================== */
.language-switcher{
    position:relative;
    margin-left:auto;
    margin-right:18px;
    font-family:var(--font-body);
    z-index:10002;
}

.language-current{
    min-width:62px;
    height:40px;
    padding:0 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid rgba(255,255,255,.72);
    border-radius:999px;
    color:#fff;
    background:rgba(15,8,6,.22);
    box-shadow:0 8px 24px rgba(0,0,0,.10);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    font-size:.72rem;
    font-weight:600;
    line-height:1;
    letter-spacing:1.4px;
    transition:background .3s ease,color .3s ease,border-color .3s ease,transform .3s ease;
}

.language-current:hover{
    transform:translateY(-1px);
    background:rgba(15,8,6,.38);
}

/* Light/solid navigation states */
header.scrolled .language-current,
header.solid-header .language-current{
    color:var(--color-primary);
    border-color:rgba(31,14,10,.24);
    background:rgba(255,255,255,.94);
    box-shadow:0 8px 24px rgba(31,14,10,.08);
}

header.scrolled .language-current:hover,
header.solid-header .language-current:hover{
    background:#fff;
    border-color:rgba(31,14,10,.42);
}

.language-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:.95rem;
    line-height:1;
    transition:transform .25s ease;
}

.language-switcher.open .language-arrow{
    transform:rotate(180deg);
}

.language-options{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:150px;
    padding:8px;
    background:#fff;
    border:1px solid rgba(31,14,10,.12);
    border-radius:8px;
    box-shadow:0 16px 40px rgba(0,0,0,.16);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-8px);
    transition:opacity .25s ease,visibility .25s ease,transform .25s ease;
}

.language-switcher.open .language-options{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
}

.language-options button{
    width:100%;
    padding:11px 12px;
    border-radius:5px;
    text-align:left;
    color:var(--color-primary);
    font-size:.82rem;
    background:transparent;
}

.language-options button:hover,
.language-options button.active{
    background:#f3efeb;
}

.language-options button.active{
    font-weight:700;
}

.language-switcher.is-changing{
    opacity:.6;
}

@media(max-width:992px){
    .navbar{
        gap:8px;
    }

    .language-switcher{
        flex:0 0 auto;
        margin-left:auto;
        margin-right:4px;
    }

    .language-current{
        min-width:54px;
        height:38px;
        padding:0 9px;
    }

    .menu-btn{
        position:relative;
        z-index:10003;
        flex:0 0 44px;
        display:flex;
    }

    .language-options{
        right:0;
    }
}

@media(max-width:576px){
    .language-current{
        min-width:50px;
        height:36px;
        padding:0 8px;
    }

    .language-options{
        width:138px;
    }

    .language-options button{
        padding:10px;
    }
}
