/* Sangai Express Notifications page — adapted from Prototype v11 notification styles. */
.notifications-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 40px;
  color: var(--text-primary, #222222);
  font-family: var(--font-ui, Inter, Arial, sans-serif);
}

.notifications-page * { box-sizing: border-box; }

.notifications-page .notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.notifications-page .notif-header h1 {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #222222);
}

.notifications-page .notif-mark-all {
  padding: 8px 14px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #dedede);
  border-radius: 6px;
  font: 600 12px/1.2 var(--font-ui, Inter, Arial, sans-serif);
  color: var(--text-primary, #222222);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.notifications-page .notif-mark-all:hover { background: var(--bg-alt, #f5f5f5); }
.notifications-page .notif-mark-all:focus-visible,
.notifications-page .notif-tab:focus-visible,
.notifications-page .notif-item:focus-visible {
  outline: 2px solid var(--primary, #222222);
  outline-offset: 2px;
}

.notifications-page .notif-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border, #dedede);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.notifications-page .notif-tab {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font: 600 13px/1.2 var(--font-ui, Inter, Arial, sans-serif);
  color: var(--text-muted, #858585);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.notifications-page .notif-tab.active {
  color: var(--text-primary, #222222);
  border-bottom-color: var(--primary, #222222);
}

.notifications-page .notif-count {
  background: var(--bg-alt, #f2f2f2);
  padding: 1px 7px;
  border-radius: 10px;
  font: 600 11px/1.4 var(--font-ui, Inter, Arial, sans-serif);
  color: var(--text-secondary, #555555);
}

.notifications-page .notif-tab.active .notif-count {
  background: var(--primary, #222222);
  color: #ffffff;
}

.notifications-page .notif-list {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #dedede);
  border-radius: 8px;
  overflow: hidden;
}

.notifications-page .notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light, #eeeeee);
  cursor: pointer;
  transition: background .15s ease;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.notifications-page .notif-item:last-child { border-bottom: none; }
.notifications-page .notif-item:hover { background: var(--bg-alt, #f5f5f5); }

.notifications-page .notif-item.unread {
  background: #fffdf5;
  border-left: 3px solid var(--gold, #d4a017);
  padding-left: 17px;
}

.notifications-page .notif-item.unread:hover { background: #fff9e6; }
.notifications-page .notif-item[hidden] { display: none !important; }

.notifications-page .notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-alt, #f2f2f2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notifications-page .notif-icon.breaking { background: #fceaea; color: var(--breaking, #a53939); }
.notifications-page .notif-icon.comment { background: #e8f4fb; color: var(--section-world, #0b4775); }
.notifications-page .notif-icon.sub { background: var(--gold-tint, #fff7dd); color: var(--gold, #d4a017); }
.notifications-page .notif-icon.system { background: var(--bg-alt, #f2f2f2); color: var(--text-secondary, #555555); }

.notifications-page .notif-body { flex: 1; min-width: 0; }
.notifications-page .notif-title {
  font: 600 14px/1.4 var(--font-ui, Inter, Arial, sans-serif);
  color: var(--text-primary, #222222);
  margin-bottom: 3px;
}
.notifications-page .notif-text {
  font: 400 13px/1.5 var(--font-ui, Inter, Arial, sans-serif);
  color: var(--text-secondary, #555555);
  margin-bottom: 4px;
}
.notifications-page .notif-time {
  font: 500 11px/1.2 var(--font-ui, Inter, Arial, sans-serif);
  color: var(--text-muted, #858585);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.notifications-page .notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--breaking, #a53939);
  flex-shrink: 0;
  margin-top: 8px;
}

.notifications-page .notif-item:not(.unread) .notif-dot { visibility: hidden; }
.notifications-page .notif-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted, #858585);
  font: 400 14px/1.6 var(--font-ui, Inter, Arial, sans-serif);
}
.notifications-page .notif-empty[hidden] { display: none !important; }
.notifications-page .notif-empty .empty-icon { font-size: 36px; margin-bottom: 10px; }

/* Site-wide dark-mode integration */
html[data-mode="dark"] .notifications-page .notif-list,
html[data-mode="dark"] .notifications-page .notif-mark-all {
  background: var(--bg-card, #222222);
  border-color: var(--border, #3a3a3a);
}
html[data-mode="dark"] .notifications-page .notif-item,
html[data-mode="dark"] .notifications-page .notif-item.unread,
html[data-mode="dark"] .notifications-page .notif-item.unread:hover {
  background: var(--bg-card, #222222);
  border-bottom-color: var(--border-light, #333333);
}
html[data-mode="dark"] .notifications-page .notif-item.unread {
  border-left-color: var(--gold, #d4a017);
}
html[data-mode="dark"] .notifications-page .notif-item:hover { background: var(--bg-alt, #2a2a2a); }
html[data-mode="dark"] .notifications-page .notif-title,
html[data-mode="dark"] .notifications-page .notif-header h1,
html[data-mode="dark"] .notifications-page .notif-tab.active { color: var(--text-primary, #f3f3f3); }
html[data-mode="dark"] .notifications-page .notif-text,
html[data-mode="dark"] .notifications-page .notif-time { color: var(--text-secondary, #b8b8b8); }

@media (max-width: 640px) {
  .notifications-page .notif-header h1 { font-size: 25px; }
  .notifications-page .notif-tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .notifications-page .notif-tab { padding: 10px 12px; font-size: 12px; }
  .notifications-page .notif-item { padding: 14px 12px; gap: 10px; }
  .notifications-page .notif-item.unread { padding-left: 9px; }
  .notifications-page .notif-icon { width: 34px; height: 34px; }
  .notifications-page .notif-title { font-size: 13px; }
  .notifications-page .notif-text { font-size: 12px; }
}
