/* Oznámení: panel v hlavičce i seznam na celé stránce. Vlastní soubor,
   protože ho vedle stránek s forum.css načítá i post.php, které má
   vlastní kostru. Proto i vlastní tokeny se záložními hodnotami. */

.notif-wrap,
.notif-list {
  --notif-line: var(--line, rgba(255, 255, 255, 0.10));
  --notif-line-soft: var(--line-soft, rgba(255, 255, 255, 0.06));
  --notif-surface: var(--surface, #0b0b0d);
  --notif-radius: var(--radius, 10px);
  --notif-mono: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
}

.notif-wrap { position: relative; }

.notif-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 140;
  width: min(360px, calc(100vw - 1.5rem));
  border: 1px solid var(--notif-line);
  border-radius: var(--notif-radius);
  background: var(--bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: notif-in 0.15s ease;
}
@keyframes notif-in {
  from { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .notif-panel { animation: none; }
}

.notif-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--notif-line-soft);
  background: var(--notif-surface);
}
.notif-head h2 {
  margin: 0;
  font-family: var(--notif-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.notif-all {
  margin-left: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.notif-all:hover { text-decoration: underline; }

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Na celé stránce se seznam nemá kam vejít, tak neomezujeme výšku. */
.notif-list.is-page {
  max-height: none;
  border: 1px solid var(--notif-line-soft);
  border-radius: var(--notif-radius);
}

.notif-item { border-bottom: 1px solid var(--notif-line-soft); }
.notif-item:last-child { border-bottom: none; }
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  color: inherit;
  text-decoration: none;
}
a.notif-row:hover { background: var(--notif-surface); }
/* Nepřečtené se pozná podkladem, ne jen tečkou - v seznamu je to vidět dřív. */
.notif-item.is-unread .notif-row { background: rgba(77, 110, 230, 0.07); }
.notif-item.is-unread a.notif-row:hover { background: rgba(77, 110, 230, 0.13); }

.notif-icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--text-faint); }
.notif-icon svg { display: block; width: 17px; height: 17px; }
.notif-welcome { color: #f0b429; }
.notif-report_resolved { color: #35d07f; }
.notif-report_rejected { color: #e35d5d; }

.notif-body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.notif-text {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: anywhere;
}
.notif-item:not(.is-unread) .notif-text { color: var(--text-muted); }
/* Titulek příspěvku, kterého se oznámení týká. */
.notif-sub {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-sub::before { content: "\201E"; }
.notif-sub::after { content: "\201C"; }
.notif-time { font-family: var(--notif-mono); font-size: 0.68rem; color: var(--text-faint); }

.notif-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin: 0.4rem 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.notif-empty { padding: 1.4rem 0.9rem; text-align: center; color: var(--text-faint); font-size: 0.85rem; }
.notif-more {
  display: block;
  padding: 0.65rem;
  border-top: 1px solid var(--notif-line-soft);
  background: var(--notif-surface);
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.notif-more:hover { color: var(--text); }

.wrap--narrow { max-width: 760px; }
