/* -----------------------------------------------------------------------
   spotthelie.tv — public site
   Palette + type unified with the on-screen video overlay and the local
   admin UI (SpotTheLie/web/styles.css). Cyan glow (#00D4FF halo) on
   headings mirrors the video's title treatment.
   ----------------------------------------------------------------------- */

:root {
  --cyan: #00D4FF;
  --cyan-dim: #0099bb;
  --cyan-glow: 0 0 14px rgba(0, 212, 255, 0.45);
  --cyan-glow-strong: 0 0 24px rgba(0, 212, 255, 0.55), 0 0 4px rgba(0, 212, 255, 0.8);

  --bg: #0f1419;
  --panel: #161d26;
  --panel-2: #1d2631;
  --border: #263140;
  --text: #e6ecf3;
  --text-dim: #95a3b5;
  --text-faint: #5a6a80;

  --red: #ff4757;
  --green: #2ed573;
  --amber: #ffa502;

  --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  --radius: 10px;
  --radius-lg: 14px;

  --maxw: 820px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img, iframe { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; }

/* -----------------------------------------------------------------------
   Glow: the video/admin brand signature. Montserrat ExtraBold + cyan
   halo mirrors the challenge-title treatment on-screen in the Shorts.
   ----------------------------------------------------------------------- */

.glow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: var(--cyan-glow-strong);
  letter-spacing: 0.5px;
}

/* -----------------------------------------------------------------------
   Topbar (brand + language switcher)
   ----------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand .logo { font-size: 22px; }
.brand .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--cyan);
  letter-spacing: 0.5px;
  text-shadow: var(--cyan-glow);
}
.brand:hover { text-decoration: none; }
.brand:hover .name { text-shadow: var(--cyan-glow-strong); }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
}
.lang-switch a {
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
}
.lang-switch a:hover {
  color: var(--text);
  background: var(--panel-2);
}
.lang-switch a.active {
  color: var(--cyan);
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 3px 7px;
}

/* -----------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------- */

.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.section-heading.glow {
  color: var(--cyan);
  text-shadow: var(--cyan-glow);
}

/* -----------------------------------------------------------------------
   Hero (landing)
   ----------------------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 56px 0 40px;
}
.hero-title {
  font-size: clamp(42px, 8vw, 72px);
  margin-bottom: 12px;
}
.hero-tagline {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
}

/* -----------------------------------------------------------------------
   Card grid (landing: latest challenges)
   ----------------------------------------------------------------------- */

.challenge-grid { margin-top: 40px; }
.grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.1s;
  box-shadow: var(--shadow);
}
.card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-2px);
}
.card a {
  display: block;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}
.card-category {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}
.card-meta {
  font-size: 12px;
  color: var(--text-faint);
}

/* -----------------------------------------------------------------------
   Empty state (landing when no published challenges yet)
   ----------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}
.empty-title {
  font-size: 96px;
  margin-bottom: 20px;
}
.empty-state .button { margin-top: 18px; }

/* -----------------------------------------------------------------------
   Challenge page
   ----------------------------------------------------------------------- */

.challenge-head {
  margin-bottom: 24px;
}
.breadcrumb {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb a { color: var(--text-dim); }

.challenge-title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin-bottom: 8px;
}
.challenge-topic {
  color: var(--text-dim);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

/* Shorts-aspect embed */
.video-wrap {
  margin: 24px auto;
  max-width: 320px;
  aspect-ratio: 9/16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow), 0 0 40px rgba(0, 212, 255, 0.1);
}
.video-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
}

/* Statement list */
.statements { margin-top: 36px; }
.statement-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.statement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.statement-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--cyan-glow);
}
.statement.lie .statement-num {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 71, 87, 0.45);
}
.statement-body p { margin: 0 0 8px; }
.verdict { margin: 8px 0 0 !important; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.badge.lie { background: rgba(255, 71, 87, 0.15); color: var(--red); border: 1px solid rgba(255, 71, 87, 0.4); }
.badge.truth { background: rgba(46, 213, 115, 0.12); color: var(--green); border: 1px solid rgba(46, 213, 115, 0.35); }

/* Reveal */
.reveal {
  margin-top: 36px;
  padding: 24px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.reveal-body { margin: 0; font-size: 17px; line-height: 1.6; }

/* Sources */
.sources { margin-top: 36px; }
.source-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.source-list li {
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.source-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--cyan);
}
.source-num { color: var(--text-faint); font-family: ui-monospace, monospace; }
.source-pub { font-weight: 600; }
.source-claim {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

/* Also-on / CTA */
.also-on { margin-top: 36px; text-align: center; }

.button {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.15s;
}
.button:hover {
  background: var(--cyan);
  color: #000;
  text-decoration: none;
  box-shadow: var(--cyan-glow);
}

/* -----------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}
.footer a { color: var(--text-dim); }
.footer .fine { margin-top: 8px; font-size: 12px; }

/* -----------------------------------------------------------------------
   Mobile
   ----------------------------------------------------------------------- */

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .lang-switch { justify-content: flex-start; }
  .content { padding: 24px 16px 60px; }
  .empty-title { font-size: 72px; }
}
