/* ===================================================================
   NOTIFICATIONS — Krende Deck Theme
   Scoped: body.page-notifications
   Fonts : Bricolage Grotesque · JetBrains Mono · Outfit
   =================================================================== */

body.page-notifications {
  /* ── CSS vars used by inline styles ── */
  --accent:          #c6f74e;
  --accent-hover:    #9fd313;
  --accent-on:       #0a0f04;
  --accent-soft:     rgba(198, 247, 78, 0.10);
  --bg-elevated:     #12151c;
  --bg-elevated-soft:#171b24;
  --bg-input:        #171b24;
  --border-subtle:   rgba(132, 148, 170, 0.14);
  --border-strong:   rgba(132, 148, 170, 0.28);
  --text-main:       #e9eef4;
  --text-soft:       #93a0b2;
  --text-muted:      #5e6b7d;
  --radius-md:       11px;
  --transition-fast: 0.18s cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-body:    "Outfit", system-ui, sans-serif;

  background-color: #090b0f;
  background-image: radial-gradient(circle at 1px 1px, rgba(132, 148, 170, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
}

body.page-notifications ::selection {
  background: var(--accent);
  color: var(--accent-on);
}

/* ── header / footer blend ── */
body.page-notifications .site-header {
  background: rgba(9, 11, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
body.page-notifications .nav-menu a { color: var(--text-soft); transition: color 0.2s; }
body.page-notifications .nav-menu a:hover,
body.page-notifications .nav-menu a.active { color: var(--accent); }
body.page-notifications .logo-mark { background: var(--accent); color: var(--accent-on); }
body.page-notifications .site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #0d1015;
}

/* ================================================================
   PAGE LAYOUT
   ================================================================ */
.notif-page { padding: 44px 0 88px; }

/* ================================================================
   HEADER ROW
   ================================================================ */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.notif-title-group h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.025em;
  margin-bottom: 5px;
  background: linear-gradient(120deg, var(--text-main) 55%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.notif-title-group p { font-size: 0.88rem; color: var(--text-soft); }
.notif-title-group p strong { color: var(--accent); }

.notif-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ghost button */
.btn-ghost {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ================================================================
   QUICK SETTINGS BAR
   ================================================================ */
.notif-settings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.83rem;
  color: var(--text-soft);
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.notif-settings-bar:hover { border-color: var(--border-strong); }
.notif-settings-bar a { color: var(--accent); font-size: 0.82rem; transition: color 0.18s; }
.notif-settings-bar a:hover { color: var(--accent-hover); }

.toggle-row { display: flex; align-items: center; gap: 8px; }

.toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: var(--transition-fast);
}
.toggle-switch.on {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-switch.on::after {
  left: 18px;
  background: var(--accent-on);
}

/* ================================================================
   FILTER TABS
   ================================================================ */
.notif-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.notif-tab {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.83rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-tab:hover { border-color: var(--border-strong); color: var(--text-main); }

.notif-tab.active {
  background: var(--accent-soft);
  border-color: rgba(198, 247, 78, 0.35);
  color: var(--accent);
  font-weight: 600;
}

.notif-tab-badge {
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ================================================================
   NOTIFICATION LIST
   ================================================================ */
.notif-list { display: flex; flex-direction: column; gap: 3px; }

.notif-day-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 16px 0 8px;
}

/* ── notification item ── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

/* ── unread state: lime tint instead of blue ── */
.notif-item.unread {
  background: rgba(198, 247, 78, 0.04);
  border-color: rgba(198, 247, 78, 0.14);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ── icon ── */
.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.notif-icon.type-purchase { background: rgba(198, 247, 78, 0.12); border-color: rgba(198, 247, 78, 0.20); }
.notif-icon.type-review   { background: rgba(255, 206, 79, 0.12); border-color: rgba(255, 206, 79, 0.20); }
.notif-icon.type-job      { background: rgba(79,  230, 255, 0.12); border-color: rgba(79, 230, 255, 0.20); }
.notif-icon.type-system   { background: rgba(132, 148, 170, 0.10); border-color: rgba(132, 148, 170, 0.18); }
.notif-icon.type-payment  { background: rgba(255, 206, 79, 0.12); border-color: rgba(255, 206, 79, 0.20); }
.notif-icon.type-message  { background: rgba(79,  230, 255, 0.12); border-color: rgba(79, 230, 255, 0.20); }

/* ── content ── */
.notif-content { flex: 1; min-width: 0; }

.notif-content-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 3px;
  line-height: 1.4;
}
.notif-item.unread .notif-content-title { font-weight: 650; color: #f0f4f8; }

.notif-content-body {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── hover action buttons ── */
.notif-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.notif-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
}
.notif-item:hover .notif-action-btn { opacity: 1; }
.notif-action-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(198, 247, 78, 0.30);
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.notif-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-soft);
  display: none;
}
.notif-empty.show { display: block; }
.notif-empty .empty-icon { font-size: 3.5rem; margin-bottom: 18px; opacity: 0.5; }
.notif-empty h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 8px;
  color: var(--text-soft);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
  .notif-item { padding: 12px 14px; }
  .notif-icon { width: 38px; height: 38px; font-size: 1rem; }
  .notif-action-btn { opacity: 1; }
  .notif-settings-bar { gap: 8px; }
}
