/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-dark: #0f0f0f;
  --accent-red: #d32f2f;
  --text-light: #ffffff;
  --text-gray: #e0e0e0;
  --bg-section: #1a1a1a;
  --bg-card: #242424;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--primary-dark);
}
img { display: block; max-width: 100%; height: auto; }

/* Navigation */
nav {
  position: fixed; top: 0; width: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.2rem; font-weight: 700; color: var(--text-light); text-decoration: none; letter-spacing: 2px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-gray); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-red); }

/* Donate Button in Nav */
.nav-links .donate-link {
  background: var(--accent-red);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.nav-links .donate-link:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #0f0f0f 0%, #1a0a0a 100%);
  padding: 6rem 2rem 2rem;
}
.hero-content { max-width: 1000px; text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #d32f2f);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.subtitle { font-size: 1.5rem; color: var(--accent-red); margin-bottom: 2rem; font-weight: 600; }
.credits { color: var(--text-gray); margin-bottom: 3rem; line-height: 1.8; }

/* Signup */
.signup-box {
  background: var(--bg-card);
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: 12px;
  padding: 2.5rem; margin-top: 3rem;
}
.signup-box h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-light); }

.signup-form {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-top: 2rem; max-width: 500px; margin-left: auto; margin-right: auto;
}
.signup-form input[type="email"] {
  flex: 1 1 auto; min-width: 220px;
  padding: 1rem; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  color: var(--text-light); font-size: 1rem;
}
.signup-form button {
  padding: 1rem 2rem; min-width: 160px; white-space: nowrap;
  background: var(--accent-red); border: none; border-radius: 8px; color: #fff;
  font-weight: 600; cursor: pointer; transition: transform 0.2s, background 0.3s;
}
.signup-form button:hover { transform: translateY(-2px); background: #b71c1c; }

.signup-message {
  flex-basis: 100%;
  margin-top: 1rem; font-size: 0.95rem; font-weight: 500;
}

/* Mission */
.mission-section { padding: 5rem 2rem; background: var(--bg-section); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { font-size: 2.5rem; text-align: center; margin-bottom: 4rem; color: var(--text-light); }
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px,1fr)); gap: 3rem; }
.mission-card {
  background: var(--bg-card); padding: 2rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.mission-card h3 { color: var(--accent-red); margin-bottom: 1rem; font-size: 1.5rem; }
.mission-card p { color: var(--text-gray); line-height: 1.8; }

/* Why This Matters */
.matters-section { padding: 5rem 2rem; background: var(--primary-dark); }
.matters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; margin-top: 3rem; }
.matter-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(211,47,47,0.1), rgba(211,47,47,0.05));
  border-radius: 12px; border: 1px solid rgba(211,47,47,0.2);
}
.matter-number {
  display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center;
  background: var(--accent-red); border-radius: 50%; margin-bottom: 1rem; font-weight: bold;
}
.matter-card h3 { color: var(--text-light); }

/* Videos */
.videos-section { padding: 5rem 2rem; background: var(--bg-section); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; margin-top: 3rem; }
.video-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; transition: transform 0.3s; }
.video-card:hover { transform: translateY(-5px); }

/* keep placeholder for now */
.video-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex; align-items: center; justify-content: center; color: var(--text-gray);
}
.video-info { padding: 1.5rem; }
.video-info h3 { color: var(--text-light); margin-bottom: 0.5rem; }
.video-info p { color: var(--text-gray); font-size: 0.9rem; }
.video-thumb {
  width: 100%; height: 200px; object-fit: cover; background: #1a1a1a; border: 0;
}

/* Remove red/blue underline from links in video cards */
.video-card a {
  color: var(--text-light);
  text-decoration: none; /* removes the underline */
}

.video-card a:hover {
  color: var(--accent-red);
  text-decoration: underline; /* optional hover underline if you like */
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;   /* modern, crisp */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.gallery-section { padding: 5rem 2rem; background: var(--primary-dark); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1rem; margin-top: 3rem; }
.gallery-item {
  position: relative; padding-bottom: 75%; background: var(--bg-card);
  border-radius: 8px; overflow: hidden;
}

/* keep placeholder for now */
.gallery-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-gray);
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.gallery-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* Contact */
.contact-section { padding: 5rem 2rem; background: var(--bg-section); text-align: center; }
.contact-info { max-width: 600px; margin: 0 auto; color: var(--text-gray); }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; }
.social-links a { color: var(--text-gray); text-decoration: none; transition: color 0.3s; }
.social-links a:hover { color: var(--accent-red); }

