/* ============================================================================
   DagM8 · views/notifications.css — Notifications (activity feed)
   Screen-specific styles only; tokens + shared components come from dagm8.css.
   Prefix: .ntf-* / .ntf  (plus the shared .filterbar / .filter-pill).
   ========================================================================= */

.ntf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.ntf-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ntf-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.ntf-sub [data-unread-count] { color: var(--coral); font-weight: 700; }
.ntf-readall { flex: none; }

.ntf-filters { margin-bottom: var(--s5); }

/* group ------------------------------------------------------------------- */
.ntf-group { margin-bottom: var(--s5); }
.ntf-group__label {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s2);
}
.ntf-group__n {
  text-transform: none; letter-spacing: 0;
  background: rgba(245,54,92,.12); color: var(--coral);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill);
}

.ntf-list {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden;
}
.ntf { display: block; }
.ntf[hidden] { display: none; }
.ntf + .ntf { border-top: 1px solid var(--line-2); }

.ntf__row {
  display: flex; align-items: flex-start; gap: var(--s3); width: 100%; text-align: left;
  padding: var(--s4) var(--s5); border: 0; background: none;
  transition: background var(--t);
}
.ntf__row:hover { background: var(--field); }

/* unread rows: tinted, with a cyan accent bar on the left */
.ntf[data-unread="1"] .ntf__row { background: rgba(40,194,213,.06); box-shadow: inset 3px 0 0 var(--cyan); }
.ntf[data-unread="1"] .ntf__row:hover { background: rgba(40,194,213,.11); }

/* avatar + kind glyph */
.ntf__avatar { position: relative; flex: none; }
.ntf__glyph {
  position: absolute; right: -3px; bottom: -3px;
  width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 2px solid var(--surface); background: var(--muted);
}
.ntf__glyph .ico { width: 10px; height: 10px; stroke-width: 2.4; }
.ntf__glyph--mate    { background: var(--cyan); }
.ntf__glyph--join    { background: var(--green); }
.ntf__glyph--event   { background: var(--coral); }
.ntf__glyph--reply   { background: var(--indigo); }
.ntf__glyph--like    { background: var(--magenta); }
.ntf__glyph--mention { background: var(--orange); }

.ntf__body { min-width: 0; flex: 1; }
.ntf__text { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.ntf__text strong { color: var(--ink); font-weight: 700; }
.ntf__time { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.ntf__time .ico { width: 14px; height: 14px; }

.ntf__unread { flex: none; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.ntf[data-unread="1"] .ntf__unread { background: var(--cyan); }

.ntf-empty { margin: var(--s6) 0; text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; }

/* right rail summary ------------------------------------------------------ */
.ntf-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ntf-summary__n { font-size: 34px; font-weight: 800; line-height: 1; color: var(--coral); letter-spacing: -.02em; }
.ntf-summary__l { font-size: 12.5px; color: var(--muted); }

.ntf-types { display: flex; flex-direction: column; }
.ntf-type { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; font-size: 13px; }
.ntf-type + .ntf-type { border-top: 1px solid var(--line-2); }
.ntf-type__icon {
  flex: none; width: 28px; height: 28px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--field); color: var(--ink-2);
}
.ntf-type__icon .ico { width: 15px; height: 15px; }
.ntf-type__label { flex: 1; min-width: 0; font-weight: 600; color: var(--ink-2); }
.ntf-type__n { font-weight: 700; color: var(--muted); }

/* the topbar bell shows the active page state on this route */
.topbar [data-route="#notifications"][aria-current="page"] { color: var(--cyan); }

/* responsive ------------------------------------------------------------- */
@media (max-width: 560px) {
  .ntf-title { font-size: 22px; }
  .ntf-readall span { display: none; }
  .ntf__row { padding: var(--s3) var(--s4); }
}
