/* ==========================================================================
   WatDoUKnow — Homepage & Shared Component Styles (Blocksy build)
   Paste into: Blocksy > Customizer > Custom CSS
   (Or better: enqueue as a stylesheet from your child theme / a small
   "WDK Site Styles" mu-plugin, so it's version-controlled.)

   NOTES ON CONVERSION FROM MOCKUP:
   - Removed global resets (*, body, a, img, box-sizing) since Blocksy
     already sets these — they were fighting the theme unnecessarily.
   - Scoped everything under .wdk-home so these rules never leak onto
     other pages built later (category archive, single quiz, etc. will
     get their own small stylesheets that share the same :root tokens).
   - Font-family overrides (Lora / Poppins) kept — make sure Lora +
     Poppins are enqueued (Blocksy > Customizer > Fonts, or Google Fonts
     block) with weights 400/500/600/700/800 (Poppins) and 600/700 (Lora).
   - Header/search/actions rules INTENTIONALLY OMITTED — that's handled
     by Blocksy's native Header Builder, not custom markup. See notes.
   - Footer rules kept since Blocksy footer builder will host a
     "Custom HTML" widget using this markup+classes for now (can migrate
     to native footer widgets later if you want less hardcoded content).
   ========================================================================== */

:root{
  --wdk-amber:#E8A23B; --wdk-amber-deep:#C9871A; --wdk-amber-bg:#FEF3E0;
  --wdk-teal:#12B8A6; --wdk-teal-bg:#E4F7F2;
  --wdk-coral:#F1594B; --wdk-coral-bg:#FFEBE8;
  --wdk-ink:#12172B; --wdk-ink-soft:#6B72A0; --wdk-ink-faint:#9A9AA8;
  --wdk-paper:#FFFFFF; --wdk-paper-dim:#FAF8F4; --wdk-line:#EAEBF5;
}

.wdk-home h1, .wdk-home h2, .wdk-home h3{ font-family:'Lora',Georgia,serif; margin:0; }
.wdk-home{ font-family:'Poppins',sans-serif; color:var(--wdk-ink); background:var(--wdk-paper); }
.wdk-home a{ text-decoration:none; color:inherit; }
.wdk-home .wrap{ max-width:1220px; margin:0 auto; padding:0 24px; }
.wdk-home section{ padding:64px 0; }
.wdk-home .eyebrow{ font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--wdk-amber-deep); margin-bottom:10px; }
.wdk-home .section-head{ text-align:center; max-width:560px; margin:0 auto 40px; }
.wdk-home .section-head h2{ font-size:28px; margin-bottom:10px; }
.wdk-home .section-head p{ color:var(--wdk-ink-soft); font-size:14.5px; line-height:1.6; }

/* ---------- Hero ---------- */
.wdk-home .hero{ position:relative; overflow:hidden; padding:64px 24px 50px; text-align:center; }
.wdk-home .hero-halo{ position:absolute; top:-160px; left:50%; transform:translateX(-50%); width:640px; height:640px; border-radius:50%; background:radial-gradient(circle, var(--wdk-amber) 0%, transparent 65%); opacity:.13; pointer-events:none; }
.wdk-home .hero-inner{ position:relative; max-width:680px; margin:0 auto; }
.wdk-home .hero h1{ font-size:44px; font-weight:700; line-height:1.15; margin-bottom:16px; }
.wdk-home .hero p{ font-size:16px; color:var(--wdk-ink-soft); max-width:520px; margin:0 auto 30px; line-height:1.6; }
.wdk-home .hero-search{ display:flex; align-items:center; gap:10px; background:var(--wdk-paper); border:1.5px solid var(--wdk-line); border-radius:100px; padding:8px 8px 8px 22px; box-shadow:0 16px 40px -16px rgba(18,23,43,.18); max-width:480px; margin:0 auto 22px; }
.wdk-home .hero-search input{ flex:1; border:none; outline:none; font-size:14px; font-family:inherit; text-align:center; }
.wdk-home .hero-search button{ background:var(--wdk-amber); color:#fff; border:none; padding:12px 22px; border-radius:100px; font-weight:700; font-size:13px; cursor:pointer; }
.wdk-home .start-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:9px; margin-bottom:44px; }
.wdk-home .start-chip{ background:var(--wdk-paper-dim); border:1.5px solid var(--wdk-line); padding:8px 16px; border-radius:100px; font-size:12.5px; font-weight:600; }
.wdk-home .start-chip:hover{ border-color:var(--wdk-amber); color:var(--wdk-amber-deep); }
.wdk-home .stats-row{ position:relative; display:flex; justify-content:center; gap:56px; flex-wrap:wrap; }
.wdk-home .stat b{ display:block; font-family:'Lora',serif; font-size:30px; color:var(--wdk-ink); }
.wdk-home .stat span{ font-size:11.5px; color:var(--wdk-ink-soft); text-transform:uppercase; letter-spacing:.04em; font-weight:600; }

