/* VoteLiberal.ca — Global Stylesheet */
/* Palette: #0a0f1e (bg), #ffffff (text), #cc0000 (red), #FFD700 (gold) */

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

:root {
  --bg:       #0a0f1e;
  --bg2:      #111827;
  --bg3:      #1a2236;
  --border:   #1e2d45;
  --text:     #e8eaf0;
  --muted:    #9ba3b5;
  --red:      #cc0000;
  --red2:     #e60000;
  --gold:     #FFD700;
  --gold2:    #ffc107;
  --white:    #ffffff;
  --radius:   6px;
  --shadow:   0 4px 20px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ── TICKER ─────────────────────────────────────────────────── */
.stats-ticker {
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.4rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── NAVIGATION ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.97);
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 0.1rem;
  list-style: none;
  flex-wrap: nowrap;
  margin: 0 0.5rem;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #050812 0%, #0d1830 40%, #1a0a0a 100%);
  border-bottom: 3px solid var(--red);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(204,0,0,0.03) 40px,
    rgba(204,0,0,0.03) 41px
  );
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero h1 strong { color: var(--gold); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-sub strong { color: var(--gold); }

.hero-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none !important;
  margin: 0.5rem;
}
.hero-cta:hover { background: var(--red2); transform: translateY(-2px); }
.hero-cta.secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold) !important;
}
.hero-cta.secondary:hover { background: var(--gold); color: var(--bg) !important; }

/* ── STATS DASHBOARD ────────────────────────────────────────── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--red);
}
.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ── PAGE LAYOUT ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #080c1a 0%, #0e1928 50%, #160609 100%);
  border-bottom: 3px solid var(--red);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero h1 em { color: var(--red); font-style: normal; }
.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

main { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }

/* ── SECTIONS ───────────────────────────────────────────────── */
.section { margin-bottom: 3.5rem; }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  border-left: 4px solid var(--red);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.section-title.gold { border-color: var(--gold); }

.section-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin: 1.5rem 0 0.75rem;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-top: 3px solid var(--red);
}
.card.gold-top { border-top-color: var(--gold); }
.card.blue-top { border-top-color: #3b82f6; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.card p, .card li { color: var(--text); font-size: 0.97rem; }
.card ul { padding-left: 1.25rem; }
.card li { margin-bottom: 0.4rem; }

/* Card grid for nav cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.nav-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
  color: var(--text) !important;
  text-decoration: none !important;
}
.nav-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none !important;
}
.nav-card-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.nav-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.nav-card p { font-size: 0.88rem; color: var(--muted); }

/* ── QUOTE BLOCKS ───────────────────────────────────────────── */
blockquote {
  background: var(--bg3);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}
blockquote cite {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

/* ── TABLES ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
thead tr { background: var(--red); }
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:nth-child(odd) { background: var(--bg3); }
tbody tr:nth-child(even) { background: var(--bg2); }
tbody td {
  padding: 0.65rem 1rem;
  color: var(--text);
  vertical-align: top;
}
tbody td strong { color: var(--gold); }

/* ── CALLOUT / ALERT BOXES ──────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout.red {
  background: rgba(204, 0, 0, 0.12);
  border: 1px solid rgba(204, 0, 0, 0.4);
}
.callout.gold {
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.callout.blue {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.callout-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout.red .callout-title { color: var(--red2); }
.callout.gold .callout-title { color: var(--gold); }
.callout.blue .callout-title { color: #60a5fa; }

/* ── FACT BOXES ─────────────────────────────────────────────── */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.fact-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.fact-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  display: block;
  margin-bottom: 0.25rem;
}
.fact-num.gold { color: var(--gold); }
.fact-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.fact-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

/* ── TIMELINE ───────────────────────────────────────────────── */
.timeline { padding-left: 0.5rem; }
.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  min-width: 110px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  padding-top: 0.1rem;
}
.timeline-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.timeline-content p { font-size: 0.93rem; color: var(--text); }

