/* ==========================================================================
   The Teacher Vault -- Early Years visual identity (ages 3-5).
   Warmer, brighter and more playful than the rest of the site, while
   reusing the same header/footer/logo/typography so it still reads as
   part of The Teacher Vault. Loaded IN ADDITION TO the shared styles.css.
   ========================================================================== */

:root {
  --ey-bg: #fff8ec;
  --ey-bg-soft: #fdecd2;
  --ey-orange: #e8742a;
  --ey-orange-dark: #c25b1a;
  --ey-orange-light: #ffb877;
  --ey-yellow: #ffcf4d;
  --ey-green: #4c9a5f;
  --ey-ink: #3a2e22;
  --ey-ink-soft: #6b5a48;
  --ey-radius: 28px;
  --ey-radius-sm: 18px;
}

.ey-page-body { background: var(--ey-bg); }
.ey-section { background: var(--ey-bg); padding: 32px 0; }
.ey-section--soft { background: var(--ey-bg-soft); }

.ey-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Breadcrumb / badge ---------------- */
.ey-breadcrumb {
  font-size: 0.9rem;
  color: var(--ey-ink-soft);
  margin-bottom: 14px;
}
.ey-breadcrumb a { color: var(--ey-orange-dark); text-decoration: underline; font-weight: 700; }

.ey-badge {
  display: inline-block;
  background: var(--ey-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------------- Headings ---------------- */
.ey-h1 {
  font-family: 'Permanent Marker', cursive;
  color: var(--ey-orange-dark);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 10px;
}
.ey-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ey-ink);
  font-weight: 700;
  margin-bottom: 6px;
}
.ey-lede {
  font-size: 1.05rem;
  color: var(--ey-ink-soft);
  max-width: 62ch;
}

/* ---------------- Buttons ---------------- */
.ey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 18px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  min-height: 60px;
  min-width: 60px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
}
.ey-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.12); }
.ey-btn:focus-visible { outline: 4px solid var(--ey-yellow); outline-offset: 3px; }
.ey-btn--primary { background: var(--ey-orange); color: #fff; }
.ey-btn--primary:hover { background: var(--ey-orange-dark); }
.ey-btn--soft { background: #fff; color: var(--ey-orange-dark); border: 3px solid var(--ey-orange); }
.ey-btn--soft:hover { background: var(--ey-bg-soft); }
.ey-btn--sm { font-size: 0.95rem; padding: 10px 22px; min-height: 44px; box-shadow: 0 3px 0 rgba(0,0,0,0.1); }

/* ---------------- Cards ---------------- */
.ey-card {
  background: #fff;
  border-radius: var(--ey-radius);
  padding: 26px;
  box-shadow: 0 6px 18px rgba(200,120,40,0.12);
  border: 3px solid transparent;
}
.ey-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.ey-resource-card {
  background: #fff;
  border-radius: var(--ey-radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(200,120,40,0.12);
  border: 3px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ey-resource-card:hover { transform: translateY(-3px); border-color: var(--ey-orange-light); }
.ey-resource-card__icon { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.ey-resource-card__title { font-family: 'Permanent Marker', cursive; color: var(--ey-orange-dark); font-size: 1.3rem; margin-bottom: 8px; }
.ey-resource-card__desc { color: var(--ey-ink-soft); font-size: 0.98rem; margin-bottom: 16px; }

.ey-soon-card {
  background: var(--ey-bg-soft);
  border-radius: var(--ey-radius);
  padding: 22px;
  text-align: center;
  opacity: 0.75;
  border: 3px dashed var(--ey-orange-light);
}
.ey-soon-card__icon { font-size: 2.6rem; margin-bottom: 8px; }
.ey-soon-badge {
  display: inline-block;
  background: var(--ey-ink-soft);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------------- Mascot ---------------- */
.ey-mascot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ey-mascot--float { animation: ey-float 3.5s ease-in-out infinite; }
.ey-mascot--bounce { animation: ey-bounce 0.6s ease; }
.ey-mascot--fade-in { animation: ey-fade-in 0.5s ease both; }

@keyframes ey-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ey-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); }
  60% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
@keyframes ey-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ey-mascot--float, .ey-mascot--bounce, .ey-mascot--fade-in {
    animation: none !important;
  }
}

.ey-speech {
  position: relative;
  background: #fff;
  color: var(--ey-ink);
  border-radius: 20px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(200,120,40,0.15);
  display: inline-block;
}

.ey-mascot-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ey-mascot-row--right { flex-direction: row-reverse; }

/* ---------------- Setup / choice grids ---------------- */
.ey-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.ey-choice {
  background: #fff;
  border: 4px solid var(--ey-bg-soft);
  border-radius: var(--ey-radius-sm);
  padding: 20px 12px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ey-ink);
  cursor: pointer;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.ey-choice:hover { border-color: var(--ey-orange-light); }
.ey-choice:focus-visible { outline: 4px solid var(--ey-yellow); outline-offset: 2px; }
.ey-choice.is-correct { border-color: var(--ey-green); background: #eef8ef; }
.ey-choice.is-incorrect { border-color: #d9694a; background: #fdefe9; }
.ey-choice:disabled { cursor: default; }
.ey-choice--active { border-color: var(--ey-orange); background: var(--ey-bg-soft); }

/* ---------------- Activity shell ---------------- */
.ey-activity-panel {
  background: #fff;
  border-radius: var(--ey-radius);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(200,120,40,0.14);
}
.ey-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.ey-progress-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ey-bg-soft);
}
.ey-progress-dot.is-done { background: var(--ey-orange); }

.ey-stars {
  font-size: 2rem;
  text-align: center;
  margin: 10px 0;
}
.ey-star { opacity: 0.25; }
.ey-star.is-lit { opacity: 1; animation: ey-fade-in 0.4s ease both; }
@media (prefers-reduced-motion: reduce) { .ey-star.is-lit { animation: none !important; } }

/* ---------------- Grown-ups collapsible ---------------- */
.ey-grownups {
  background: var(--ey-bg-soft);
  border-radius: var(--ey-radius);
  padding: 6px 24px;
  max-width: 760px;
  margin: 28px auto 0;
}
.ey-grownups summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ey-orange-dark);
  padding: 16px 0;
  font-size: 1.05rem;
  list-style: none;
}
.ey-grownups summary::-webkit-details-marker { display: none; }
.ey-grownups summary::before { content: "▸ "; }
.ey-grownups[open] summary::before { content: "▾ "; }
.ey-grownups p, .ey-grownups li { color: var(--ey-ink-soft); font-size: 0.95rem; }
.ey-grownups .ey-body { padding-bottom: 18px; }

/* ---------------- Utility ---------------- */
.ey-center { text-align: center; }
.ey-visual-word {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ey-ink);
}
.ey-object-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; font-size: 2.2rem; }

@media (max-width: 600px) {
  .ey-activity-panel { padding: 22px 16px; }
  .ey-choice { font-size: 1.3rem; min-height: 72px; }
  .ey-btn { font-size: 1.05rem; padding: 16px 26px; }
}
