/* ═══════════════════════════════════════════════
   SMOOTH JAZZ CHICAGO V3 LITE - TOAST DE IDIOMA
   ─────────────────────────────────────────────────
   Mensajito flotante que confirma el cambio de idioma.
   Se cierra: solo a los 5s, con la ×, o al tocar fuera.
   Hereda el tema activo vía las variables de style.css.
   ═══════════════════════════════════════════════ */

/* Capa que cubre todo (para detectar clic fuera) */
.langtoast-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Fondo casi transparente: deja ver el player detrás */
    background: rgba(0, 0, 0, 0.25);
    animation: ltFade 0.2s ease;
}
.langtoast-overlay.hidden { display: none; }

@keyframes ltFade { from { opacity: 0; } to { opacity: 1; } }

/* La cajita del mensaje */
.langtoast-box {
    background: #202020;
    border: 1px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.4);
    animation: ltPop 0.25s ease;
}

@keyframes ltPop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Ícono (palomita en círculo del color del tema) */
.langtoast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

/* Texto del mensaje */
.langtoast-text {
    flex: 1;
    color: var(--light);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Botón X */
.langtoast-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--inactive);
    font-size: 20px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.langtoast-close:hover { background: rgba(255,255,255,0.12); color: var(--light); }
