/* ============================================================
   GRIT — Notifications Page
   notifications.css
   ============================================================ */

.notif-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.notif-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 32px 0 28px;
  padding: 44px 48px;
}
.notif-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 10% 50%, rgba(124,124,255,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(199,125,255,0.1) 0%, transparent 60%),
    linear-gradient(135deg, rgba(5,6,15,0.98) 0%, rgba(10,12,24,0.95) 100%);
}
.notif-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,124,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,124,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.notif-hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.notif-hero-text h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px; font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, #a89bff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px; line-height: 1.05;
}
.notif-hero-text p { font-size: 14px; color: var(--text-muted); }

.notif-mark-all-page-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--purple-dim); border: 1px solid var(--border-lit);
  border-radius: var(--radius-md); color: var(--purple);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.18s;
}
.notif-mark-all-page-btn:hover {
  background: rgba(124,124,255,0.22); color: #fff; border-color: var(--purple);
}

/* ── Filter bar ───────────────────────────────────────────── */
.notif-filter-bar {
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.notif-filter {
  padding: 8px 18px; border-radius: 99px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted); font-size: 13px;
  font-weight: 500; font-family: inherit; cursor: pointer;
  transition: all 0.18s;
}
.notif-filter:hover { border-color: var(--border-lit); color: var(--text); }
.notif-filter.active {
  background: var(--purple-dim); border-color: var(--purple);
  color: var(--purple); font-weight: 600;
}

/* ── Notifications list ───────────────────────────────────── */
.notif-page-list {
  display: flex; flex-direction: column; gap: 2px;
}

/* ── Date group header ────────────────────────────────────── */
.notif-date-group { margin-bottom: 4px; margin-top: 20px; }
.notif-date-group:first-child { margin-top: 0; }
.notif-date-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted);
  padding: 0 4px 10px;
  display: flex; align-items: center; gap: 12px;
}
.notif-date-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Notification row ─────────────────────────────────────── */
.notif-page-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  position: relative; overflow: hidden; margin-bottom: 6px;
}
.notif-page-item:hover {
  border-color: rgba(124,124,255,0.2);
  background: rgba(255,255,255,0.03);
  transform: translateX(3px);
}
.notif-page-item.unread {
  background: rgba(124,124,255,0.06);
  border-color: rgba(124,124,255,0.15);
}
.notif-page-item.unread::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--purple), var(--violet));
}

/* Type icon circle */
.notif-type-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.notif-type-icon.like    { background: rgba(255,77,109,0.15); border: 1px solid rgba(255,77,109,0.25); }
.notif-type-icon.comment { background: rgba(77,166,255,0.15); border: 1px solid rgba(77,166,255,0.25); }
.notif-type-icon.follow  { background: rgba(124,124,255,0.15); border: 1px solid rgba(124,124,255,0.25); }

/* Actor avatar */
.notif-page-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.notif-page-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Content */
.notif-page-content { flex: 1; min-width: 0; }
.notif-page-message {
  font-size: 14px; color: rgba(220,224,240,0.85);
  line-height: 1.55; margin-bottom: 5px;
}
.notif-page-item.unread .notif-page-message { color: #fff; font-weight: 500; }
.notif-page-time { font-size: 12px; color: var(--text-hint); }

/* Unread dot */
.notif-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple); flex-shrink: 0; margin-top: 6px;
  box-shadow: 0 0 6px rgba(124,124,255,0.6);
}

/* ── Skeleton ─────────────────────────────────────────────── */
.notif-skeleton {
  height: 76px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite linear;
  border: 1px solid var(--border); margin-bottom: 6px;
}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

/* ── Empty state ──────────────────────────────────────────── */
.notif-page-empty {
  display: flex; flex-direction: column;
  align-items: center; padding: 80px 24px; gap: 14px; text-align: center;
}
.notif-page-empty-icon { font-size: 52px; opacity: 0.35; }
.notif-page-empty-title { font-family:'Rajdhani',sans-serif; font-size:24px; font-weight:700; color:var(--text); }
.notif-page-empty-desc  { font-size:14px; color:var(--text-muted); max-width:300px; line-height:1.6; }

/* ── Load more ────────────────────────────────────────────── */
.notif-load-more {
  display: flex; justify-content: center; margin-top: 24px;
}
.notif-load-more-btn {
  padding: 11px 32px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-muted);
  font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.18s;
}
.notif-load-more-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--border-lit); color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .notif-page { padding: 0 16px 80px; }
  .notif-hero { padding: 28px 20px; }
  .notif-hero-text h1 { font-size: 36px; }
  .notif-hero-actions { width: 100%; }
  .notif-mark-all-page-btn { width: 100%; justify-content: center; }
}
