/**
 * 🍎 ELITE LANGUAGE SWITCHER - IDENTICAMENTE IGUAL AO MENU PAINEL
 *
 * COPIADO EXATAMENTE DE: apple-fullwidth-layout.css (.apple-nav)
 * - MESMA altura, MESMA fonte, MESMA cor, MESMA transição
 * - 100% IDÊNTICO ao menu do painel financeiro
 */

/* ===================================
   🍎 CONTAINER PRINCIPAL - CÓPIA EXATA DO .apple-nav
=================================== */

.elite-lang-switcher {
    /* Posicionamento - FIXO no topo */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;

    /* Dimensões - EXATAMENTE IGUAL */
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    /* Background Apple exato - COPIADO LINHA POR LINHA */
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;

    /* Borda inferior sutil - EXATAMENTE IGUAL */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;

    /* Reset - EXATAMENTE IGUAL */
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    /* Transição suave - EXATAMENTE IGUAL */
    transition: background-color 0.3s ease !important;

    /* Layout flexbox - PARA CENTRALIZAR BOTÕES */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* Light mode - CÓPIA EXATA */
[data-theme="light"] .elite-lang-switcher {
    background-color: rgba(251, 251, 253, 0.72) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/**
 * Estado: escondido após login
 * - Fade out suave
 * - Move para cima
 */
.elite-lang-switcher.hidden-after-login {
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
}

/* ===================================
   🔘 BOTÕES - CÓPIA EXATA DO .apple-nav-link
=================================== */

.elite-lang-btn {
    /* Reset - EXATAMENTE IGUAL */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;

    /* Typography Apple - COPIADO LINHA POR LINHA */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    text-transform: none !important;

    /* Cor - EXATAMENTE IGUAL */
    color: rgba(245, 245, 247, 0.92) !important;

    /* Altura para click area - EXATAMENTE IGUAL */
    height: 48px !important;
    display: flex !important;
    align-items: center !important;

    /* Transição suave - EXATAMENTE IGUAL */
    transition: color 0.1s linear !important;

    /* Remove efeitos - EXATAMENTE IGUAL */
    box-shadow: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;

    /* Gap entre bandeira e texto */
    gap: 8px !important;
    padding: 0 16px !important;
}

/* Hover - CÓPIA EXATA */
.elite-lang-btn:hover {
    color: rgba(245, 245, 247, 1) !important;
}

/* Light mode - CÓPIA EXATA */
[data-theme="light"] .elite-lang-btn {
    color: rgba(29, 29, 31, 0.8) !important;
}

[data-theme="light"] .elite-lang-btn:hover {
    color: rgba(29, 29, 31, 1) !important;
}

/* Active state */
.elite-lang-btn.active {
    color: rgba(245, 245, 247, 1) !important;
    font-weight: 500 !important;
}

[data-theme="light"] .elite-lang-btn.active {
    color: rgba(29, 29, 31, 1) !important;
}

/**
 * Bandeira (emoji)
 * - Tamanho consistente
 */
.elite-lang-flag {
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* ===================================
   🔹 DIVIDER - MESMO ESTILO
=================================== */

.elite-lang-divider {
    width: 1px !important;
    height: 14px !important;
    background: rgba(245, 245, 247, 0.16) !important;
    margin: 0 !important;
}

[data-theme="light"] .elite-lang-divider {
    background: rgba(0, 0, 0, 0.16) !important;
}

/* ===================================
   📱 RESPONSIVE - CÓPIA EXATA
=================================== */

@media (max-width: 768px) {
    .elite-lang-btn {
        padding: 0 12px !important;
        gap: 6px !important;
        font-size: 11px !important;
    }

    .elite-lang-flag {
        font-size: 14px !important;
    }
}

/* ===================================
   🚫 REMOVE PSEUDO-ELEMENTS
=================================== */

.elite-lang-btn::before,
.elite-lang-btn::after {
    display: none !important;
    content: none !important;
}

/* ===================================
   📏 COMPENSAÇÃO DO MENU - LOGIN MODALS
=================================== */

/**
 * Adiciona padding-top aos modais de login
 * para que o conteúdo não fique atrás do menu fixo
 * - Altera justify-center para flex-start para manter visual correto
 */
#user-modal,
#password-modal {
    justify-content: flex-start !important;
    padding-top: 64px !important;
}

@media (max-width: 768px) {
    #user-modal,
    #password-modal {
        padding-top: 56px !important;
    }
}
