/* ═══════════════════════════════════════════════════════════════════════
 *  notification-bell.css — Phase 1c
 *
 *  Scoped to the bell dropdown; the bell button itself is the existing
 *  .v2-icon-btn from portal-v2.css. We just add the panel and the row
 *  styles. Variables (--surface, --ink, etc) come from the V3 theme
 *  files so this works in light AND dark mode.
 * ═══════════════════════════════════════════════════════════════════════ */

[data-bell-root] {
    position: relative;
    display: inline-block;
}

/* ── Dropdown panel ──────────────────────────────────────────────── */
[data-bell-panel] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}
[data-bell-panel].open { display: flex; }

/* ── Panel header ────────────────────────────────────────────────── */
[data-bell-panel] .notif-head {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
}
[data-bell-panel] .notif-head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
}
[data-bell-panel] .notif-head button {
    background: none;
    border: none;
    color: var(--ink-4, #888);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}
[data-bell-panel] .notif-head button:hover {
    color: var(--ink, #1a1a1a);
    background: var(--ink-faint, rgba(0,0,0,0.04));
}

/* ── List area ───────────────────────────────────────────────────── */
[data-bell-list] {
    overflow-y: auto;
    flex: 1;
    max-height: 380px;
}

/* ── Individual row ──────────────────────────────────────────────── */
.notif-row {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-faint, rgba(0,0,0,0.04));
    transition: background 80ms ease;
}
.notif-row:hover { background: var(--ink-faint, rgba(0,0,0,0.03)); }
.notif-row:last-child { border-bottom: none; }

.notif-row-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
    margin-top: 6px;
    background: var(--rcs-blue, #2e75b6);
}
.notif-sev-info     { background: var(--rcs-blue,    #2e75b6); }
.notif-sev-success  { background: var(--rcs-approved,#10b981); }
.notif-sev-warning  { background: var(--rcs-pending, #f59e0b); }
.notif-sev-critical { background: var(--rcs-rejected,#ef4444); }

.notif-row-body { flex: 1; min-width: 0; }
.notif-row-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink, #1a1a1a);
    margin-bottom: 2px;
    word-break: break-word;
}
.notif-row-text {
    font-size: 12px;
    color: var(--ink-3, #555);
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-row-meta {
    font-size: 11px;
    color: var(--ink-4, #888);
}

/* ── Empty/loading states ────────────────────────────────────────── */
.notif-empty, [data-bell-loading] {
    padding: 28px 14px;
    text-align: center;
    color: var(--ink-4, #888);
    font-size: 13px;
}

/* ── Panel footer ────────────────────────────────────────────────── */
[data-bell-panel] .notif-foot {
    padding: 8px 14px;
    border-top: 1px solid var(--border, rgba(0,0,0,0.06));
    text-align: center;
}
[data-bell-panel] .notif-foot a {
    color: var(--accent, #2e75b6);
    font-size: 12.5px;
    text-decoration: none;
}
[data-bell-panel] .notif-foot a:hover { text-decoration: underline; }
