/* ==========================================================================
   SISTEMA DE NOTIFICACIONES Y ALERTAS (OnyxLoot)
   ========================================================================== */

/* 1. MAGIC TOAST (Alerta Flotante) */
.magic-toast {
    position: fixed;
    bottom: 30px;
    right: -400px; /* Escondido a la derecha por defecto */
    background: #111115;
    border-left: 4px solid var(--neon-orange, #ff6b00);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 107, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    z-index: 9999;
    max-width: 350px;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Animación de rebote */
}

/* Clase que se activa por JS para mostrar el Toast */
.magic-toast.show {
    right: 30px;
}

/* 2. DROPDOWN DE LA CAMPANITA DE NOTIFICACIONES */
.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: #0a0a0c;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: none; /* Oculto por defecto */
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDown 0.2s ease-out;
}

.notif-dropdown.active {
    display: flex;
}

.notif-header {
    padding: 15px;
    background: #151518;
    border-bottom: 1px solid #333;
    font-weight: bold;
    color: white;
    font-size: 1rem;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid #1a1a1f;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s ease;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #151518;
}

/* Estilo para las notificaciones que no han sido leídas */
.notif-item.unread {
    background: rgba(102, 252, 241, 0.05);
    border-left: 4px solid var(--neon-cyan);
}

.notif-msg {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notif-time {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Animación para que el menú caiga suavemente */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}