/* notifications.css — Notification center + context menu styles */

/* ─── Notification Panel ──────────────────────────────────── */
.notification-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-panel.open { right: 0; }

.notif-backdrop {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.notif-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Panel header */
.notif-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Panel body */
.notif-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Notification item */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 180ms ease;
    position: relative;
}

.notif-item:hover { background: var(--bg-tertiary); }

.notif-unread { background: var(--accent-light); }

.notif-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-content { flex: 1; min-width: 0; }

.notif-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.notif-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 180ms;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.notif-item:hover .notif-dismiss { opacity: 1; }
.notif-dismiss:hover { color: var(--text-primary); background: var(--bg-tertiary); }

/* Severity colors */
.notif-critical .notif-icon { color: var(--danger); }
.notif-high .notif-icon { color: var(--danger); }
.notif-warning .notif-icon { color: var(--warning); }
.notif-info .notif-icon { color: var(--info); }
.notif-success .notif-icon { color: var(--success); }

/* Empty state */
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
}

/* ─── Context Menu ────────────────────────────────────────── */
.context-menu {
    position: fixed;
    z-index: 10050;
    min-width: 180px;
    max-width: 280px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 4px 0;
    animation: contextMenuIn 120ms ease-out;
}

@keyframes contextMenuIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.83rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 100ms ease;
}

.context-menu-item:hover { background: var(--accent-light); }

.context-menu-item.danger { color: var(--danger); }
.context-menu-item.danger:hover { background: var(--danger-bg); }

.context-menu-item.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}
.context-menu-item.disabled:hover { background: none; }

.context-menu-icon { flex-shrink: 0; }
.context-menu-label { flex: 1; }

.context-menu-shortcut {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
    font-family: var(--font-mono);
}

.context-menu-separator {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }
}
