/* ============================================================
   CamelWorth — components (topbar, hero, cards, ads, footer…)
   ============================================================ */

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--royal-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.topbar-nav { display: none; align-items: center; gap: 1.4rem; }
.topbar-nav a { color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.topbar-nav a:hover { color: var(--royal); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.95rem 2.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--royal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(43, 75, 255, 0.28);
}
.btn-primary:hover { background: var(--royal-dark); color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--royal); color: var(--royal); text-decoration: none; }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { background: var(--white); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--royal-soft);
  color: var(--royal-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}
.hero-copy p.lead { max-width: 34rem; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 1rem; }
.trust-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.trust-line svg { width: 18px; height: 18px; flex: none; color: var(--success); }

.hero-panel {
  background: var(--pink-panel);
  border-radius: 28px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-panel .float-wrap { width: 100%; max-width: 460px; }

/* Gentle float loop applied by the React HeroScene island */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-float { animation: heroFloat 6s ease-in-out infinite; }
.hero-stats {
  display: flex;
  gap: 1.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}
.card-lift { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.feature-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-ill {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 16px;
  background: var(--pink-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-ill svg { width: 76px; height: 76px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  border-left: 5px solid var(--royal);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  box-shadow: var(--shadow-card);
}
.disclaimer strong { color: var(--navy); }

/* ---------- Ad slots ---------- */
.ad-slot {
  position: relative;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 1.5rem auto;
}
.ad-slot .ad-label {
  position: absolute;
  top: 6px; left: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ad-slot[data-placement="leaderboard"] { min-height: var(--ad-leaderboard-h-mobile); max-width: 970px; }
.ad-slot[data-placement="rectangle"] { min-height: var(--ad-rectangle-h); max-width: 336px; }
.ad-slot[data-placement="inquiz"] { min-height: 120px; max-width: 100%; }
.ad-slot[data-placement="rail"] { min-height: var(--ad-rail-h); width: var(--ad-rail-w); max-width: 100%; }
.ad-slot[data-placement="anchor"] {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  min-height: var(--ad-anchor-h);
  margin: 0;
  border-radius: 0;
  z-index: 90;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--line);
}
.ad-slot.is-collapsed { display: none; }
.ad-slot iframe { border: 0; max-width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c6cbe0; margin-top: 3rem; }
.footer-inner {
  padding: 2.75rem 0 1.5rem;
  display: grid;
  gap: 2rem;
}
.footer-brand { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.footer p { font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #c6cbe0; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 88vw);
  background: var(--white);
  z-index: 150;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  box-shadow: var(--shadow-lift);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer.open { transform: translateX(0); }
.drawer a {
  color: var(--navy);
  font-weight: 600;
  padding: 0.8rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}
.drawer a:hover { background: var(--royal-soft); text-decoration: none; }
.scrim {
  position: fixed; inset: 0;
  background: rgba(10, 20, 69, 0.45);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 20, 69, 0.55);
  z-index: 160;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.25rem 1.25rem;
}
.search-overlay.open { display: flex; }
.search-box {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  width: min(560px, 100%);
  padding: 1.5rem;
}
.search-box input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
}
.search-box input:focus { border-color: var(--royal); outline: none; }
.search-results { list-style: none; margin: 1rem 0 0; padding: 0; max-height: 40vh; overflow: auto; }
.search-results a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 600;
}
.search-results a:hover { background: var(--royal-soft); text-decoration: none; }
.search-results small { display: block; color: var(--ink-faint); font-weight: 400; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 120;
  background: var(--navy);
  color: #e7eaf3;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.4rem;
  display: none;
  gap: 1rem;
  align-items: center;
  max-width: 640px;
}
.cookie-banner.open { display: flex; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1 1 240px; }
.cookie-banner .btn { padding: 0.7rem 1.5rem; font-size: 0.92rem; }

/* ---------- Share buttons ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.25rem 0; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.3rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.share-btn:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--royal); color: var(--navy); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.wa { border-color: #25d366; }
.share-btn.x { border-color: #111; }
.share-btn.fb { border-color: #1877f2; }
.share-btn.tg { border-color: #229ed9; }

/* ---------- Content pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--royal-soft);
  color: var(--royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; }

.fact-card { display: flex; gap: 1rem; align-items: flex-start; }
.fact-num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Related quizzes / CTA band */
.cta-band {
  background: var(--navy);
  border-radius: 28px;
  color: #dfe3f5;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .btn { margin-top: 1rem; }
