/* ============================================================
   Brave Little Bites — Brand styles
   Palette: yellow #FFC83D, sky blue #4FA3E3, navy #1F3A5F,
            sage #7FBEB4, coral #FF7A66, cream #FFF5E1, ink #2A2A1A
   PBS-Kids-vibe: bright, big buttons, simple, kid-+-grandparent friendly
   ============================================================ */

:root {
  --yellow:  #FFC83D;
  --blue:    #4FA3E3;
  --navy:    #1F3A5F;
  --sage:    #7FBEB4;
  --coral:   #FF7A66;
  --cream:   #FFF5E1;
  --ink:     #2A2A1A;
  --soft:    #FFE9B5;
  --muted:   #8b7a5c;
  --shadow:  0 4px 14px rgba(31,58,95,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ───── Top nav — big tappable buttons, kid+grandparent ───── */
.topbar {
  background: linear-gradient(135deg, var(--yellow), var(--soft));
  border-bottom: 4px solid var(--navy);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 22px;
  gap: 10px;
}
.brand img { height: 48px; width: auto; }
.brand-text { line-height: 1; }
.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.current {
  background: var(--navy);
  color: var(--yellow);
  transform: translateY(-2px);
}
.nav-links a.shop { background: var(--coral); color: #fff; border-color: var(--coral); }
.nav-links a.shop:hover { background: #e64a3a; }

/* ───── Hero ───── */
.hero {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--soft) 60%, var(--cream) 100%);
  padding: 50px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '☁️';
  position: absolute;
  font-size: 80px;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.hero::before { top: 20px; left: 5%; }
.hero::after { top: 50px; right: 8%; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.hero-dash {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  animation: bounce 2.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(31,58,95,0.18));
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.1;
}
.hero .tag {
  color: var(--ink);
  font-size: clamp(16px, 3vw, 22px);
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  border: 3px solid var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(31,58,95,0.18); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-secondary { background: var(--sage); color: var(--navy); }
.btn-play { background: var(--coral); color: #fff; border-color: var(--coral); font-size: 22px; padding: 18px 36px; }

/* ───── Section blocks ───── */
section { padding: 60px 20px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.section-title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(26px, 4.5vw, 38px);
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ───── Cards grid (recipes, scenes, products) ───── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--soft);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(31,58,95,0.18); }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.card-body p { color: var(--ink); font-size: 14px; line-height: 1.5; }
.card-link {
  display: inline-block;
  margin-top: auto;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  font-size: 14px;
  align-self: flex-start;
}
.card-link:hover { background: var(--coral); color: #fff; }
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--sage);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  align-self: flex-start;
}
.card-tag.free { background: var(--coral); }
.card-tag.cookbook { background: var(--yellow); color: var(--navy); }

/* ───── Game CTA ───── */
.game-banner {
  background: linear-gradient(135deg, var(--coral), #ff9a82);
  color: #fff;
  border-radius: 22px;
  padding: 40px 30px;
  text-align: center;
  margin: 40px auto;
  max-width: 720px;
  box-shadow: var(--shadow);
}
.game-banner h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.game-banner p { font-size: 16px; margin-bottom: 18px; opacity: 0.95; }

/* ───── Video embed ───── */
.dash-video {
  max-width: 360px;
  width: 100%;
  border-radius: 18px;
  display: block;
  margin: 20px auto;
  box-shadow: var(--shadow);
  border: 4px solid var(--yellow);
}

/* ───── Email signup ───── */
.signup {
  background: var(--navy);
  color: var(--cream);
  border-radius: 22px;
  padding: 40px 30px;
  margin: 40px auto;
  max-width: 760px;
  text-align: center;
  box-shadow: var(--shadow);
}
.signup h2 { color: var(--yellow); font-size: clamp(22px, 3.5vw, 30px); margin-bottom: 10px; }
.signup p { margin-bottom: 22px; opacity: 0.95; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.signup input[type="email"] {
  padding: 14px 20px;
  border-radius: 999px;
  border: 3px solid var(--yellow);
  font-size: 16px;
  min-width: 250px;
  flex: 1;
  max-width: 360px;
}
.signup .btn { font-size: 16px; padding: 14px 28px; }

/* ───── Footer ───── */
footer {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 20px 30px;
  text-align: center;
  margin-top: 60px;
}
footer a { color: var(--yellow); text-decoration: none; font-weight: 700; }
footer .disclaimer {
  font-size: 12px;
  color: var(--muted);
  max-width: 720px;
  margin: 14px auto 0;
  line-height: 1.5;
}
footer .legal { font-size: 13px; margin-top: 10px; }

/* ───── Blog-post pages ───── */
.post {
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
}
.post h1 { color: var(--navy); font-size: clamp(28px, 5vw, 40px); margin-bottom: 10px; }
.post .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.post .answer-box {
  background: var(--soft);
  border-left: 5px solid var(--yellow);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 18px 0 28px;
}
.post .answer-box strong { color: var(--navy); }
.post h2 { color: var(--navy); margin-top: 32px; margin-bottom: 12px; font-size: 24px; }
.post h3 { color: var(--coral); margin-top: 22px; margin-bottom: 8px; font-size: 18px; }
.post p, .post li { font-size: 16px; margin-bottom: 12px; }
.post ul, .post ol { padding-left: 28px; margin-bottom: 16px; }
.post .faq { background: var(--cream); border-radius: 12px; padding: 20px; margin-top: 30px; }
.post .faq h2 { margin-top: 0; }
.post .faq details {
  border-bottom: 1px dashed var(--muted);
  padding: 10px 0;
}
.post .faq details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  list-style: none;
}
.post .faq details summary::after { content: ' +'; }
.post .faq details[open] summary::after { content: ' −'; }
.post .product-link {
  display: block;
  background: var(--yellow);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  margin: 18px 0;
  text-align: center;
}
.post .product-link:hover { background: var(--coral); color: #fff; }

/* ───── About / story page ───── */
.story {
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  border-radius: 22px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.story img.scene {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 12px auto 28px;
  border-radius: 16px;
}
.story h1 { color: var(--navy); font-size: 38px; text-align: center; margin-bottom: 12px; }
.story h2 { color: var(--coral); margin-top: 26px; margin-bottom: 10px; }
.story p { font-size: 17px; margin-bottom: 14px; }

/* ───── Affiliate cards & disclosure ───── */
.affiliate-card{background:#FFF5E1;border:2px solid #1F3A5F;border-radius:14px;padding:20px;margin:20px 0;box-shadow:0 4px 12px rgba(31,58,95,.08)}
.affiliate-card h3{color:#1F3A5F;margin:0 0 8px;font-size:18px}
.affiliate-card p{color:#1F3A5F;opacity:.85;line-height:1.5;margin:0 0 14px;font-size:14px}
.btn-affiliate{display:inline-block;background:#FFC83D;color:#1F3A5F;padding:10px 18px;border-radius:10px;text-decoration:none;font-weight:700;border:2px solid #1F3A5F;transition:transform .15s,background .15s}
.btn-affiliate:hover{background:#FF7A66;color:#fff;border-color:#FF7A66;transform:translateY(-1px)}
.affiliate-disclosure{background:#FFF5E1;border-left:4px solid #FFC83D;padding:12px 16px;margin:16px 0;font-size:13px;font-style:italic;color:#1F3A5F}

/* ───── Mobile responsive ───── */
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; }
  .brand img { height: 36px; }
  .brand { font-size: 18px; }
  .nav-links a { padding: 8px 14px; font-size: 13px; }
  .hero { padding: 30px 14px 50px; }
  .hero-dash { width: 160px; }
  .btn { padding: 14px 22px; font-size: 16px; }
  .btn-play { font-size: 18px; padding: 16px 28px; }
  section { padding: 40px 14px; }
  .game-banner, .signup, .story, .post { margin-left: 14px; margin-right: 14px; padding: 28px 20px; }
  .post h1 { font-size: 26px; }
  .signup input[type="email"] { min-width: 100%; }
}

/* ───── Recipe pages (auto-added by build_recipes.py) ───── */
.recipe-hero{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;margin-bottom:40px}
.recipe-hero img{width:100%;border-radius:18px;box-shadow:0 8px 24px rgba(31,58,95,.12)}
.recipe-hero h1{color:var(--navy);font-size:clamp(28px,5vw,40px);margin-bottom:8px}
.recipe-stats{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 24px}
.recipe-stat{background:var(--soft);padding:10px 16px;border-radius:10px;font-weight:700;color:var(--navy);font-size:14px}
.carb-callout{background:#FFF5E1;border-left:4px solid #FFC83D;padding:16px 20px;border-radius:8px;margin:24px 0;font-weight:700;color:var(--navy)}
.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.tag-row .tag{background:var(--sage);color:#fff;padding:4px 12px;border-radius:99px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:700}
.ingredients-list,.recipe-ingredients{background:var(--cream);padding:24px;border-radius:14px;margin:20px 0;list-style:none}
.recipe-ingredients li{padding:8px 0;border-bottom:1px dashed rgba(31,58,95,.15);color:var(--navy)}
.recipe-ingredients li:last-child{border-bottom:none}
.ingredient-carbs{color:var(--muted);font-weight:600;font-size:13px;margin-left:6px}
.directions-list{padding-left:24px;margin:20px 0}
.directions-list li{margin:12px 0;line-height:1.6;color:var(--ink)}
.recipe-notes{background:#fff;border:2px dashed var(--soft);border-radius:12px;padding:18px 22px;margin:24px 0;color:var(--navy)}
.recipe-notes h2{color:var(--navy);margin-bottom:8px;font-size:18px}
.recipe-disclaimer{background:#fff;border:2px solid var(--soft);border-radius:10px;padding:12px 16px;margin:18px 0;color:var(--muted);font-size:13px;font-style:italic}
.filter-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:24px 0 32px}
.filter-row a{background:#fff;border:2px solid var(--navy);color:var(--navy);padding:8px 16px;border-radius:999px;text-decoration:none;font-weight:700;font-size:14px}
.filter-row a.current,.filter-row a:hover{background:var(--navy);color:var(--yellow)}
.card-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px;margin:6px 0 10px}
.card-meta span{background:var(--soft);color:var(--navy);padding:2px 8px;border-radius:6px;font-weight:700}
@media(max-width:720px){.recipe-hero{grid-template-columns:1fr}}
