/* NOTIFICATION-ACTION-CENTER-001 — the bell, its panel, the Bildirimler page and the preferences section.
   App tokens only (app.css :root); no colour is written here. */

/* ---- bell + badge ---- */
.ntf-wrap { position: relative; }
.ntf-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--surface); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--surface); pointer-events: none; }
.ntf-badge[hidden] { display: none; }
.ntf-badge.critical { background: var(--stop); }

/* ---- panel ---- */
.popover.ntf-pop { width: 420px; max-height: min(560px, calc(100vh - var(--head-h) - 24px)); display: flex; flex-direction: column; }
.popover.ntf-pop > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.popover.ntf-pop > header h3 { margin: 0; font-size: 14px; }
.ntf-pop-body { overflow: auto; }
.ntf-pop-foot { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ntf-pop-foot a { font-weight: 600; }

/* ---- rows (panel + page) ---- */
.ntf-list { display: flex; flex-direction: column; }
.ntf-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ntf-row:last-child { border-bottom: 0; }
.ntf-row.unread { background: var(--accent-soft); }
.ntf-row.critical-open { box-shadow: inset 3px 0 0 var(--stop); }
.ntf-row .ntf-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: transparent; }
.ntf-row.unread .ntf-dot { background: var(--accent); }
.ntf-row.critical-open .ntf-dot { background: var(--stop); }
.ntf-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ntf-title { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--text); text-decoration: none; }
.ntf-title:hover { text-decoration: underline; }
.ntf-body { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.ntf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--text-3); }
.ntf-meta .chip { height: 20px; font-size: 11px; }
.ntf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ntf-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ntf-actions a.btn-link, .ntf-actions button.sm { font-size: 12px; }
a.btn-link { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; text-decoration: none; }
a.btn-link:hover { background: var(--surface-2); }
a.btn-link.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.ntf-state { font-size: 12px; font-weight: 600; }
.ntf-state.open { color: var(--warn); }
.ntf-state.critical { color: var(--stop); }
.ntf-state.done { color: var(--ok); }

/* ---- page ---- */
.ntf-page .ntf-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.ntf-page .ntf-filters select { height: 34px; }
.ntf-page .ntf-list { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ntf-page .segmented .count-label { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }
.ntf-more { display: flex; justify-content: center; padding: 14px; }
.ntf-legend { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ---- preferences (Hesabım) ---- */
.ntf-prefs { display: flex; flex-direction: column; gap: 18px; }
.ntf-prefs h4 { margin: 0 0 6px; font-size: 13px; }
.ntf-prefs .hint { font-size: 12px; color: var(--text-3); }
.ntf-pref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.ntf-pref-grid label.check { align-items: flex-start; gap: 10px; padding: 8px 0; }
.ntf-pref-grid label.check .ntf-pref-text { display: flex; flex-direction: column; gap: 2px; }
.ntf-pref-grid label.check .ntf-pref-text small { color: var(--text-3); }
.ntf-pref-grid label.check.locked { opacity: .85; }
.ntf-channel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ntf-channel-row:last-child { border-bottom: 0; }
.ntf-channel-row .ntf-channel-name { display: flex; flex-direction: column; gap: 2px; }
.ntf-channel-row .ntf-channel-name small { color: var(--text-3); }
.ntf-prefs-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ntf-prefs-actions .small { color: var(--text-3); }

/* ---- responsive ---- */
@media (max-width: 600px) {
  .popover.ntf-pop { position: fixed; left: 8px; right: 8px; top: calc(var(--head-h) + 4px); width: auto; max-height: calc(100vh - var(--head-h) - 16px); }
  .ntf-row { grid-template-columns: 10px minmax(0, 1fr); }
  .ntf-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .ntf-pref-grid { grid-template-columns: 1fr; }
  .ntf-channel-row { grid-template-columns: 1fr; gap: 6px; }
}
