/* ============================================
   EduAI — Baby Zone Styles v3
   YouTube-style top player + scrolling shelves
   ============================================ */

/* ── HERO PLAYER (full-width at top) ──────── */
.baby-hero {
  background: #000;
  width: 100%;
  position: relative;
}
.baby-hero-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  position: relative;
  background: #111;
}
.baby-hero-player iframe {
  width: 100%; height: 100%; border: none; display: block;
  position: absolute; inset: 0;
}
.hero-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f0f2e 0%, #1a1a4e 50%, #0d0d26 100%);
  cursor: default;
  transition: opacity .3s;
}
.hero-placeholder.hidden { opacity: 0; pointer-events: none; }
.hero-placeholder-inner { text-align: center; color: #fff; }
.hero-play-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1rem;
  border: 2px solid rgba(255,255,255,.3);
}
.hero-placeholder-inner p { font-size: 1rem; color: rgba(255,255,255,.7); }
.baby-hero-info {
  padding: .75rem 1.25rem .6rem;
  background: #0f0f0f;
  border-bottom: 1px solid #222;
}
.hero-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.hero-meta { font-size: 12px; color: #aaa; }

/* ── VIDEO SHELVES (horizontal scroll per category) ── */
.shelf { margin-bottom: 2rem; }
.shelf-title {
  font-size: 15px; font-weight: 700; color: var(--clr-text);
  padding: .5rem 0 .6rem; margin-bottom: .4rem;
  display: flex; align-items: center; gap: .5rem;
}
.shelf-title span { font-size: 18px; }
.shelf-track {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: .75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.shelf-track::-webkit-scrollbar { height: 4px; }
.shelf-track::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

.vid-card {
  flex: 0 0 200px; scroll-snap-align: start;
  background: var(--clr-card); border: 1.5px solid var(--clr-border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.vid-card:hover { transform: translateY(-3px); border-color: var(--clr-primary); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.vid-card.playing { border-color: var(--clr-primary); box-shadow: 0 0 0 2px var(--clr-primary); }
.vid-thumb {
  width: 100%; aspect-ratio: 16/9; background: #f1f5f9;
  position: relative; overflow: hidden;
}
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.vid-card:hover .vid-thumb img { transform: scale(1.04); }
.vid-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.65); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; transition: transform .15s;
}
.vid-card:hover .vid-play-btn { transform: translate(-50%,-50%) scale(1.15); }
.vid-card.playing .vid-play-btn { background: var(--clr-primary); }
.vid-duration {
  position: absolute; bottom: 5px; right: 6px;
  background: rgba(0,0,0,.8); color: #fff; font-size: 10px;
  padding: 1px 5px; border-radius: 3px; font-weight: 600;
}
.vid-info { padding: .55rem .7rem; }
.vid-title { font-size: 12.5px; font-weight: 600; color: var(--clr-text); margin-bottom: 2px; line-height: 1.35; }
.vid-meta { font-size: 11px; color: var(--clr-text-muted); }
.vid-age-badge { color: var(--clr-primary); font-weight: 600; }

/* ── ACTIVITIES ───────────────────────────── */
.activity-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px; margin-bottom: 1.5rem;
}
.act-card {
  background: var(--clr-card); border: 1.5px solid var(--clr-border);
  border-radius: 14px; padding: 1rem; text-align: center; cursor: pointer;
  transition: all .15s;
}
.act-card:hover { border-color: var(--clr-primary); background: var(--clr-primary-light); transform: translateY(-2px); }
.act-icon { font-size: 2rem; margin-bottom: .4rem; }
.act-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.act-card p { font-size: 11px; color: var(--clr-text-muted); }
.activity-output {
  min-height: 80px; background: var(--clr-primary-light); border: 1.5px solid #bfdbfe;
  border-radius: 12px; padding: 1rem; text-align: center;
  font-size: 1.1rem; display: none; margin-top: .5rem; line-height: 1.6;
}

/* ── FLASH CARDS A-Z ──────────────────────── */
.tab-hint { font-size: 13px; color: var(--clr-text-muted); margin-bottom: .75rem; }
.flash-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2.5px solid #93c5fd; border-radius: 24px;
  min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  cursor: pointer; margin-bottom: 1rem; padding: 2rem;
  text-align: center; transition: transform .1s, box-shadow .1s;
  user-select: none;
}
.flash-card:active { transform: scale(.97); }
.flash-card:hover { box-shadow: 0 8px 24px rgba(59,130,246,.2); }
.flash-letter { font-size: 90px; font-weight: 800; color: var(--clr-primary); line-height: 1; }
.flash-word { font-size: 1.5rem; font-weight: 700; color: var(--clr-text); }
.flash-counter { font-size: 12px; color: var(--clr-primary); font-weight: 700; background: #fff; padding: 3px 12px; border-radius: 20px; }
.flash-dots { display: flex; gap: 5px; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.flash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clr-border); transition: background .2s; }
.flash-dot.done { background: var(--clr-primary); }
.flash-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
