/* ================================================================
   EduNova — Language switcher (AR | EN)
   ================================================================ */

.en-lang-switch {
    display: inline-flex;
    align-items: stretch;
    padding: 3px;
    gap: 2px;
    background: var(--en-white);
    border: 1px solid var(--en-gray-200);
    border-radius: 10px;
    flex-shrink: 0;
}

.en-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    color: var(--en-gray-500);
    text-decoration: none;
    transition: background var(--en-transition), color var(--en-transition);
}

.en-lang-btn:hover {
    color: var(--en-primary-theme);
    background: var(--en-gray-50);
}

.en-lang-btn.is-active {
    color: var(--en-primary-theme);
    background: #e3ecf8;
    pointer-events: none;
}

.en-lang-btn:focus-visible {
    outline: 2px solid var(--en-primary-theme);
    outline-offset: 1px;
}

/* Header login button — solid brand style (replaces the removed "Explore Courses" CTA) */
.en-header-login-btn.en-btn-primary {
    background: #0f2f5c;
    border-color: #0f2f5c;
    border-radius: 10px;
    min-height: 40px;
}
.en-header-login-btn.en-btn-primary:hover {
    background: var(--en-primary-theme);
    border-color: var(--en-primary-theme);
}

/* Mobile drawer — full-width switcher */
.en-lang-switch--mobile {
    display: flex;
    width: 100%;
}
.en-lang-switch--mobile .en-lang-btn {
    flex: 1;
    height: 42px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .en-lang-switch--header .en-lang-btn {
        min-width: 32px;
        height: 28px;
        padding: 0 7px;
        font-size: 12px;
    }
}

/* Small phones: icon-only login so logo + login + switcher + menu fit on one row */
@media (max-width: 600px) {
    .en-header .en-logo img { max-height: 40px; max-width: 140px; object-fit: contain; }
    .en-header-login-btn.en-btn-primary { padding: 0; width: 38px; min-height: 38px; height: 38px; }
    .en-header-login-text {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); white-space: nowrap;
    }
    .en-header-actions { gap: 6px; }
    .en-menu-toggle { width: 38px; }
}
@media (max-width: 340px) {
    .en-lang-switch--header { display: none; } /* still available inside the mobile menu */
}
