/* ═══════════════════════════════════════════════════
   WORDSCOUT11PLUS — MAIN SITE CSS
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ────────────────────────────────────────── */
:root {
  --yellow:      #fcec61;
  --yellow-dark: #e6d200;
  --teal:        #00b5ca;
  --teal-dark:   #008fa0;
  --teal-light:  #e6fbff;
  --cream:       #fef9dc;
  --pale:        #fffde7;
  --ink:         #2a2a2a;
  --muted:       #666;
  --white:       #ffffff;
  --red:         #f44336;
  --green:       #4caf50;
  --yt-red:      #ff0000;
  --radius:      16px;
  --radius-lg:   24px;
  --container:   1100px;
  --shadow-sm:   0 4px 16px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.13);
}

/* ── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Baloo 2', cursive;
  background: linear-gradient(180deg, var(--cream) 0%, #fffaf0 100%);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ── HEADER & NAV ───────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,249,220,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

header h1 {
  margin: 0;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

nav a:hover,
nav a.active {
  background: var(--ink);
  color: var(--yellow);
  transform: translateY(-1px);
}

nav a.nav-highlight {
  background: var(--teal-light);
  color: var(--teal-dark);
}

nav a.nav-highlight:hover {
  background: var(--teal);
  color: white;
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  max-width: var(--container);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.hero-inner {
  background: linear-gradient(135deg, #00b5ca 0%, #00d8e8 60%, #00e5c8 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0,181,202,0.22);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero-inner::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  bottom: -100px; right: -80px;
  pointer-events: none;
}
.hero-inner::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -60px; left: 60%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Floating stats on hero right */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.hero-stat-pill {
  background: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  min-width: 150px;
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
}

.hero-stat-pill:nth-child(2) { animation-delay: -1.6s; }
.hero-stat-pill:nth-child(3) { animation-delay: -3.2s; }

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: white;
  color: var(--teal-dark);
}

.btn-ghost {
  background: rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.35);
}

.btn-ink {
  background: var(--ink);
  color: var(--yellow);
}

.btn-teal {
  background: var(--teal);
  color: white;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-yt {
  background: var(--yt-red);
  color: white;
}

.btn-yt:hover {
  background: #cc0000;
  box-shadow: 0 10px 28px rgba(255,0,0,0.3);
}

.btn-wa {
  background: #25d366;
  color: white;
}

.btn-wa:hover {
  background: #1da851;
  box-shadow: 0 10px 28px rgba(37,211,102,0.35);
}

/* ── TICKER ─────────────────────────────────────────── */
.ticker-strip {
  background: var(--ink);
  overflow: hidden;
  padding: 12px 0;
  display: flex;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.ticker-sep {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── SECTIONS SHARED ────────────────────────────────── */
.section {
  max-width: var(--container);
  margin: 2.5rem auto;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: white;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}

.section h3 {
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

.section p {
  font-size: 1.02rem;
  color: rgba(42,42,42,0.85);
}

/* ── ABOUT ──────────────────────────────────────────── */
#about {
  background: linear-gradient(135deg, var(--pale), #fffef8);
  border-left: 6px solid var(--yellow);
}

#about p { font-size: 1.08rem; line-height: 1.8; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 1.75rem;
}

.about-pill {
  background: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
  transition: transform 0.2s;
}

.about-pill:hover { transform: translateY(-3px); }

.about-pill-icon { font-size: 1.6rem; flex-shrink: 0; }

.about-pill h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--ink);
}

.about-pill p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ── QUIZ ───────────────────────────────────────────── */
#quiz {
  background: linear-gradient(135deg, #f0faff 0%, #e6fbff 100%);
  border: 2px solid var(--teal-light);
  text-align: center;
  overflow: hidden;
  position: relative;
}

#quiz::before {
  content: '🧠';
  position: absolute;
  font-size: 14rem;
  opacity: 0.04;
  right: -2rem;
  top: -2rem;
  pointer-events: none;
}

.quiz-header {
  margin-bottom: 1.5rem;
}

/* Category picker */
.category-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.75rem;
}

.cat-btn {
  padding: 8px 18px;
  border-radius: 40px;
  border: 2px solid var(--teal-light);
  background: white;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal-dark);
  cursor: pointer;
  transition: all 0.18s;
}

