/* Long Cartoons Catalog — enhanced version
   Built on top of the existing design system (cards.css, style.css, animations.css).
   Uses the site's blue palette: primary #6b97c4, teal #2f4a6b, navy #1e3350.
   All new rules are scoped under .page-cartoons-long to avoid leaking. */


/* ── Page background wash ── */
.page-cartoons-long {
  background: linear-gradient(180deg, #eaf1f9 0%, #f8fafb 320px, #fff 100%);
  min-height: 80vh;
}


/* ── Hero card (extends .card-elevated) ── */
.cl-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f4a6b 0%, #1e3350 55%, #152a42 100%);
  color: #fff;
  border-radius: var(--border-radius-card);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-brand-lg);
}

.cl-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(107, 151, 196, 0.35), transparent 60%);
  pointer-events: none;
}

.cl-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.cl-hero__sub {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  position: relative;
  z-index: 1;
}

/* ── Category pills inside hero ── */
.cl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.cl-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-round);
  font-size: 0.85rem;
  font-weight: 800;
  color: #bcd1e8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: var(--transition-smooth);
  min-height: var(--touch-target-min);
}

.cl-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cl-pill.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(107, 151, 196, 0.3);
}


/* ── Series card enhancements (on top of .card .card-blog .card-interactive) ── */
.page-cartoons-long .card.card-blog .card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eaf1f9 0%, #dde7f2 100%);
}

.page-cartoons-long .card.card-blog .card-image img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-cartoons-long .card.card-blog:hover .card-image img {
  transform: scale(1.06);
}

/* Play overlay on card hover */
.cl-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: inherit;
}

.card.card-blog:hover .cl-play-overlay {
  opacity: 1;
}

.cl-play-overlay__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--transition-bounce);
}

.card.card-blog:hover .cl-play-overlay__btn {
  transform: scale(1.1);
}

.cl-play-overlay__btn i {
  font-size: 20px;
  color: var(--color-primary);
  margin-left: 3px;
}

/* Episode count badge inside card body */
.cl-episode-count {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cl-episode-count i {
  font-size: 0.85rem;
}


/* ── Empty state ── */
.cl-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cl-empty__icon {
  font-size: 4rem;
  color: #bcd1e8;
  margin-bottom: 1rem;
}

.cl-empty__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.cl-empty__desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  margin-bottom: 1.5rem;
}


/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .cl-hero {
    padding: 2rem 1.5rem;
  }

  .cl-hero__title {
    font-size: 1.75rem;
  }

  .cl-pill {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}