/* Returning-visitor personalization (real logic goes server-side — see PHP) */
.wdk-home .welcome-back{ display:none; align-items:center; justify-content:center; gap:10px; background:var(--wdk-amber-bg); border:1px solid #F5D9A8; border-radius:100px; padding:9px 20px; font-size:13px; font-weight:600; color:var(--wdk-amber-deep); margin:0 auto 24px; max-width:fit-content; }
.wdk-home.is-returning .welcome-back{ display:flex; }
.wdk-home.is-returning .hero-new-only{ display:none; }
.wdk-home .hero-new-only{ display:block; }

/* ---------- Daily Challenge spotlight ---------- */
.wdk-home .daily{ background:linear-gradient(135deg,var(--wdk-ink),#1B2140); border-radius:24px; max-width:1220px; margin:0 auto; padding:44px 46px; display:flex; align-items:center; justify-content:space-between; gap:36px; flex-wrap:wrap; position:relative; overflow:hidden; }
.wdk-home .daily-glow{ position:absolute; top:-40%; right:-10%; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle, var(--wdk-teal) 0%, transparent 65%); opacity:.18; }
.wdk-home .daily-left{ position:relative; max-width:480px; }
.wdk-home .daily-badge{ display:inline-flex; align-items:center; gap:6px; background:var(--wdk-amber); color:#fff; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding:6px 14px; border-radius:100px; margin-bottom:16px; }
.wdk-home .daily h2{ color:#fff; font-size:27px; margin-bottom:10px; }
.wdk-home .daily p{ color:#AEB4D6; font-size:14px; margin:0 0 22px; line-height:1.6; }
.wdk-home .daily-cta-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.wdk-home .daily-cta{ background:var(--wdk-amber); color:#fff; padding:14px 28px; border-radius:12px; font-weight:700; font-size:13.5px; }
.wdk-home .daily-streak{ display:flex; align-items:center; gap:7px; color:#FFD98C; font-size:13px; font-weight:700; background:rgba(255,217,140,.12); padding:8px 14px; border-radius:100px; }
.wdk-home .daily-stats{ position:relative; display:flex; gap:28px; flex-shrink:0; }
.wdk-home .daily-stat{ text-align:center; }
.wdk-home .daily-stat b{ display:block; font-family:'Lora',serif; font-size:32px; color:#fff; }
.wdk-home .daily-stat span{ font-size:10.5px; color:#AEB4D6; text-transform:uppercase; letter-spacing:.04em; }

/* ---------- Category grid ---------- */
.wdk-home .cat-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.wdk-home .cat-tile{ border:1.5px solid var(--wdk-line); border-radius:18px; padding:26px 18px; text-align:center; transition:box-shadow .15s, transform .15s, border-color .15s; box-shadow:0 3px 10px -4px rgba(18,23,43,.08); background:var(--wdk-paper); }
.wdk-home .cat-tile:hover{ box-shadow:0 14px 28px -14px rgba(18,23,43,.16); transform:translateY(-3px); border-color:var(--wdk-amber); }
.wdk-home .cat-icon{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:26px; margin:0 auto 12px; }
.wdk-home .cat-tile b{ display:block; font-size:14px; margin-bottom:3px; }
.wdk-home .cat-tile span{ font-size:11.5px; color:var(--wdk-ink-soft); }

/* ---------- Format showcase ---------- */
.wdk-home .format-grid{ display:grid; grid-template-columns:repeat(5, 1fr); gap:14px; }
.wdk-home .format-card{ border:1.5px solid var(--wdk-line); border-radius:18px; padding:22px 16px; text-align:center; background:var(--wdk-paper); box-shadow:0 3px 10px -4px rgba(18,23,43,.08); }
.wdk-home .format-icon{ font-size:28px; margin-bottom:12px; }
.wdk-home .format-card b{ display:block; font-size:13.5px; margin-bottom:6px; }
.wdk-home .format-card span{ font-size:11px; color:var(--wdk-ink-soft); line-height:1.5; display:block; }

/* ---------- Card row (Trending / Most Played) ---------- */
.wdk-home .cat-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px; }
.wdk-home .cat-head h2{ font-size:21px; }
.wdk-home .cat-head a{ font-size:13px; font-weight:700; color:var(--wdk-amber-deep); }
.wdk-home .card-row{ display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }
.wdk-home .qcard{ border:1.5px solid var(--wdk-line); border-radius:16px; overflow:hidden; transition:box-shadow .15s, transform .15s, border-color .15s; position:relative; box-shadow:0 3px 10px -4px rgba(18,23,43,.10); background:var(--wdk-paper); }
.wdk-home .qcard:hover{ box-shadow:0 14px 28px -10px rgba(18,23,43,.20); transform:translateY(-3px); border-color:#D8DCF0; }
.wdk-home .qcard-rank{ position:absolute; top:10px; left:10px; width:26px; height:26px; border-radius:50%; background:var(--wdk-ink); color:#fff; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; z-index:2; }
.wdk-home .qcard-img{ height:108px; background:var(--wdk-paper-dim); display:flex; align-items:center; justify-content:center; font-size:32px; }
.wdk-home .qcard-body{ padding:15px; }
.wdk-home .qcard-tag{ display:inline-block; font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:3px 9px; border-radius:100px; margin-bottom:9px; }
.wdk-home .qcard-title{ font-size:14px; font-weight:700; line-height:1.35; margin-bottom:8px; }
.wdk-home .qcard-meta{ font-size:11.5px; color:var(--wdk-ink-soft); }
.wdk-home .tag-trivia{ background:var(--wdk-amber-bg); color:var(--wdk-amber-deep); }
.wdk-home .tag-movies{ background:#F1E9FF; color:#7C4FD6; }
.wdk-home .tag-history{ background:var(--wdk-teal-bg); color:#0E8F73; }
.wdk-home .tag-science{ background:#E4F0FF; color:#2563C9; }
.wdk-home .tag-sports{ background:var(--wdk-coral-bg); color:#C23A2E; }

/* ---------- Value props ---------- */
.wdk-home .value-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:22px; }
.wdk-home .value-item{ text-align:center; }
.wdk-home .value-icon{ width:52px; height:52px; border-radius:14px; background:var(--wdk-amber-bg); color:var(--wdk-amber-deep); display:flex; align-items:center; justify-content:center; font-size:22px; margin:0 auto 14px; }
.wdk-home .value-item b{ display:block; font-size:14.5px; margin-bottom:6px; }
.wdk-home .value-item span{ font-size:12.5px; color:var(--wdk-ink-soft); line-height:1.6; }

/* ---------- How It Works ---------- */
.wdk-home .steps-row{ display:flex; align-items:flex-start; justify-content:center; gap:6px; }
.wdk-home .step{ text-align:center; max-width:210px; padding:0 10px; }
.wdk-home .step-num{ width:44px; height:44px; border-radius:50%; background:var(--wdk-ink); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Lora',serif; font-weight:700; font-size:18px; margin:0 auto 14px; }
.wdk-home .step b{ display:block; font-size:14.5px; margin-bottom:6px; }
.wdk-home .step span{ font-size:12.5px; color:var(--wdk-ink-soft); line-height:1.6; }
.wdk-home .step-arrow{ color:var(--wdk-ink-faint); font-size:20px; margin-top:14px; flex-shrink:0; }

/* ---------- Tier showcase ---------- */
.wdk-home .tier-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.wdk-home .tier-chip{ padding:12px 22px; border-radius:100px; font-weight:700; font-size:13.5px; }

/* ---------- Compact list-row style ---------- */
.wdk-home .list-rows{ display:flex; flex-direction:column; border:1.5px solid var(--wdk-line); border-radius:16px; overflow:hidden; box-shadow:0 3px 10px -4px rgba(18,23,43,.08); background:var(--wdk-paper); }
.wdk-home .list-row{ display:flex; align-items:center; gap:14px; padding:14px 18px; border-bottom:1px solid var(--wdk-line); transition:background .15s; }
.wdk-home .list-row:last-child{ border-bottom:none; }
.wdk-home .list-row:hover{ background:var(--wdk-paper-dim); }
.wdk-home .list-thumb{ width:44px; height:44px; border-radius:10px; background:var(--wdk-paper-dim); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.wdk-home .list-info{ flex:1; min-width:0; }
.wdk-home .list-info b{ display:block; font-size:13.5px; margin-top:5px; font-weight:700; }
.wdk-home .list-meta{ display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--wdk-ink-soft); flex-shrink:0; white-space:nowrap; }
.wdk-home .list-new{ background:var(--wdk-coral); color:#fff; font-size:9.5px; font-weight:800; padding:2px 7px; border-radius:100px; text-transform:uppercase; }

/* ---------- FAQ accordion ---------- */
.wdk-home .faq-list{ display:flex; flex-direction:column; gap:10px; }
.wdk-home .faq-item{ background:var(--wdk-paper); border:1.5px solid var(--wdk-line); border-radius:14px; padding:16px 20px; box-shadow:0 3px 10px -4px rgba(18,23,43,.06); }
.wdk-home .faq-item summary{ font-weight:700; font-size:14px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.wdk-home .faq-item summary::-webkit-details-marker{ display:none; }
.wdk-home .faq-item summary::after{ content:'+'; font-size:20px; color:var(--wdk-amber-deep); font-weight:400; }
.wdk-home .faq-item[open] summary::after{ content:'\2212'; }
.wdk-home .faq-item p{ font-size:13px; color:var(--wdk-ink-soft); line-height:1.6; margin:12px 0 0; }

/* ---------- Hall of Fame ---------- */
.wdk-home .hof-podium{ display:flex; align-items:flex-end; justify-content:center; gap:14px; margin-bottom:30px; }
.wdk-home .hof-slot{ text-align:center; }
.wdk-home .hof-avatar{ width:48px; height:48px; border-radius:50%; margin:0 auto 8px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; color:#fff; border:3px solid #fff; box-shadow:0 4px 10px -3px rgba(0,0,0,.2); }
.wdk-home .hof-name{ font-size:12.5px; font-weight:700; }
.wdk-home .hof-score{ font-size:11px; color:var(--wdk-ink-soft); margin-bottom:8px; }
.wdk-home .hof-bar{ border-radius:12px 12px 0 0; display:flex; align-items:flex-start; justify-content:center; padding-top:8px; font-weight:800; color:#fff; font-size:16px; width:100px; }
.wdk-home .hof-1 .hof-avatar{ background:linear-gradient(135deg,var(--wdk-amber),var(--wdk-amber-deep)); width:58px; height:58px; font-size:17px; }
.wdk-home .hof-1 .hof-bar{ height:76px; background:linear-gradient(180deg,var(--wdk-amber),var(--wdk-amber-deep)); }
.wdk-home .hof-2 .hof-bar{ height:56px; background:linear-gradient(180deg,#B9BEC9,#9298A4); }
.wdk-home .hof-3 .hof-bar{ height:42px; background:linear-gradient(180deg,#D89A6E,#B87A4E); }
.wdk-home .hof-rest{ max-width:520px; margin:0 auto; border:1.5px solid var(--wdk-line); border-radius:14px; overflow:hidden; background:var(--wdk-paper); box-shadow:0 3px 10px -4px rgba(18,23,43,.08); }
.wdk-home .hof-row{ display:flex; align-items:center; gap:12px; padding:11px 18px; border-bottom:1px solid var(--wdk-line); }
.wdk-home .hof-row:last-child{ border-bottom:none; }
.wdk-home .hof-rank{ width:20px; font-size:12px; font-weight:700; color:var(--wdk-ink-soft); }
.wdk-home .hof-row-name{ flex:1; font-size:13px; font-weight:600; }
.wdk-home .hof-row-score{ font-size:12.5px; font-weight:700; }

/* ---------- Testimonials ---------- */
.wdk-home .testi-row{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.wdk-home .testi-card{ border:1.5px solid var(--wdk-line); border-radius:18px; padding:24px; background:var(--wdk-paper); box-shadow:0 3px 10px -4px rgba(18,23,43,.08); }
.wdk-home .testi-stars{ color:var(--wdk-amber); font-size:13px; margin-bottom:12px; }
.wdk-home .testi-card p{ font-size:13.5px; line-height:1.65; color:var(--wdk-ink); margin:0 0 16px; }
.wdk-home .testi-who{ display:flex; align-items:center; gap:10px; }
.wdk-home .testi-avatar{ width:34px; height:34px; border-radius:50%; background:var(--wdk-ink); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.wdk-home .testi-who b{ font-size:12.5px; display:block; }
.wdk-home .testi-who span{ font-size:11px; color:var(--wdk-ink-soft); }

/* ---------- Newsletter ---------- */
.wdk-home .news-band{ background:var(--wdk-amber); border-radius:24px; max-width:1220px; margin:0 auto; padding:40px 44px; text-align:center; position:relative; overflow:hidden; }
.wdk-home .news-band h2{ color:#fff; font-size:24px; margin-bottom:8px; }
.wdk-home .news-band p{ color:#FCE8C8; font-size:13.5px; margin:0 0 22px; }
.wdk-home .news-form{ display:flex; justify-content:center; gap:8px; max-width:400px; margin:0 auto; }
.wdk-home .news-form input{ flex:1; border:none; border-radius:10px; padding:13px 15px; font-size:13.5px; font-family:inherit; }
.wdk-home .news-form button{ background:var(--wdk-ink); color:#fff; border:none; padding:13px 22px; border-radius:10px; font-weight:700; font-size:13px; cursor:pointer; }

/* ---------- Footer (Custom HTML widget in Blocksy Footer Builder) ---------- */
.wdk-footer{ background:var(--wdk-ink); color:#C7CAE3; padding:48px 24px 24px; }
.wdk-footer .footer-grid{ max-width:1220px; margin:0 auto; display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:30px; }
.wdk-footer h4{ color:#fff; font-size:12px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; }
.wdk-footer a{ display:block; font-size:13px; color:#AEB4D6; margin-bottom:9px; text-decoration:none; }
.wdk-footer a:hover{ color:var(--wdk-amber); }
.wdk-footer .social-row{ display:flex; gap:10px; margin-top:16px; }
.wdk-footer .social-row a{ width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; font-size:13px; margin:0; }
.wdk-footer .footer-bottom{ max-width:1220px; margin:32px auto 0; padding-top:20px; border-top:1px solid #262B48; font-size:12px; color:#7C82A8; text-align:center; }

/* ---------- Sticky mobile bottom nav ---------- */
.wdk-mobile-tabbar{ display:none; }
@media (max-width: 900px) {
  .wdk-mobile-tabbar{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:60;
    background:rgba(255,255,255,.95); backdrop-filter:blur(10px); border-top:1px solid var(--wdk-line);
    padding:8px 0 calc(8px + env(safe-area-inset-bottom));
  }
  .wdk-mobile-tabbar .tabbar-item{ flex:1; text-align:center; font-size:10px; font-weight:600; color:var(--wdk-ink-soft); text-decoration:none; }
  .wdk-mobile-tabbar .tabbar-item .tabbar-icon{ font-size:19px; display:block; margin-bottom:2px; }
  .wdk-mobile-tabbar .tabbar-item.active{ color:var(--wdk-amber-deep); }
  body.wdk-has-tabbar{ padding-bottom:64px; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .wdk-home .hero h1 { font-size:32px; }
  .wdk-home .cat-grid { grid-template-columns:repeat(2, 1fr); }
  .wdk-home .format-grid { grid-template-columns:repeat(3, 1fr); }
  .wdk-home .card-row { grid-template-columns:repeat(2, 1fr); }
  .wdk-home .value-grid { grid-template-columns:repeat(2, 1fr); }
  .wdk-home .testi-row { grid-template-columns:1fr; }
  .wdk-footer .footer-grid { grid-template-columns:1fr 1fr; }
  .wdk-home .daily { padding:30px 26px; }
  .wdk-home section { padding:48px 0; }
  .wdk-home .steps-row { flex-direction:column; align-items:center; }
  .wdk-home .step-arrow { transform:rotate(90deg); margin:2px 0; }
}
@media (max-width: 560px) {
  .wdk-home .hero h1 { font-size:26px; }
  .wdk-home .stats-row { gap:30px; }
  .wdk-home .format-grid { grid-template-columns:repeat(2, 1fr); }
  .wdk-home .card-row { grid-template-columns:1fr; }
  .wdk-home .value-grid { grid-template-columns:1fr; }
  .wdk-footer .footer-grid { grid-template-columns:1fr; }
  .wdk-footer .footer-grid > div { padding-bottom:22px; margin-bottom:22px; border-bottom:1px solid #262B48; }
  .wdk-footer .footer-grid > div:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
  .wdk-footer .footer-grid > div:not(:first-child) { display:grid; grid-template-columns:1fr 1fr; column-gap:16px; }
  .wdk-footer .footer-grid > div:not(:first-child) h4 { grid-column:1 / -1; }
  .wdk-home .daily-stats { width:100%; justify-content:space-between; }
  .wdk-home .daily-cta-row { flex-direction:column; align-items:flex-start; gap:12px; }
  .wdk-home section { padding:38px 0; }
  .wdk-home .hero-search { flex-wrap:wrap; border-radius:18px; padding:12px; }
  .wdk-home .hero-search input { width:100%; margin-bottom:8px; }
  .wdk-home .hero-search button { width:100%; }
}
