/* ============================================================
   ATENA CRYPTO — Notification Center page
   demo2026/css/notifications.css
   ============================================================ */

.notif-wrap {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 0 1.25rem 4rem;
}

.notif-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.notif-page-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
}

/* ── Toolbar (filters + bulk actions) ── */
.notif-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.notif-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.notif-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 180ms var(--ease);
  white-space: nowrap;
}
.notif-filter:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.notif-filter.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}
.notif-filter-count {
  display: inline-block;
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 0.58rem;
  line-height: 14px;
  min-width: 18px;
  text-align: center;
}
.notif-filter:not(.is-active) .notif-filter-count {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
}

.notif-bulk-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}
.notif-bulk-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.notif-bulk-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.notif-bulk-btn.danger:hover {
  border-color: rgba(229,67,96,0.4);
  color: var(--red-bright);
}
.notif-bulk-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Feed ── */
.notif-feed {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.notif-feed-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid transparent;
  position: relative;
  transition: background 120ms var(--ease);
}
.notif-feed-item:last-child { border-bottom: none; }
.notif-feed-item:hover { background: rgba(255,255,255,0.025); }
.notif-feed-item.is-unread {
  border-left-color: var(--green);
  background: rgba(0,197,102,0.035);
}
.notif-feed-item.is-unread:hover { background: rgba(0,197,102,0.06); }

.notif-feed-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
}
.notif-feed-icon svg { width: 18px; height: 18px; }
.notif-feed-icon.type-price_alert  { background: rgba(0,197,102,0.10);  color: var(--green-bright); }
.notif-feed-icon.type-whale_alert  { background: rgba(80,160,255,0.10); color: #82B8FF; }
.notif-feed-icon.type-news_update  { background: rgba(255,180,80,0.10); color: #FFC470; }
.notif-feed-icon.type-weekly_report{ background: rgba(180,140,255,0.10);color: #C9AEFF; }

.notif-feed-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.notif-feed-body {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 4px;
}
.notif-feed-time {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.notif-feed-actions {
  grid-column: 3;
  grid-row: 2;
  margin-top: 6px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 120ms var(--ease);
}
.notif-feed-item:hover .notif-feed-actions { opacity: 1; }

.notif-row-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms var(--ease);
  white-space: nowrap;
}
.notif-row-btn:hover { border-color: var(--border-strong); color: var(--text); }
.notif-row-btn.danger:hover { border-color: rgba(229,67,96,0.35); color: var(--red-bright); }

/* ── Load more ── */
.notif-load-more-wrap {
  text-align: center;
  padding: 1.25rem 0;
}
.notif-load-more {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.notif-load-more:hover { background: rgba(255,255,255,0.08); border-color: var(--border-strong); }
.notif-load-more:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Empty states ── */
.notif-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-tertiary);
}
.notif-empty-state svg { width: 36px; height: 36px; opacity: 0.5; margin-bottom: 12px; }
.notif-empty-state-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
}
.notif-empty-state-body {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}
.notif-empty-state-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
}
.notif-empty-state-link:hover { color: var(--green-bright); }

/* ── Confirm modal (Clear all) ── */
.notif-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-modal {
  width: min(440px, 90vw);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}
.notif-modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.notif-modal-body {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.notif-modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.notif-modal-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text);
  transition: all 180ms var(--ease);
}
.notif-modal-btn:hover { background: rgba(255,255,255,0.05); border-color: var(--border-strong); }
.notif-modal-btn.danger {
  background: var(--red-dim);
  border-color: rgba(229,67,96,0.3);
  color: var(--red-bright);
}
.notif-modal-btn.danger:hover { background: var(--red); color: #fff; }

@media (max-width: 640px) {
  .notif-toolbar { flex-direction: column; align-items: stretch; }
  .notif-bulk-actions { margin-left: 0; }
  .notif-feed-item { grid-template-columns: 32px 1fr; column-gap: 10px; padding: 0.85rem 1rem; }
  .notif-feed-time { grid-column: 2; grid-row: 3; margin-top: 4px; }
  .notif-feed-actions { grid-column: 2; grid-row: 4; justify-content: flex-start; opacity: 1; }
}
