/*
 * page.css — Shared styles for all feed pages
 * (Latest Trends, Victim Stories, and any future feed pages)
 *
 * Usage: <link rel="stylesheet" href="../pages/page.css" />
 * Requires: ../styles.css loaded first for CSS variables
 */

/* ── PAGE HERO ──────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(150deg, #000000 0%, #0b1f3a 40%, #163358 70%, #1e4a7a 100%);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  margin-bottom: 0;
  color: white;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  font-family: 'Lora', serif;
  font-size: var(--text-hero);
  font-weight: 400;
  margin: 0 0 14px;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-hero p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 560px;
  line-height: 1.7;
}

.page-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-hero-stat {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero-stat-num {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

.page-hero-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.18);
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 20px;
}

.updated-badge span { color: #7ee8c8; font-weight: 600; }

<<<<<<< HEAD
/* ── FILTER BAR ─────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0 24px;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
=======
/* ── TOOLBAR ────────────────────────────────────────────────────── */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--warm-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 28px;
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
>>>>>>> cf949338764075e0aba7cf037bdb8dbcb8efef64
  gap: 12px;
  flex-wrap: wrap;
}

<<<<<<< HEAD
.filter-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select-group label {
=======
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--body-text);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sort-group label {
>>>>>>> cf949338764075e0aba7cf037bdb8dbcb8efef64
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
<<<<<<< HEAD
  white-space: nowrap;
}

.filter-select-group select {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--body-text);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
=======
}

.sort-group select {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--body-text);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
>>>>>>> cf949338764075e0aba7cf037bdb8dbcb8efef64
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

<<<<<<< HEAD
.filter-select-group select:focus { border-color: var(--border-strong); }

@media (max-width: 640px) {
  .filter-bar { justify-content: flex-start; padding: 12px 0 20px; }
  .filter-bar-inner { gap: 10px; }
  .filter-select-group select { font-size: 14px; padding: 7px 10px; }
}
=======
.sort-group select:focus { border-color: var(--border-strong); }
>>>>>>> cf949338764075e0aba7cf037bdb8dbcb8efef64

/* ── PAGE GRID ──────────────────────────────────────────────────── */
.page-grid {
  display: grid;
  gap: 24px;
}

/* ── SHARED CARD BASE ───────────────────────────────────────────── */
.page-card {
  background: var(--warm-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.page-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.page-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-card-title {
  font-family: 'Lora', serif;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.4;
}

.category-badge {
  flex-shrink: 0;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.page-card-meta {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 20px 0 8px;
}

.page-card-body p {
  font-size: var(--text-sm);
  color: var(--body-text);
  margin: 0;
  line-height: 1.8;
}

.example-box {
  background: var(--warm-mist);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  font-size: var(--text-sm);
  color: var(--body-text);
  font-style: italic;
  line-height: 1.7;
  margin: 8px 0;
}

.red-flags-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.red-flags-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--body-text);
  padding: 4px 0;
  line-height: 1.6;
}

.red-flags-list li::before {
  content: "✗";
  color: var(--danger);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.what-to-do-box {
  background: #d1fae5;
  border-radius: var(--r-sm);
  padding: 14px 20px;
  font-size: var(--text-sm);
  color: #065f46;
  font-weight: 500;
  margin: 8px 0;
  line-height: 1.6;
}

.what-to-do-box::before {
  content: "✓ ";
  font-weight: 700;
}

.page-card-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.action-btn:hover { background: var(--navy2); text-decoration: none; }

/* ── CATEGORY BADGE COLORS ──────────────────────────────────────── */
/* Scam type */
.badge-phone_scam              { background: #fde8e8; color: #9b1c1c; }
.badge-text_scam               { background: #fef3c7; color: #92400e; }
.badge-email_scam              { background: #dbeafe; color: #1e40af; }
.badge-social_media            { background: #ede9fe; color: #5b21b6; }
.badge-romance_scam            { background: #fce7f3; color: #9d174d; }
.badge-government_impersonation{ background: #fdf3e0; color: #92400e; }
.badge-tech_support            { background: #d1fae5; color: #065f46; }
.badge-tech_support_scam       { background: #d1fae5; color: #065f46; }
.badge-grandparent_scam        { background: #fde8e8; color: #9b1c1c; }
.badge-investment_fraud        { background: #fef3c7; color: #92400e; }
.badge-crypto_scam             { background: #dbeafe; color: #1e40af; }
.badge-phishing                { background: #d1fae5; color: #065f46; }
.badge-identity_theft          { background: #fde8e8; color: #9b1c1c; }
.badge-online_shopping_fraud   { background: #ede9fe; color: #5b21b6; }
.badge-lottery_scam            { background: #fef3c7; color: #92400e; }
.badge-other                   { background: var(--warm-mist); color: var(--muted); }

/* ── STATES ─────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state p { font-size: var(--text-sm); }

.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-hero { padding: 36px 32px; border-radius: var(--r-lg); min-height: 200px; }
  .toolbar-inner { padding: 0; }
}

@media (max-width: 640px) {
  .page-hero { padding: 28px 20px; border-radius: var(--r-md); min-height: 180px; }
  .page-hero h1 { font-size: var(--text-lg); }
  .page-card { padding: 22px 18px; }
  .page-card-header { flex-direction: column; }
  .toolbar-inner { gap: 8px; }
  .sort-group { width: 100%; justify-content: flex-end; }
  .filter-btn { font-size: 14px; padding: 5px 12px; }
}
<<<<<<< HEAD

/* ── DARK THEME ─────────────────────────────────────────────────── */
body.dark .page-hero {
  background: #dde4f0;
  color: #0b1f3a;
}
body.dark .page-hero h1 { color: #0b1f3a; }
body.dark .page-hero p  { color: #334155; }
body.dark .page-hero .updated-badge {
  background: rgba(11,31,58,0.08);
  border-color: rgba(11,31,58,0.18);
  color: #334155;
}
body.dark .page-hero .updated-badge span { color: #1a6b5a; }

body.dark .page-card {
  background: var(--warm-card);
  border-color: var(--border);
}
body.dark .page-card-title { color: var(--body-text); }
body.dark .page-card-meta  { color: var(--muted); }
body.dark .page-card-body p { color: var(--body-text); }
body.dark .page-card-footer { border-color: var(--border); }

body.dark .section-label { color: var(--muted); }

body.dark .example-box {
  background: var(--warm-mist);
  border-left-color: #1a5c3a;
  color: var(--body-text);
}

body.dark .red-flags-list li { color: var(--body-text); }

body.dark .what-to-do-box { background: rgba(16,185,129,0.10); color: #6ee7b7; }

body.dark .filter-select-group select {
  background: var(--warm-card);
  color: var(--body-text);
  border-color: var(--border);
}
body.dark .filter-select-group select:focus { border-color: var(--border-strong); }
body.dark .filter-select-group label { color: var(--muted); }

body.dark .loading-state { color: var(--muted); }
body.dark .empty-state p  { color: var(--muted); }
=======
>>>>>>> cf949338764075e0aba7cf037bdb8dbcb8efef64
