/* kids.css — kids.thefinancialverse.com
   Style: warm, cheerful, readable for ages 5–8
   Fonts: Nunito (Google Fonts)
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FFF8E7;
  --bg-warm:  #FFF3D6;
  --orange:   #FF7043;
  --green:    #66BB6A;
  --blue:     #29B6F6;
  --gold:     #FFC107;
  --navy:     #1A237E;
  --dark:     #1A237E;
  --text:     #1A237E;
  --text-lt:  #5C6BC0;
  --radius:   18px;
  --shadow:   0 4px 20px rgba(0,0,0,0.10);
}

body {
  font-family: 'Nunito', 'Comic Sans MS', cursive, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.1rem;
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(135deg, #1E1E2E 0%, #2D2D4E 100%);
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  border-bottom: 6px solid var(--gold);
}
.site-header .logo-top {
  font-size: 0.85rem;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.site-header .logo-top a {
  color: var(--gold);
  text-decoration: none;
}
.site-header h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(245,166,35,0.4);
  line-height: 1.1;
}
.site-header .tagline {
  color: #ccc;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* ── NAV ── */
.site-nav {
  background: var(--dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 1rem;
}
.site-nav a {
  color: #ddd;
  text-decoration: none;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--gold);
  color: var(--dark);
}

/* ── MAIN LAYOUT ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

section { margin-bottom: 3.5rem; }

.section-title {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
  text-align: center;
}
.section-title span { color: var(--orange); }

/* ── HERO BANNER ── */
.hero-banner {
  background: linear-gradient(135deg, #FFF3D6 0%, #FFE8B3 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
  margin-bottom: 3.5rem;
}
.hero-banner h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: #7B4F00;
  margin-bottom: 0.75rem;
}
.hero-banner p {
  font-size: 1.15rem;
  color: #5C3800;
  max-width: 620px;
  margin: 0 auto;
}

/* ── STORY CARDS ── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}
.story-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.story-card-art {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  line-height: 1;
}
.story-card-art.orange { background: linear-gradient(135deg,#FFEAD0,#FFD190); }
.story-card-art.green  { background: linear-gradient(135deg,#D4F0E0,#A8E0C0); }
.story-card-art.blue   { background: linear-gradient(135deg,#D6ECFF,#A8D5FF); }
.story-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
}
.story-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 0.25rem;
}
.story-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.story-card-body p {
  font-size: 0.95rem;
  color: var(--text-lt);
  margin-bottom: 1rem;
}
.lesson-tag {
  display: inline-block;
  background: var(--bg-warm);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.82rem;
  color: #7B4F00;
  font-weight: 700;
}
.read-btn {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.read-btn:hover { background: #e07800; }

/* ── CHARACTER CARDS ── */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.char-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1rem;
  text-align: center;
}
.char-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 0.75rem;
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.char-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--dark);
}
.char-card .char-role {
  font-size: 0.82rem;
  color: var(--text-lt);
}

/* ── ABOUT SECTION ── */
.about-box {
  background: linear-gradient(135deg,#E8F5FF,#D0EAFF);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 6px solid var(--blue);
}
.about-box h3 { color: #1A5276; margin-bottom: 0.75rem; font-size: 1.3rem; }
.about-box p  { color: #1A5276; margin-bottom: 0.6rem; }

/* ── STORY PAGE ── */
.story-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
.story-header .story-num-lg {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.story-header h1 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.story-header .chars-line {
  font-size: 1rem;
  color: var(--text-lt);
}
.story-header .lesson-banner {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--dark);
  color: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* color themes per story */
.story-orange .story-header { background: linear-gradient(135deg,#FFEAD0,#FFD190); }
.story-orange .story-header h1 { color: #7B3800; }
.story-orange .story-header .story-num-lg { color: #C06000; }
.story-green  .story-header { background: linear-gradient(135deg,#D4F0E0,#A8DFC0); }
.story-green  .story-header h1 { color: #145A32; }
.story-green  .story-header .story-num-lg { color: #1E8449; }
.story-blue   .story-header { background: linear-gradient(135deg,#D6ECFF,#A8D5FF); }
.story-blue   .story-header h1 { color: #1A3A5C; }
.story-blue   .story-header .story-num-lg { color: #2471A3; }

/* ── STORY PANELS ── */
.panel-list { display: flex; flex-direction: column; gap: 1.5rem; }
.panel {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-items: stretch;
}
.panel-art {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 120px;
  padding: 1rem 0.5rem;
}
.panel-art.orange { background: #FFEAD0; }
.panel-art.green  { background: #D4F0E0; }
.panel-art.blue   { background: #D6ECFF; }
.panel-art.shadow { background: #E8E0F0; }
.panel-art.gold   { background: #FFF3D6; }
.panel-body {
  padding: 1.25rem 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 0.35rem;
}
.panel-narration {
  font-size: 1.05rem;
  font-style: italic;
  color: #444;
  margin-bottom: 0.6rem;
}
.speech-bubble {
  background: var(--bg-warm);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
  color: var(--dark);
  margin-top: 0.35rem;
}
.speech-bubble .speaker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-lt);
  display: block;
  margin-bottom: 0.15rem;
}
.panel-scene {
  font-size: 0.82rem;
  color: var(--text-lt);
  margin-bottom: 0.5rem;
}

/* ── LESSON CALLOUT ── */
.lesson-callout {
  background: var(--dark);
  color: var(--gold);
  text-align: center;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: var(--shadow);
}

/* ── STORY NAV ── */
.story-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.story-nav a {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.story-nav a:hover { background: #e07800; }
.story-nav a.back  { background: #888; }
.story-nav a.back:hover { background: #666; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .panel { grid-template-columns: 90px 1fr; }
  .panel-art { font-size: 2rem; min-height: 90px; }
  .character-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
