
/* ====================================================================
   GameChangers OS — Theme System
   Light mode + Global Accessibility Fixes
   Assemble Teams Inc.
   ==================================================================== */

/* ── ACCESSIBILITY FIXES (apply to all themes) ──────────────────────── */

/* Fix 1: vb-stat-l was 11px — too small for secondary stat descriptions */
.vb-stat-l {
  font-size: 13px !important;
  color: #c9d1d9 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

/* Fix 2: brand-sub was #484f58 at 11px — 2.4:1 contrast ratio FAIL */
.brand-sub {
  font-size: 12px !important;
  color: #8b949e !important;
}

/* Fix 3: mc-desc at 12px — readable but boost color */
.mc-desc {
  font-size: 13px !important;
  color: #adb5bd !important;
}

/* Fix 4: gni-sub inherit at 12px */
.gni-sub {
  font-size: 13px !important;
  color: #8b949e !important;
}

/* Fix 5: earth-label — small text on globe */
.earth-label {
  font-size: 12px !important;
  color: #c9d1d9 !important;
}

/* Fix 6: mc-meta-label at tiny sizes */
.mc-meta-label {
  font-size: 11px !important;
  color: #8b949e !important;
  letter-spacing: 0.05em !important;
}

/* Fix 7: cd-label (countdown label) */
.cd-label {
  font-size: 11px !important;
  color: #adb5bd !important;
  letter-spacing: 0.08em !important;
}

/* Fix 8: All section subtitles — ensure minimum readable size */
.sec-sub, .hero-sub, .cta-sub {
  color: #adb5bd !important;
}

/* ── LIGHT MODE CSS VARIABLES ────────────────────────────────────────── */
:root {
  --theme-transition: background-color 0.3s ease, color 0.3s ease,
                      border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light mode — inspired by DesignArena warm cream palette */
[data-theme="light"] {
  --bg:   #F2EDE4;   /* warm cream background */
  --sf:   #FFFFFF;   /* pure white surface/cards */
  --sf2:  #F9F6F0;   /* slightly warm card bg */
  --t1:   #1C2526;   /* deep charcoal primary text */
  --t2:   #4A5568;   /* slate secondary text */
  --t3:   #718096;   /* medium tertiary text */
  --bd:   #E2D9CC;   /* warm border */
  --bd2:  #CFC6B8;   /* stronger border */
  --ac:   #2D56D9;   /* slightly deeper accent for contrast */
  --gn:   #2D7D46;   /* darker green for contrast */
  --am:   #B7790F;   /* darker amber */
  --rd:   #C53030;   /* darker red */
}

[data-theme="light"] body {
  background-color: var(--bg);
  color: var(--t1);
  transition: var(--theme-transition);
}

/* Nav */
[data-theme="light"] .gn-nav {
  background: rgba(242, 237, 228, 0.95) !important;
  border-bottom-color: var(--bd) !important;
}
[data-theme="light"] .gn-logo-text,
[data-theme="light"] .gn-link,
[data-theme="light"] .gn-caret {
  color: var(--t1) !important;
}
[data-theme="light"] .gn-link:hover { color: var(--ac) !important; }
[data-theme="light"] .gn-btn-outline {
  border-color: var(--bd2) !important;
  color: var(--t1) !important;
}
[data-theme="light"] .gn-btn-outline:hover {
  background: var(--sf) !important;
}
[data-theme="light"] .gn-overlay,
[data-theme="light"] .gn-panel {
  background: #F9F6F0 !important;
  border-color: var(--bd) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .gn-section-title { color: var(--t3) !important; }
[data-theme="light"] .gn-item h4 { color: var(--t1) !important; }
[data-theme="light"] .gn-item p  { color: var(--t2) !important; }
[data-theme="light"] .gn-item:hover { background: var(--sf2) !important; }

/* Page backgrounds */
[data-theme="light"] section,
[data-theme="light"] .stats-band,
[data-theme="light"] .proof-grid,
[data-theme="light"] .feat-tabs-wrap,
[data-theme="light"] .cta-section,
[data-theme="light"] .cd-band {
  background-color: var(--bg) !important;
}

/* Cards */
[data-theme="light"] .mc-card,
[data-theme="light"] .proof-card,
[data-theme="light"] .scard,
[data-theme="light"] .feat-tab-panel,
[data-theme="light"] .feat-tab-btn,
[data-theme="light"] .cta-card {
  background: var(--sf) !important;
  border-color: var(--bd) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .mc-card:hover,
[data-theme="light"] .proof-card:hover,
[data-theme="light"] .scard:hover {
  border-color: var(--ac) !important;
  box-shadow: 0 4px 20px rgba(45,86,217,0.12) !important;
}

/* Typography in light mode */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 { color: var(--t1) !important; }

[data-theme="light"] p,
[data-theme="light"] li { color: var(--t2) !important; }

[data-theme="light"] .vb-stat-n,
[data-theme="light"] .stat-val,
[data-theme="light"] .hero-num { color: var(--ac) !important; }

[data-theme="light"] .vb-stat-l,
[data-theme="light"] .sec-sub,
[data-theme="light"] .hero-sub,
[data-theme="light"] .cta-sub,
[data-theme="light"] .brand-sub,
[data-theme="light"] .mc-desc,
[data-theme="light"] .mc-sub,
[data-theme="light"] .gni-sub {
  color: var(--t3) !important;
}

[data-theme="light"] .mc-meta-label { color: var(--t3) !important; }
[data-theme="light"] .mc-meta-value { color: var(--t1) !important; }

/* Tag chips and badges */
[data-theme="light"] .mc-tag,
[data-theme="light"] .feat-tag,
[data-theme="light"] .phase-tag {
  background: var(--sf2) !important;
  border-color: var(--bd) !important;
  color: var(--t2) !important;
}
[data-theme="light"] .phase-tag-live {
  background: rgba(45,125,70,0.1) !important;
  border-color: rgba(45,125,70,0.25) !important;
  color: var(--gn) !important;
}

/* Vision banner */
[data-theme="light"] .vision-banner {
  background: linear-gradient(135deg, #EDE8DF 0%, #E8E0D5 100%) !important;
  border-color: var(--bd) !important;
}
[data-theme="light"] .vb-left p { color: var(--t2) !important; }
[data-theme="light"] .vb-stat-n { color: var(--ac) !important; }

/* Hero section */
[data-theme="light"] .hero-inner { background: transparent !important; }
[data-theme="light"] .hero-title { color: var(--t1) !important; }
[data-theme="light"] .hero-sub { color: var(--t2) !important; }

/* Stats band */
[data-theme="light"] .stat-label { color: var(--t3) !important; }
[data-theme="light"] .stat-val   { color: var(--ac) !important; }
[data-theme="light"] .stat-unit  { color: var(--t2) !important; }

/* Sector cards */
[data-theme="light"] .scard-icon { filter: none !important; }
[data-theme="light"] .scard-name { color: var(--t1) !important; }

/* Feature tabs */
[data-theme="light"] .feat-tab-btn { color: var(--t2) !important; }
[data-theme="light"] .feat-tab-btn.active {
  background: var(--sf) !important;
  color: var(--t1) !important;
  border-color: var(--ac) !important;
}
[data-theme="light"] .feat-tab-panel h3 { color: var(--t1) !important; }
[data-theme="light"] .feat-tab-panel p  { color: var(--t2) !important; }
[data-theme="light"] .feat-tab-panel li { color: var(--t2) !important; }

/* Carousel track */
[data-theme="light"] .mc-track { background: transparent !important; }
[data-theme="light"] .mc-cat   { color: var(--ac) !important; }
[data-theme="light"] .mc-title { color: var(--t1) !important; }
[data-theme="light"] .mc-meta-row { border-color: var(--bd) !important; }

/* Footer */
[data-theme="light"] footer {
  background: #EBE5DA !important;
  border-top-color: var(--bd) !important;
}
[data-theme="light"] footer a,
[data-theme="light"] footer span { color: var(--t3) !important; }
[data-theme="light"] footer a:hover { color: var(--ac) !important; }

/* Countdown band */
[data-theme="light"] .cd-band {
  background: linear-gradient(135deg, #EDE8DF 0%, #E8DFD3 100%) !important;
  border-color: var(--bd) !important;
}
[data-theme="light"] .cd-num  { color: var(--t1) !important; }
[data-theme="light"] .cd-label { color: var(--t3) !important; }
[data-theme="light"] .cd-title { color: var(--t1) !important; }

/* Article / blog pages */
[data-theme="light"] .article-body,
[data-theme="light"] .article-content { color: var(--t2) !important; }

/* Modal / overlay */
[data-theme="light"] .modal-bg {
  background: rgba(200, 193, 183, 0.8) !important;
}
[data-theme="light"] .modal-card {
  background: var(--sf) !important;
  border-color: var(--bd) !important;
}

/* Scroll nav widget */
[data-theme="light"] #snavWidget {
  background: var(--sf) !important;
  border-color: var(--bd) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* ── THEME TOGGLE BUTTON ─────────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #21262d;
  background: #0d1117;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 9998;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.theme-toggle:hover {
  transform: scale(1.1);
  border-color: #3A67F0;
}

[data-theme="light"] .theme-toggle {
  background: #FFFFFF;
  border-color: var(--bd2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* ── GLOBAL NAV OFFSET FIX ───────────────────────────────────────────── */
/* Fixed nav is 64px — all first-content elements must clear it          */

/* Phase strip / launch bar that sits just below nav */
.phase-strip, .launch-phases, .launch-bar, .ps-bar {
  margin-top: 64px;
}

/* Hero sections on all pages */
.hero, .pg-hero, .ldr-hero, .cm-hero,
.vip-strip, .ea-shell {
  padding-top: 64px !important;
}

/* Content pages that start with a section directly */
.page-wrap, .doc-page, .pg-wrap {
  padding-top: 80px;
}

/* Catch-all: first direct child of body that isn't the nav overlay */
body > section:first-of-type,
body > div.page-hero:first-of-type,
body > div.hero:first-of-type {
  padding-top: 64px;
}

.phase-notice { margin-top: 64px; }

/* ── ARTICLE PAGE NAV OFFSET (fixes all 111 article pages) ──────────── */
.article-wrap {
  padding-top: 80px !important;
  max-width: 860px;
  margin: 0 auto;
}

/* Sector page hero containers */
.sector-hero, .s-hero, .sec-hero {
  padding-top: 120px !important;
}

/* Community spaces, opportunities, playbooks */
.community-wrap, .opp-wrap, .pb-wrap, .playground-wrap {
  padding-top: 80px !important;
}

/* Advertise, careers, changelog, ecosystem, get-to-know */
.adv-wrap, .careers-wrap, .log-wrap, .partner-wrap, .gtk-wrap {
  padding-top: 80px !important;
}

/* Privacy, terms, legal pages */
.legal-wrap, .privacy-wrap, .terms-wrap {
  padding-top: 80px !important;
}

/* Generic content wrapper fallback */
.content-wrap, .page-content, .main-content {
  padding-top: 80px !important;
}

/* Article hero (article title area) */
.article-hero, .art-hero, .post-hero {
  padding-top: 80px !important;
  border-bottom: 1px solid #21262d;
  margin-bottom: 0;
}

/* Opportunities / solutions categories */
.opp-hero, .solutions-hero, .earnings-hero {
  padding-top: 80px !important;
}

/* ── SECTOR PAGE HERO FIX ─────────────────────────────────────────────── */
/* Sector pages use .rv as first content container after nav */
/* We target the specific structure: after the nav, first .rv needs top padding */
/* Using a very high-specificity selector */
body > div.rv:first-of-type,
body > .rv {
  padding-top: 80px;
}

/* Also catch direct section first child */  
body > div:not(.gn-nav):not(.gn-overlay):first-of-type > .rv {
  padding-top: 80px;
}

/* ── NEWSLETTER SIGNUP WIDGET ─────────────────────────────────────────── */
.newsletter-band {
  background: linear-gradient(135deg, #0d1117 0%, #0a0f1a 100%);
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
  padding: 48px 0;
  text-align: center;
}
.newsletter-band h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #e6edf3;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.newsletter-band p {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #8b949e;
  font-style: italic;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: #060911;
  border: 1px solid #21262d;
  border-radius: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e6edf3;
  outline: none;
  transition: border-color .2s;
  caret-color: #3A67F0;
}
.newsletter-input:focus { border-color: #3A67F0; }
.newsletter-input::placeholder { color: #484f58; }
.newsletter-btn {
  padding: 12px 20px;
  background: #3A67F0;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.newsletter-btn:hover { background: #2a54d4; }
[data-theme="light"] .newsletter-band {
  background: linear-gradient(135deg, #EDE8DF, #E8E0D5);
  border-color: #E2D9CC;
}
[data-theme="light"] .newsletter-band h3 { color: #1C2526; }
[data-theme="light"] .newsletter-band p  { color: #4A5568; }
[data-theme="light"] .newsletter-input   { background: #FFFFFF; border-color: #E2D9CC; color: #1C2526; }

/* ── SCROLL REVEAL ANIMATION ──────────────────────────────────────────── */
/* Sections and cards fade in as they enter the viewport                  */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Apply to sections on content pages */
.section {
  animation: fadeInUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-play-state: paused;
}
.section.visible {
  animation-play-state: running;
}

/* Cards reveal on scroll */
.card {
  animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-play-state: paused;
}
.card.visible {
  animation-play-state: running;
}

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #3A67F0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: rgba(58, 103, 240, 0.2);
  color: #e6edf3;
}
[data-theme="light"] ::selection {
  background: rgba(45, 86, 217, 0.15);
  color: #1C2526;
}

/* ── HOVER STATES ─────────────────────────────────────────────────────── */
/* Consistent hover on all interactive cards */
.card,
.audience-card,
.feature-card,
.sector-card,
.tier-row {
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(58, 103, 240, 0.08);
}

/* ── LOADING SKELETON (for future Phase 2 dynamic content) ─────────────── */
.skeleton {
  background: linear-gradient(90deg, #21262d 25%, #30363d 50%, #21262d 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}


/* ── Button system — WCAG AA accessible ─────────────────────────────────── */
.btn-prim,.btn-p {
  padding: 12px 24px;
  background: #3A67F0;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-prim:hover,.btn-p:hover { background: #2a54d4; transform: translateY(-1px); }
.btn-prim:focus-visible,.btn-p:focus-visible {
  outline: 2px solid #3A67F0;
  outline-offset: 3px;
}

.btn-ghost,.btn-g {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid #21262d;
  border-radius: 9px;
  color: #e6edf3; /* Primary text — NOT muted gray. Ghost ≠ disabled */
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-ghost:hover,.btn-g:hover { border-color: #3A67F0; color: #e6edf3; }
.btn-ghost:focus-visible,.btn-g:focus-visible {
  outline: 2px solid #3A67F0;
  outline-offset: 3px;
}

/* Light mode button overrides */
[data-theme='light'] .btn-ghost,
[data-theme='light'] .btn-g {
  color: #1C2526;
  border-color: #E2D9CC;
}
[data-theme='light'] .btn-ghost:hover,
[data-theme='light'] .btn-g:hover {
  border-color: #2D56D9;
  color: #1C2526;
}