/* ── TWO-COL ────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* ── PROMISE LIST ───────────────────────────────────────────── */
.promise-list { list-style: none; padding: 0; }
.promise-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.promise-x {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}
.promise-text { font-size: 0.95rem; }
.promise-text strong { color: var(--white); }
.promise-text span { color: var(--muted); font-size: 0.88rem; }

/* ── RESOURCE CARD ──────────────────────────────────────────── */
.resource-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.resource-card h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: 0.5rem; }
.resource-card .org-meta { font-size: 0.83rem; color: var(--muted); margin-bottom: 0.5rem; }
.resource-card p { font-size: 0.95rem; }

/* ── BLOG ───────────────────────────────────────────────────── */
.blog-post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--red);
  transition: border-color 0.2s, transform 0.2s;
}
.blog-post-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.blog-post-date {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.blog-post-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.blog-post-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--red2); }

/* ── SHARE BUTTONS ──────────────────────────────────────────── */
.share-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.twitter { background: #1da1f2; color: #fff !important; }
.share-btn.facebook { background: #1877f2; color: #fff !important; }
.share-btn.copy { background: var(--bg3); border: 1px solid var(--border); color: var(--text) !important; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 2px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo { font-weight: 900; font-size: 1.1rem; color: var(--white); }
.footer-logo span { color: var(--red); }
.footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; color: var(--muted); }
.footer-nav a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ── NEWSLETTER ──────────────────────────────────────────────── */
.newsletter-section {
  background: #0d1f3c;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 40px 0;
  margin: 40px 0 0 0;
}
.newsletter-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter-text h3 {
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0 0 8px 0;
}
.newsletter-text p { color: #ccc; margin: 0; font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  background: #1a2a4a;
  border: 1px solid var(--gold);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  min-width: 260px;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: #fff; }
.newsletter-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--red2); }

/* ── LANGUAGE SWITCHER ───────────────────────────────────────── */
.lang-switcher { position: relative; margin-left: 0.5rem; flex-shrink: 0; }
#lang-btn {
  background: #1a2a4a;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}
#lang-btn:hover { background: var(--gold); color: var(--bg); }
#lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #1a2a4a;
  border: 1px solid var(--gold);
  border-radius: 4px;
  min-width: 160px;
  z-index: 1000;
}
#lang-dropdown.open { display: block; }
.lang-option {
  display: block;
  padding: 8px 16px;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}
.lang-option:hover { background: var(--gold); color: var(--bg); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; padding: 0.75rem 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-inner { height: 54px; }
  nav { position: relative; }
  .nav-links {
    position: absolute; top: 54px; left: 0; right: 0;
    background: rgba(10,15,30,0.99);
    border-bottom: 2px solid var(--red);
    padding: 0.5rem 1.5rem 1rem; z-index: 999;
  }
  .nav-links a { font-size: 0.9rem; padding: 0.55rem 0.75rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: 100%; }
  .newsletter-form { width: 100%; }
  .newsletter-form button { width: 100%; }
}

@media (max-width: 480px) {
  main { padding: 2rem 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}

/* ── UTILITY ────────────────────────────────────────────────── */
.text-red { color: var(--red2); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.bold { font-weight: 700; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.75rem; }
.lead { font-size: 1.1rem; line-height: 1.7; color: var(--text); margin-bottom: 1.5rem; }

/* === TODAY'S FEATURES === */
.daily-features {
  background: #0d1f3c;
  border-top: 3px solid #cc0000;
  border-bottom: 1px solid #FFD700;
  padding: 30px 0;
  margin: 30px 0;
}
.features-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.features-label {
  color: #FFD700;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.features-date {
  color: #888;
  font-size: 0.85rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #1a2a4a;
  border: 1px solid rgba(255,215,0,0.2);
  border-left: 3px solid #cc0000;
  padding: 20px;
  border-radius: 4px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-left-color: #FFD700; }
.feature-category {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.feature-title {
  color: #fff;
  font-size: 1rem;
  margin: 8px 0;
  line-height: 1.4;
}
.feature-excerpt {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 8px 0 12px;
}
.feature-link {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
}
.feature-link:hover { color: #fff; }
