/* bot-notifier.css */

/* Contenedor principal del Bot */
#eso-bot-container {
    position: fixed;
    z-index: 100000; /* Sobre todos los modales */
    display: flex;
    pointer-events: none; /* No bloquear clicks debajo */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- MODO WEB (Esquina Inferior Izquierda) --- */
#eso-bot-container.bot-mode-web {
    bottom: -200px;
    left: 20px;
    align-items: flex-end;
}
#eso-bot-container.bot-mode-web.bot-active {
    bottom: 20px;
}

/* --- MODO MÓVIL (Centro Superior) --- */
#eso-bot-container.bot-mode-mobile {
    top: -200px;
    left: 20px;
    right: 20px;
    justify-content: center;
    align-items: flex-start;
}
#eso-bot-container.bot-mode-mobile.bot-active {
    top: max(20px, env(safe-area-inset-top, 20px));
}



/* La Burbuja de Diálogo RPG */
#eso-bot-bubble {
    background: rgba(10, 10, 21, 0.95);
    border: 2px solid #00f3ff;
    border-radius: 15px;
    padding: 15px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: auto;
    position: relative;
}

/* Animación de entrada para Web (Sube) */
#eso-bot-container.bot-mode-web #eso-bot-bubble {
    transform: scale(0.8) translateY(20px);
}
#eso-bot-container.bot-mode-web.bot-active #eso-bot-bubble.bubble-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animación de entrada para Móvil (Baja) */
#eso-bot-container.bot-mode-mobile #eso-bot-bubble {
    transform: scale(0.8) translateY(-20px);
}
#eso-bot-container.bot-mode-mobile.bot-active #eso-bot-bubble.bubble-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}



/* Título de la notificación */
#eso-bot-title {
    color: #ffc107;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Texto de la notificación */
#eso-bot-text {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: var(--font-body, 'Outfit', sans-serif);
    min-height: 2.8em; /* Espacio mínimo para evitar saltos al escribir */
}

/* Botón para cerrar rápidamente */
#eso-bot-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

#eso-bot-close:hover {
    color: #ff4444;
}

/* Ajustes para móviles */
@media (max-width: 600px) {
    
    #eso-bot-bubble {
        max-width: 100%;
        padding: 12px 15px;
    }
    
    #eso-bot-title {
        font-size: 0.75rem;
    }
    
    #eso-bot-text {
        font-size: 0.85rem;
    }
}