/* Footer */
footer {
  padding: 2rem; text-align: center; color: var(--text-gray);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .subtitle { font-size: 1.2rem; }
  .signup-form { flex-direction: column; }
  .mission-grid { grid-template-columns: 1fr; }
}

/* WP Admin Bar offset for logged-in users */
body.admin-bar nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav { top: 46px; } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Donor Section */
.donor-section {
  background: var(--primary-dark);
  padding: 3rem 2rem;
  text-align: center;
}

.donor-header {
  font-size: 2rem;           /* smaller than .section-header (2.5rem) */
  margin-bottom: 2rem;
  color: var(--text-light);  /* white */
  font-weight: 700;
}

.donor-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* Media Section */
.media-section {
  padding: 5rem 2rem;
  background: var(--bg-section);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.media-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.media-card:hover {
  transform: translateY(-5px);
}

.media-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Media page sections use the same dark scheme as the homepage */
.links-section {
  padding: 5rem 2rem;
  background: var(--bg-section);           /* dark gray like your alt sections */
}
.links-section.alt {
  background: var(--primary-dark);         /* full black to alternate */
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.link-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
}

.link-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  background: #1a1a1a; /* placeholder fallback */
}

/* 🔹 Shared styling for all card titles (links + videos) */
.link-card a,
.video-info h3 {
  display: block;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}

/* 🔹 Hover accent for interactivity */
.link-card a:hover,
.video-info h3:hover {
  color: var(--accent-red);
}

/* === Single Video Post (optimized) === */

/* Header/title + meta */
.htsnw-video-article .section-header {            /* make title not pure white */
  color: var(--text-gray);
  letter-spacing: .2px;
}
.htsnw-video-article .video-meta {
  color: var(--text-gray);
  margin-top: .5rem;
  text-align: center;
}

/* Share icons (smaller + subtle divider) */
.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 1rem 0 2rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(211,47,47,0.25);     /* thin red line */
}
.share-label {
  font-weight: 600;
  color: var(--text-gray);
}
.share-row .share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  text-decoration: none;
  transition: transform .3s, background .3s, color .3s;
}
.share-row .share:hover {
  background: var(--accent-red);
  color: #fff;
  transform: translateY(-2px);
}
.share-row svg { width: 16px; height: 16px; }

/* Player & section separators */
.video-player .video-embed,
.video-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-player.container {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(211,47,47,0.35);  /* thin red line */
}
.video-description {
  padding: 1.5rem 0;
  color: var(--text-gray);
  max-width: 900px;
  margin: 0 auto;
}
.video-description.container {
  border-bottom: 1px solid rgba(211,47,47,0.35);  /* thin red line */
}
.video-bottom.container { padding-top: 1.25rem; }

