/* ==========================================================================
   scamchecker.online — shared stylesheet
   Union of the styles previously inlined in each page.
   Conflicting / page-specific rules are scoped so every page renders as before:
     - .wrap …      article pages (about, contact, methodology, privacy)
     - .page-list … the scams listing page (body class)
     - .page-head … listing-page header block
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a56db;
  --blue-dark: #1e40af;
  --blue-light: #eff6ff;
  --blue-mid: #bfdbfe;
  --navy: #111827;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --text: #111827;
  --text-2: #374151;
  --text-3: #6b7280;
  --text-4: #9ca3af;
  --red: #dc2626;
  --red-light: #fef2f2;
  --red-border: #fecaca;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --green-border: #bbf7d0;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;
  --r: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-right: 32px;
}
.nav-logo-icon { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.nav-logo .dot { color: var(--blue); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-links a.current { color: var(--blue); background: var(--blue-light); }

/* responsive nav: stack links onto their own row on small screens */
@media (max-width: 640px) {
  .nav-inner { height: auto; min-height: 60px; flex-wrap: wrap; padding: 8px 16px; }
  .nav-logo { margin-right: auto; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
  .nav-links a { padding: 5px 9px; font-size: 13px; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--text-2); border: 1px solid var(--border-dark); }
.btn-secondary:hover { border-color: var(--blue-mid); color: var(--blue); }

/* ===== HERO (homepage) ===== */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 52px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 26px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION SHELL ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-head p { font-size: 16px; color: var(--text-3); line-height: 1.6; }

/* listing page uses tighter section rhythm */
.page-list .section { padding: 44px 24px 0; }
.page-list .section:last-of-type { padding-bottom: 56px; }

/* ===== LISTING PAGE HEADER ===== */
.page-head { border-bottom: 1px solid var(--border); background: var(--bg); }
.page-head-inner { max-width: 1100px; margin: 0 auto; padding: 30px 24px 34px; }
.page-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.page-head .intro { font-size: 16px; color: var(--text-2); line-height: 1.6; max-width: 680px; }

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cat-head h2 { font-size: 21px; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; }
.cat-head .count { font-size: 13px; color: var(--text-4); font-weight: 500; }

/* ===== BREADCRUMB ===== */
.crumb { font-size: 13px; color: var(--text-3); }
.crumb a { color: var(--blue); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: var(--border-dark); margin: 0 6px; }
.wrap .crumb { margin-bottom: 18px; }
.page-head .crumb { margin-bottom: 14px; }

/* ===== SCAM CARD GRID (homepage + listing) ===== */
.scam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.scam-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.scam-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.08);
  transform: translateY(-2px);
}
.scam-card-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.tag-red { background: var(--red-light); color: var(--red); border: 1px solid var(--red-border); }
.tag-amber { background: var(--amber-light); color: var(--amber); border: 1px solid var(--amber-border); }
.tag-blue { background: var(--blue-light); color: var(--blue-dark); border: 1px solid var(--blue-mid); }
.scam-card-title { font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 7px; }
.scam-card-desc { font-size: 14px; color: var(--text-3); line-height: 1.55; flex: 1; }
.scam-card-foot {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
}
.scam-card-foot .arrow { transition: transform 0.15s; }
.scam-card:hover .arrow { transform: translateX(3px); }

/* upcoming / placeholder card */
.scam-card.upcoming { background: var(--bg); border-style: dashed; cursor: default; }
.scam-card.upcoming:hover { transform: none; box-shadow: none; border-color: var(--border-dark); }
.upcoming-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 10px;
}
.upcoming-list { font-size: 14px; color: var(--text-3); line-height: 1.7; }

/* ===== WARNING SIGNS (homepage) ===== */
.signals-section { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.signal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.signal-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.signal-icon svg { width: 17px; height: 17px; }
.signal-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 3px; line-height: 1.3; }
.signal-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }
.signals-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 720px;
}
.signals-note strong { color: var(--navy); font-weight: 600; }

/* ===== TRUST STRIP (homepage) ===== */
.trust { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; gap: 24px; } }
.trust h2 { font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 12px; }
.trust p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }
.trust p:last-child { margin-bottom: 0; }
.trust a { color: var(--blue); text-decoration: none; font-weight: 500; }
.trust a:hover { text-decoration: underline; }
.trust-card { background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: 12px; padding: 22px 24px; }
.trust-card-head {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trust-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.trust-check { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }

/* ===== ARTICLE PAGES (.wrap: about / contact / methodology / privacy) ===== */
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.about-logo { display: block; margin: 4px auto 16px; width: 400px; max-width: 100%; height: auto; }
.wrap h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.wrap .updated {
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.wrap h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 34px 0 12px; letter-spacing: -0.01em; }
.wrap h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin: 22px 0 8px; }
.wrap p { color: var(--text-2); margin-bottom: 15px; }
.wrap ul, .wrap ol { margin: 0 0 15px; padding-left: 22px; color: var(--text-2); }
.wrap li { margin-bottom: 7px; line-height: 1.6; }
.wrap a { color: var(--blue); }
.wrap strong { color: var(--navy); font-weight: 600; }
.wrap .lead { font-size: 18px; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }
.wrap .callout {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-left: 4px solid var(--blue);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 20px 0;
}
.wrap .callout p { font-size: 14px; margin: 0; color: var(--text-2); }
.wrap .disclosure {
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 20px 0;
}
.wrap .disclosure p { font-size: 14px; margin: 0; color: var(--text-2); }
.wrap .contact-box {
  background: #fcfcfd;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
  margin: 22px 0;
}
.wrap .contact-box a { font-weight: 600; }

/* ===== FOOTERS ===== */
/* dark footer (homepage + listing) */
.site-footer { background: var(--navy); padding: 40px 0 0; }
.page-list .site-footer { margin-top: 12px; }
.sf-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) { .sf-inner { grid-template-columns: 1fr; gap: 26px; } }
.sf-brand-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sf-brand-logo .dot { color: #60a5fa; }
.sf-brand-text { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.6; max-width: 320px; }
.sf-col-head {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 13px;
}
.sf-links { display: flex; flex-direction: column; gap: 8px; }
.sf-links a { font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; }
.sf-links a:hover { color: #fff; }
.sf-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
