/* Notifications System - STL Fantasy (Premium Aesthetic) */

.notification-container {
    position: relative;
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
}

.notification-btn {
    background: hsla(220, 39%, 14%, 0.6);
    border: 1px solid hsla(220, 100%, 95%, 0.1);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #a8b5cf;
    position: relative;
}

.notification-btn:hover {
    background: var(--color-accent-primary, #4a9eff);
    color: #060913;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 0 15px hsla(212, 100%, 65%, 0.4);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #060913;
    display: none; /* Se activa vía JS */
}

/* Animación de "Respiración Neón" */
.notification-btn.has-unread::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #4a9eff;
    opacity: 0;
    animation: neon-pulse 2s infinite;
}

@keyframes neon-pulse {
    0% { transform: scale(1); opacity: 0.6; box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.4); }
    70% { transform: scale(1.2); opacity: 0; box-shadow: 0 0 0 10px rgba(74, 158, 255, 0); }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Dropdown de Notificaciones */
.notification-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 15px);
    right: -70px;
    width: 320px;
    background: hsla(222, 47%, 11%, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(220, 100%, 95%, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    overflow: hidden;
}

.notification-container:hover .notification-dropdown,
.notification-dropdown.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-header {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-family: 'Orbitron';
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #fff;
}

.mark-all-read {
    font-size: 0.75rem;
    color: #4a9eff;
    cursor: pointer;
    font-family: 'Inter';
    font-weight: 600;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-item {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: background 0.3s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: rgba(255,255,255,0.03);
}

.notification-item.unread {
    background: rgba(74, 158, 255, 0.05);
    border-left-color: #4a9eff;
}

.notification-item h5 {
    margin: 0 0 0.3rem;
    font-size: 0.85rem;
    font-family: 'Rajdhani';
    font-weight: 700;
    color: #fff;
}

.notification-item p {
    margin: 0;
    font-size: 0.8rem;
    color: #a8b5cf;
    line-height: 1.4;
}

.notification-time {
    display: block;
    font-size: 0.65rem;
    color: #5a6a8a;
    margin-top: 0.5rem;
}

.notification-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: #5a6a8a;
    font-family: 'Inter';
    font-size: 0.85rem;
}

/* Scrollbar Custom */
.notification-list::-webkit-scrollbar { width: 5px; }
.notification-list::-webkit-scrollbar-track { background: transparent; }
.notification-list::-webkit-scrollbar-thumb { background: rgba(74, 158, 255, 0.2); border-radius: 10px; }