/* Bottom menu + panels */
.video-actions {
  display: flex;
  justify-content: center;                         /* centered buttons */
  gap: 1rem;
  margin-bottom: 1rem;
}
.video-actions .btn {
  background: var(--accent-red);
  border: 0;
  color: #fff;
  padding: .55rem .9rem;                           /* slimmer buttons */
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s, background .3s;
}
.video-actions .btn:hover { background: #b71c1c; transform: translateY(-1px); }

.video-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
.video-panel h2 {
  color: #e6e6e6;                                  /* brighter heading */
  font-size: 1.15rem;
  letter-spacing: .2px;
  margin: 0 0 .75rem;
}
.video-panel .panel-body {
  max-height: 70vh;                                /* more space */
  overflow: auto;
  line-height: 1.85;                                /* easier reading */
  font-size: 1.05rem;
  color: #dddddd;
}
.video-panel .panel-body p { margin: 0 0 1rem; }
.video-panel .panel-body p + p { margin-top: .6rem; }
.video-panel .panel-body ul,
.video-panel .panel-body ol { margin: .75rem 0 .75rem 1.25rem; }

.featured-list { padding-left: 1.2rem; }

/* Small screens */
@media (max-width: 768px) {
  .share-row { gap: .5rem; }
  .share-row .share { width: 28px; height: 28px; }
  .share-row svg { width: 16px; height: 16px; }
}

/* Keep Kadence header sane on single posts */
body.single nav {
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
}

/* If Kadence shows a white header, make it dark to match site theme (optional) */
body.single .site-header,
body.single .site-header .header-inner {
  background: var(--primary-dark) !important;
}

/* Remove any stray fixed nav artifacts that might clip on the right */
body.single nav * { transform: none !important; }

/* ============================
   DONATE PAGE
   ============================ */

.donate-hero {
  min-height: 100vh;
  padding: 7rem 2rem 4rem; /* room for fixed nav */
  background: linear-gradient(180deg, #0f0f0f 0%, #1a0a0a 100%);
}

.donate-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 2.5rem;
}

/* Sidebar */
.donate-sidebar {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.donate-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
}

.donate-title span {
  display: block;
  color: var(--accent-red);
  font-weight: 800;
}

.donate-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.donate-tab {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.donate-tab:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.donate-tab.is-active {
  border-color: var(--accent-red);
  color: var(--text-light);
  background: linear-gradient(135deg, rgba(211,47,47,0.25), rgba(15,15,15,0.9));
}

/* Main content */
.donate-main {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.donate-main h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.donate-main p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

/* Panels */
.donate-panel {
  display: none;
}

.donate-panel.is-active {
  display: block;
}

.donate-address {
  margin: 1rem 0 2rem;
  line-height: 1.7;
  font-weight: 500;
}

/* Amount grid */
.donate-amount-grid {
  margin: 2rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.donate-amount-btn {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.85rem 0.75rem;
  background: rgba(255,255,255,0.02);
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.donate-amount-btn:hover {
  border-color: rgba(211,47,47,0.7);
  transform: translateY(-1px);
}

.donate-amount-btn.is-selected {
  background: linear-gradient(135deg, rgba(211,47,47,0.5), rgba(15,15,15,0.95));
  border-color: var(--accent-red);
}

/* Options + buttons */
.donate-options {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.donate-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.donate-option input[type="checkbox"] {
  accent-color: var(--accent-red);
}

.donate-primary-btn,
.donate-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.donate-primary-btn {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 10px 25px rgba(211,47,47,0.5);
}

.donate-primary-btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.donate-secondary-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--text-light);
}

.donate-secondary-btn:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.donate-cta-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .donate-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .donate-sidebar {
    order: -1;
  }
}

@media (max-width: 600px) {
  .donate-main {
    padding: 1.75rem 1.5rem;
  }

  .donate-hero {
    padding: 6rem 1.25rem 3rem;
  }
}

/* Wrapper for Stripe / WP Simple Pay form inside card tab */
.donate-card-form {
  margin-top: 1.5rem;
}

/* Keep the form reasonably narrow on large screens */
.donate-card-form > * {
  max-width: 520px;
}

/* Remove weird extra margins if the plugin adds them */
.donate-card-form form {
  margin: 0;
}

/* ============================
   WP Simple Pay – Donate card styling
   ============================ */

/* Base text (labels, legends, headings) on dark card */
.donate-main .simpay-form,
.donate-main .simpay-checkout-form {
  color: var(--text-light);
}

.donate-main .simpay-form h2,
.donate-main .simpay-form h3,
.donate-main .simpay-form label,
.donate-main .simpay-form legend,
.donate-main .simpay-form .simpay-amounts-header,
.donate-main .simpay-checkout-form h2,
.donate-main .simpay-checkout-form h3,
.donate-main .simpay-checkout-form label,
.donate-main .simpay-checkout-form legend,
.donate-main .simpay-checkout-form .simpay-amounts-header {
  color: var(--text-light);
}

/* Helper / description text */
.donate-main .simpay-form .simpay-description,
.donate-main .simpay-checkout-form .simpay-description {
  color: var(--text-gray);
}

/* Checkbox label */
.donate-main .simpay-form input[type="checkbox"] + label,
.donate-main .simpay-checkout-form input[type="checkbox"] + label {
  color: var(--text-light);
}

/* Inputs: black text on white background */
.donate-main .simpay-form input,
.donate-main .simpay-checkout-form input,
.donate-main input.simpay-input {
  color: #000;
  background-color: #fff;
}

/* Placeholder text inside input */
.donate-main .simpay-form input::placeholder,
.donate-main .simpay-checkout-form input::placeholder,
.donate-main input.simpay-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

/* Currency symbol in custom amount (force black) */
.donate-main .simpay-form .simpay-amount-prefix,
.donate-main .simpay-form .simpay-currency,
.donate-main .simpay-checkout-form .simpay-amount-prefix,
.donate-main .simpay-checkout-form .simpay-currency {
  color: #000 !important;
}

/* Amount buttons: white buttons, black text (including inner spans) */
.donate-main .simpay-form .simpay-amounts button,
.donate-main .simpay-form .simpay-amounts button span,
.donate-main .simpay-checkout-form .simpay-amounts button,
.donate-main .simpay-checkout-form .simpay-amounts button span {
  color: #000 !important;
  font-weight: 600;
}