/* ═══════════════════════════════════════════════
   Intel Solution — Notification & PWA Styles v1.0
   ═══════════════════════════════════════════════ */

.notif-wrapper { position: relative; }
.notif-bell-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: #8892a4; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}
.notif-bell-btn:hover { color: #ffb800; border-color: #ffb800; background: rgba(255,184,0,0.08); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: #ff4757; color: white; font-size: 0.65rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid #060a10; animation: pulse 2s infinite;
}
.notif-panel {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 380px; max-height: 520px; background: rgba(14, 20, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6); backdrop-filter: saturate(1.8) blur(16px);
    z-index: 9999; opacity: 0; transform: translateY(-10px);
    pointer-events: none; transition: opacity 0.2s, transform 0.2s;
    display: flex; flex-direction: column; overflow: hidden;
}
.notif-panel.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notif-header h3 { font-size: 0.9rem; color: #e8edf5; display: flex; align-items: center; gap: 8px; }
.notif-header h3 i { color: #ffb800; }
.notif-actions { display: flex; gap: 6px; }
.notif-actions button {
    background: #111a28; border: 1px solid rgba(255,255,255,0.06);
    color: #8892a4; padding: 5px 10px; border-radius: 6px;
    cursor: pointer; font-size: 0.75rem; transition: 0.25s;
}
.notif-actions button:hover { color: #ffb800; border-color: #ffb800; }
.notif-actions button.subscribed { color: #00e676; border-color: #00e676; }
.notif-list { flex: 1; overflow-y: auto; max-height: 400px; }
.notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer; transition: background 0.15s;
}
.notif-item:hover { background: rgba(30, 42, 60, 0.6); }
.notif-item.unread { background: rgba(255,184,0,0.04); }
.notif-item.unread .notif-title { color: #e8edf5; font-weight: 600; }
.notif-item.read .notif-title { color: #8892a4; }
.notif-icon {
    flex-shrink: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #111a28; font-size: 0.85rem;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 0.82rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-body { font-size: 0.75rem; color: #4a5568; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 0.68rem; color: #4a5568; margin-top: 3px; }
.notif-dismiss {
    flex-shrink: 0; background: transparent; border: none;
    color: #4a5568; cursor: pointer; padding: 4px;
    opacity: 0; transition: opacity 0.15s;
}
.notif-item:hover .notif-dismiss { opacity: 1; }
.notif-dismiss:hover { color: #ff4757; }
.notif-empty { padding: 40px 20px; text-align: center; color: #4a5568; }
.notif-empty i { font-size: 2rem; margin-bottom: 10px; opacity: 0.4; display: block; }
.notif-empty p { font-size: 0.85rem; }
.notif-footer { padding: 10px 16px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: center; }
.notif-test-btn {
    background: #111a28; border: 1px solid rgba(255,255,255,0.06);
    color: #8892a4; padding: 6px 16px; border-radius: 6px;
    cursor: pointer; font-size: 0.75rem; transition: 0.25s;
}
.notif-test-btn:hover { color: #ffb800; border-color: #ffb800; }

/* Toast */
.notif-toast {
    position: fixed; bottom: 24px; right: 24px; padding: 12px 20px;
    border-radius: 8px; font-size: 0.85rem; font-weight: 500;
    z-index: 99999; opacity: 0; transform: translateY(20px);
    transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    font-family: 'Inter', sans-serif;
}
.notif-toast.show { opacity: 1; transform: translateY(0); }
.notif-toast-success { background: rgba(0,230,118,0.15); color: #00e676; border: 1px solid rgba(0,230,118,0.3); }
.notif-toast-error { background: rgba(255,71,87,0.15); color: #ff4757; border: 1px solid rgba(255,71,87,0.3); }
.notif-toast-warning { background: rgba(255,171,0,0.15); color: #ffab00; border: 1px solid rgba(255,171,0,0.3); }
.notif-toast-info { background: rgba(68,138,255,0.15); color: #448aff; border: 1px solid rgba(68,138,255,0.3); }

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(14, 20, 30, 0.85); border: 1px solid #ffb800;
    border-radius: 12px; padding: 16px 24px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 30px rgba(255,184,0,0.1);
    z-index: 99999; backdrop-filter: saturate(1.8) blur(16px);
    animation: notifSlideUp 0.4s ease;
}
.pwa-install-banner .pwa-icon { font-size: 1.8rem; }
.pwa-install-banner .pwa-text { flex: 1; }
.pwa-install-banner .pwa-text h4 { font-size: 0.95rem; color: #ffb800; margin-bottom: 2px; }
.pwa-install-banner .pwa-text p { font-size: 0.8rem; color: #8892a4; }
.pwa-install-btn {
    background: linear-gradient(135deg, #ffb800, #e0a000);
    color: #060a10; border: none; padding: 10px 20px;
    border-radius: 8px; font-weight: 600; cursor: pointer;
    font-size: 0.85rem; transition: 0.25s;
}
.pwa-install-btn:hover { transform: scale(1.05); }
.pwa-dismiss-btn { background: transparent; border: none; color: #4a5568; cursor: pointer; font-size: 1.2rem; padding: 4px; }
@keyframes notifSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(30px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
    .notif-panel {
        position: fixed; top: 64px;
        left: 0; right: 0; width: 100%;
        max-height: calc(100vh - 64px);
        border-radius: 0; border-top: 2px solid #ffb800;
    }
    .pwa-install-banner { left: 16px; right: 16px; transform: none; flex-wrap: wrap; }
}
