/*
 * Notification bell + tray (topbar). GLOBAL stylesheet (linked after pond-theme.css), Pond tokens,
 * inline-SVG icons. Mirrors the pond-usermenu dropdown idiom.
 */

.pond-notif-wrap { position: relative; display: inline-flex; margin-right: 0.4rem; }

.pond-notif-trigger {
    position: relative; width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted-foreground);
    cursor: pointer; transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.pond-notif-trigger:hover, .pond-notif-trigger.is-open { color: var(--foreground); border-color: color-mix(in oklch, var(--primary) 45%, transparent); }
.pond-notif-trigger svg { width: 1.2rem; height: 1.2rem; }

.pond-notif-badge {
    position: absolute; top: -0.3rem; right: -0.3rem; min-width: 1.05rem; height: 1.05rem; padding: 0 0.28rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: var(--destructive); color: #fff;
    font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; line-height: 1;
    border: 1.5px solid var(--background);
}

.pond-notif-backdrop { position: fixed; inset: 0; z-index: 40; }

.pond-notif-panel {
    position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 41; width: min(24rem, 92vw);
    background: var(--popover); color: var(--foreground); border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 0.2rem); box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.5); overflow: hidden;
}

.pond-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.pond-notif-title { font-family: var(--font-condensed); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: 0.92rem; }
.pond-notif-markall { border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.pond-notif-markall:hover { text-decoration: underline; }

.pond-notif-list { max-height: min(28rem, 70vh); overflow-y: auto; }
.pond-notif-empty { color: var(--muted-foreground); font-size: 0.85rem; padding: 1.1rem 0.85rem; text-align: center; }

.pond-notif-row { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.6rem 0.7rem; border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.pond-notif-row:last-child { border-bottom: 0; }
.pond-notif-row.is-unread { background: color-mix(in oklch, var(--primary) 8%, transparent); }

.pond-notif-dot { flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.4rem; border-radius: 50%; background: var(--muted-foreground); }
.pond-notif-dot--informational { background: var(--primary); }
.pond-notif-dot--action_needed { background: var(--warning); }
.pond-notif-dot--celebratory { background: var(--success); }

.pond-notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.pond-notif-headline { font-size: 0.88rem; line-height: 1.35; }
.pond-notif-sub { color: var(--muted-foreground); font-size: 0.78rem; }
.pond-notif-meta { color: var(--muted-foreground); font-size: 0.7rem; }

.pond-notif-x { flex: none; width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted-foreground); cursor: pointer; border-radius: var(--radius); opacity: 0; transition: opacity 0.12s ease; }
.pond-notif-row:hover .pond-notif-x { opacity: 1; }
.pond-notif-x:hover { color: var(--foreground); background: var(--surface-2); }
.pond-notif-x svg { width: 0.85rem; height: 0.85rem; }