.cat-btn:hover,
.cat-btn.selected {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* Quiz arena */
.quiz-arena {
  max-width: 660px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

/* Progress bar */
.quiz-progress-bar {
  height: 6px;
  background: var(--teal-light);
  border-radius: 3px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #00e5c8);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Timer ring */
.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.timer-ring {
  width: 54px;
  height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timer-ring svg {
  position: absolute;
  top: 0; left: 0;
  transform: rotate(-90deg);
}

.timer-ring circle {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 4;
}

.timer-ring .timer-fill {
  stroke: var(--teal);
  stroke-dasharray: 138;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
  stroke-linecap: round;
}

.timer-ring .timer-fill.urgent {
  stroke: var(--red);
}

.timer-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

/* Streak badge */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pale);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.streak-badge .streak-flame {
  font-size: 1rem;
}

/* Score chip */
.score-chip {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Question */
.quiz-q-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
  background: var(--teal-light);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
}

.quiz-question {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  min-height: 4rem;
}

/* Options grid */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}

.quiz-opt {
  background: var(--teal-light);
  border: 2.5px solid transparent;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.18s;
  text-align: left;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-opt-letter {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-dark);
  flex-shrink: 0;
}

.quiz-opt:hover:not(:disabled) {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  transform: translateY(-2px);
}

.quiz-opt:hover:not(:disabled) .quiz-opt-letter {
  background: rgba(255,255,255,0.25);
  color: white;
}

.quiz-opt.correct {
  background: #e8f8e8;
  border-color: var(--green);
  color: var(--ink);
}

.quiz-opt.correct .quiz-opt-letter {
  background: var(--green);
  color: white;
}

.quiz-opt.wrong {
  background: #fde8e8;
  border-color: var(--red);
  color: var(--ink);
}

.quiz-opt.wrong .quiz-opt-letter {
  background: var(--red);
  color: white;
}

.quiz-opt:disabled { cursor: default; }

/* Feedback */
.quiz-feedback {
  min-height: 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 8px 14px;
  transition: all 0.2s;
}

.quiz-feedback.correct-fb {
  background: #e8f8e8;
  color: #2e7d32;
}

.quiz-feedback.wrong-fb {
  background: #fde8e8;
  color: #c62828;
}

.quiz-feedback.fact-fb {
  background: var(--pale);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
}

/* Next btn */
#next-btn {
  margin-top: 1rem;
  width: 100%;
}

/* End screen */
.quiz-end {
  text-align: center;
  padding: 1rem 0;
}

.quiz-end-score {
  font-size: 4rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.quiz-end-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.quiz-end-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.end-badge {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Pop animation on correct */
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.pop { animation: pop 0.3s ease; }

/* ── BOOKS ──────────────────────────────────────────── */
#books {
  background: linear-gradient(180deg, var(--teal-light), #f6feff);
  text-align: center;
}

.books-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.book-card {
  width: 300px;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 5px solid var(--teal);
  position: relative;
  overflow: hidden;
}

.book-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--teal-light);
  pointer-events: none;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.book-card h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin: 0;
}

.book-card p {
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.7;
}

.book-card a { margin-top: auto; display: block; }

/* ── YOUTUBE ────────────────────────────────────────── */
#youtube-section {
  background: linear-gradient(180deg, #fff3f3, #fffaf8);
}

.youtube-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.youtube-text h3 { color: var(--yt-red) !important; }

.youtube-text p { line-height: 1.75; margin-bottom: 1rem; }

/* ── LEARN SCIENCE PAGES ────────────────────────────── */
#learn-science {
  background: var(--ink);
}

#learn-science .section-eyebrow { color: var(--teal); }

#learn-science h3 {
  color: var(--yellow) !important;
  font-size: 1.75rem;
}

#learn-science > p {
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 2rem;
}

.ls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ls-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: block;
  color: white;
}

.ls-card:hover {
  background: rgba(0,181,202,0.15);
  border-color: var(--teal);
  transform: translateY(-4px);
  color: white;
}

.ls-card-icon { font-size: 2rem; margin-bottom: 12px; }

.ls-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: white;
}

.ls-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 14px;
}

.ls-card-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.18s;
}

.ls-card:hover .ls-card-link { gap: 9px; }

/* ── REVIEWS ────────────────────────────────────────── */
#reviews {
  background: linear-gradient(135deg, var(--yellow), #fff9d0);
}

#reviews h3 { color: var(--teal-dark) !important; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 1.75rem;
}

.review-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s;
}

.review-card:hover { transform: translateY(-3px); }

.review-stars { color: #f5a623; font-size: 1.1rem; }

.review-text {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  flex: 1;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
}

/* ── SESSIONS ───────────────────────────────────────── */
#sessions {
  background: linear-gradient(135deg, #fff8e1, #fffef5);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

#sessions h3 { color: var(--ink) !important; }

/* ── CONTACT ────────────────────────────────────────── */
#contact {
  background: linear-gradient(180deg, #f0fdff, #f6ffff);
  text-align: center;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal-dark);
  border-bottom: 3px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.contact-email:hover { color: var(--teal); }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 2rem;
}

footer strong { color: var(--yellow); }

/* ── SCROLL REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 3rem 2rem;
  }

  .hero-stats { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .youtube-layout { grid-template-columns: 1fr; }
  #sessions { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  header { padding: 0.7rem 1rem; }
  header h1 { font-size: 1.15rem; }
  nav { display: none; }

  .section { margin: 1.25rem; padding: 1.5rem; }
  .quiz-options { grid-template-columns: 1fr; }
  .ls-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 2.5rem 1.5rem; }
  .hero h2 { font-size: 1.8rem; }
}
