/* ─────────────────────────────────────────────────────────────
   SquishyBliss — Squishy Crew Cartoons section
   Standalone stylesheet. The site's tailwind.css is a purged
   production build, so any NEW Tailwind class would not exist in
   it. Everything this section needs lives here instead — no
   Tailwind rebuild required to deploy.
   ───────────────────────────────────────────────────────────── */

/* Theatre backdrop: deeper than the rest of the site so the
   picture itself is the brightest thing on the page */
.toon-stage {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 214, 232, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(216, 180, 254, 0.45) 0%, transparent 45%),
    linear-gradient(160deg, #4a1035 0%, #6d1a4b 45%, #8f2260 100%);
}

/* Video frame — the "TV set" */
.toon-screen {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  border-radius: 1.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #fb7185 0%, #f472b6 50%, #ec4899 100%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.toon-screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  background: #2a0a1e;
  outline: none;
}

/* Reserve the 16:9 box before metadata loads so the page does not
   jump — protects Cumulative Layout Shift */
.toon-screen::before {
  content: "";
  display: block;
  padding-top: 56.25%;
  float: left;
  width: 0;
}
.toon-screen::after {
  content: "";
  display: table;
  clear: both;
}

/* Episode badge */
.toon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fde68a;
  color: #7c2d12;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 2px solid #f59e0b;
}

/* Episode card grid (works standalone, no Tailwind grid needed) */
.toon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .toon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .toon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.toon-card {
  background: #fff;
  border: 4px solid #fbcfe8;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .toon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 35px -14px rgba(236, 72, 153, 0.4);
  }
}

.toon-card--soon {
  background: #fdf2f8;
  border-style: dashed;
  border-color: #f9a8d4;
}

.toon-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #db2777;
  margin-bottom: 0.4rem;
}

.toon-card p {
  color: #be185d;
  line-height: 1.6;
}

/* Character chips */
.toon-cast {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.toon-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 3px solid #f9a8d4;
  color: #be185d;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  min-height: 44px; /* touch target */
}

.toon-chip span[aria-hidden] { font-size: 1.25rem; }

/* Parent note strip */
.toon-parents {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 3px dashed #f59e0b;
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: #78350f;
}

/* Buttons that are readable on the dark stage */
.toon-btn {
  display: inline-block;
  background: #fff;
  color: #be185d;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 1rem;
  min-height: 44px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.toon-btn:hover { background: #fce7f3; transform: translateY(-2px); }
.toon-btn:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }

/* Visible keyboard focus everywhere in this section */
.toon-stage a:focus-visible,
.toon-card a:focus-visible,
.toon-chip:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .toon-card, .toon-btn { transition: none; }
}
