/*
Theme Name: The Scam Files
Theme URI: https://scamfiles.org
Author: The Scam Files
Description: Case-file theme for The Scam Files: large, high-contrast type for older readers, YouTube episode pages and a built-in signup box (MailPoet).
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: scamfiles
*/

:root {
  --navy: #0f1e33;
  --navy-2: #16294a;
  --red: #d7263d;
  --red-dark: #b01c30;
  --off: #f5f1e8;
  --paper: #fbf8f1;
  --amber: #f4a825;
  --ink: #1b2536;
  --grey: #5b6474;
  --line: #e2dccd;
  --green: #0b6e4f;
  --radius: 14px;
  --wrap: 1120px;
  --read: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 20px/1.7 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, .display { font-family: "Archivo Black", Impact, "Arial Black", sans-serif; font-weight: 400; line-height: 1.12; letter-spacing: 0.2px; color: var(--navy); }
h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 48px 0 16px; }
h3 { font-size: 24px; margin: 32px 0 10px; }
p { margin: 0 0 20px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--amber); color: var(--navy); padding: 10px 16px; z-index: 99; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--off); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 18px rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--off); text-decoration: none; font-weight: 700; font-size: 18px; padding: 10px 14px; border-radius: 10px; }
.nav a:hover, .nav .current-menu-item > a { background: var(--navy-2); color: #fff; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff !important; text-decoration: none; font-weight: 800; font-size: 19px; padding: 14px 24px; border-radius: 12px; border: 0; cursor: pointer; box-shadow: 0 6px 18px rgba(215,38,61,.28); }
.btn:hover { background: var(--red-dark); }
.btn.alt { background: var(--amber); color: var(--navy) !important; box-shadow: 0 6px 18px rgba(244,168,37,.28); }
.btn.ghost { background: transparent; border: 2px solid var(--off); box-shadow: none; }
.btn.small { font-size: 16px; padding: 10px 16px; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(ellipse at 70% 30%, #1d355b 0%, var(--navy) 60%); color: var(--off); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p.lead { font-size: 22px; color: #dfe6f1; max-width: 560px; }
.hero .kicker { display: inline-block; font-weight: 800; letter-spacing: 3px; font-size: 14px; color: var(--amber); border: 2px solid var(--amber); padding: 4px 10px; border-radius: 6px; margin-bottom: 18px; transform: rotate(-2deg); }
.hero .host { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.hero .host img { width: 100%; }
.hero .host .tag { position: absolute; left: 14px; bottom: 14px; background: rgba(15,30,51,.85); color: var(--off); font-size: 14px; padding: 6px 12px; border-radius: 8px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- sections ---------- */
section.band { padding: 64px 0; }
section.band.dark { background: var(--navy); color: var(--off); }
section.band.dark h2, section.band.dark h3 { color: #fff; }
section.band.cream { background: var(--off); }
.center { text-align: center; }
.sub { color: var(--grey); font-size: 20px; max-width: 720px; margin: 0 auto 30px; }
.dark .sub { color: #c9d3e3; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(15,30,51,.06); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,30,51,.12); }
.card a { text-decoration: none; color: inherit; }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card .num { font-family: "Archivo Black", Impact, sans-serif; color: var(--red); font-size: 15px; letter-spacing: 2px; }
.card h3 { font-size: 21px; margin: 6px 0 8px; color: var(--navy); }
.card p { font-size: 17px; color: var(--grey); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--navy-2); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font-family: "Archivo Black", Impact, sans-serif; font-size: 22px; margin-bottom: 12px; }
.step h3 { margin: 4px 0 8px; font-size: 22px; }
.step p { margin: 0; color: #c9d3e3; font-size: 18px; }

/* ---------- signup box ---------- */
.signup { background: var(--navy); color: var(--off); border-radius: 20px; padding: 34px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; box-shadow: 0 18px 50px rgba(15,30,51,.25); margin: 40px 0; }
.signup img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: rotate(-3deg); }
.signup h2, .signup h3 { color: #fff; margin: 0 0 8px; }
.signup p { color: #c9d3e3; font-size: 18px; margin-bottom: 14px; }
.signup ul { margin: 0 0 16px; padding-left: 22px; color: #dfe6f1; font-size: 18px; }
.signup .fine { font-size: 14px; color: #93a1b8; margin: 10px 0 0; }
.signup .mailpoet_form { padding: 0 !important; }
.signup input[type=email], .signup input[type=text] { width: 100%; font-size: 19px !important; padding: 14px 16px !important; border-radius: 10px !important; border: 2px solid #33476b !important; background: #fff !important; color: var(--ink) !important; }
.signup input[type=submit], .signup .mailpoet_submit { background: var(--red) !important; color: #fff !important; font-weight: 800 !important; font-size: 19px !important; border: 0 !important; border-radius: 10px !important; padding: 14px 22px !important; cursor: pointer; width: 100%; }
.signup .mailpoet_message p { color: var(--amber) !important; font-weight: 700; }
/* MailPoet centres the success text over the form (position:absolute) - put it back in the flow */
.signup .mailpoet_form.mailpoet_form_successfully_send .mailpoet_validate_success,
.signup .mailpoet_validate_success { position: static !important; transform: none !important; left: auto !important; top: auto !important; text-align: left !important; }
.signup .mailpoet_form_successfully_send .mailpoet_paragraph { display: none !important; }
.signup .mailpoet_message { padding: 0 !important; margin: 0 !important; }
.signup .mailpoet_validate_success { background: rgba(244,168,37,.14); border: 2px solid var(--amber); border-radius: 12px; padding: 16px 18px !important; margin: 4px 0 0 !important; font-size: 19px !important; line-height: 1.5 !important; color: #fff !important; font-weight: 700; }
.signup .mailpoet_validate_error { color: #ffb4bd !important; font-size: 17px; }

/* ---------- article (episode) ---------- */
.entry-head { background: var(--navy); color: var(--off); padding: 44px 0 36px; }
.entry-head h1 { color: #fff; }
.entry-head .meta { color: var(--amber); font-weight: 800; letter-spacing: 2px; font-size: 15px; text-transform: uppercase; }
.entry-head .dek { color: #c9d3e3; font-size: 21px; margin: 0; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.3); margin: -10px 0 30px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry { padding: 36px 0 20px; }
.entry blockquote { margin: 26px 0; padding: 18px 22px; background: #fff; border-left: 6px solid var(--red); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink); }
.entry blockquote p { margin: 0 0 8px; }
.entry blockquote cite { display: block; font-style: normal; font-weight: 800; color: var(--red-dark); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.entry .plan { background: #eef7f2; border: 2px solid #b9dcc9; border-radius: 16px; padding: 22px 26px; margin: 30px 0; }
.entry .plan h2 { margin-top: 0; color: var(--green); }
.entry .sources { font-size: 16px; color: var(--grey); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; }
.entry .sources a { word-break: break-word; }
.label { display: inline-block; background: var(--navy); color: var(--off); font-size: 13px; font-weight: 800; letter-spacing: 2px; padding: 4px 10px; border-radius: 6px; }
.notice { font-size: 16px; color: var(--grey); background: var(--off); border-radius: 10px; padding: 14px 18px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 60px; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: #0a1526; color: #aab6c9; padding: 48px 0 30px; font-size: 17px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-family: "Archivo Black", Impact, sans-serif; font-weight: 400; font-size: 18px; margin: 0 0 12px; letter-spacing: 1px; }
.site-footer a { color: #dfe6f1; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .legal { border-top: 1px solid #1f2d45; margin-top: 30px; padding-top: 18px; font-size: 14px; color: #7f8ba0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 19px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 34px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; text-align: left; }
  .signup img { max-width: 200px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; background: transparent; border: 2px solid var(--off); color: var(--off); font-size: 17px; font-weight: 800; padding: 8px 14px; border-radius: 10px; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--navy); padding: 12px 22px 20px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
