/* ========================================
   Explore Creatures — HoHeTo Kyle
   Figma specs extracted from Explore Page
   ======================================== */

/* ── Page Base ── */
html {
  scroll-behavior: smooth;
  overflow: auto !important;
  height: auto !important;
}
body {
  font-family: 'Instrument Sans', sans-serif;
  background: #ffffff;
  color: #111111;
  overflow: auto !important;
  height: auto !important;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

:root {
  --color-primary:      #08D2C1;
  --color-primary-dark: #06b5a6;
  --color-primary-glow: rgba(8, 210, 193, 0.35);
  --color-text-dark:    #111111;
  --color-text-body:    #333333;
  --color-text-muted:   #6D6D6D;
  --font-display:       'Exo 2', sans-serif;
  --font-body:          'Instrument Sans', sans-serif;
  --nav-height:         76px;
  --max-width:          1200px;
  --transition-normal:  0.25s ease;
  --transition-fast:    0.15s ease;
}

/* ══════════════════════════════════════
   PAGE HERO BANNER
   Figma: Dark teal nebula bg — same as about.html
   Title: "Discover Creatures Created By The Community"
   Subtitle: "Explore thousands of unique designs born from sound, images, and videos around the world"
   ══════════════════════════════════════ */
.page-hero {
  position: relative;
  width: 100%;
  height: 351px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #041a18;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Subtle darkening overlay */
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 20, 18, 0.35);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: var(--max-width);
  padding: 0 40px;
}

/* Figma: Title — Exo 2 Bold, large white, 2 lines */
.page-hero__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0;
}

/* Figma: Subtitle — Instrument Sans, ~16px, white 85% opacity */
.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 680px;
  text-align: center;
  margin: 0;
}

/* ══════════════════════════════════════
   BREADCRUMB
   Figma: "Home > Explore Creatures"
   Instrument Sans Medium 16px, color #4B4B4B
   ══════════════════════════════════════ */
.breadcrumb {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.breadcrumb__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: #4B4B4B;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb__link:hover {
  color: var(--color-primary);
}
.breadcrumb__sep {
  display: flex;
  align-items: center;
  color: #4B4B4B;
  font-size: 14px;
}
.breadcrumb__current {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: #4B4B4B;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .page-hero { height: 260px; }
  .page-hero__title { font-size: 30px; }
  .page-hero__subtitle { font-size: 14px; }
  .breadcrumb__inner { padding: 0 24px; }
}

@media (max-width: 480px) {
  .page-hero__title { font-size: 24px; }
}

/* ══════════════════════════════════════
   TRENDING CREATURES SECTION
   Figma: White bg section below breadcrumb
   Header row: "Trending Creatures" left (Exo 2 Bold ~24px #111)
               "See More" teal pill button right
   Grid: 4 cols × 2 rows — 8 creature card images
   Card: rounded ~15px, slight hover lift, no text overlay (text baked into images)
   Padding: ~48px top, ~60px bottom
   ══════════════════════════════════════ */
.trending-creatures {
  background: #ffffff;
  padding: 48px 0 64px;
}

.trending-creatures__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section header row ── */
.trending-creatures__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* Figma: "Trending Creatures" — Exo 2 Bold ~24px, #111111, left-aligned */
.trending-creatures__heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
  margin: 0;
}

/* Figma: "See More" — teal pill button, right-aligned */
.trending-creatures__see-more {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--color-primary);
  color: #041a1a;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
  white-space: nowrap;
}
.trending-creatures__see-more:hover {
  background: #0ae0cd;
  box-shadow: 0 6px 20px rgba(8, 210, 193, 0.45);
  transform: translateY(-2px);
  color: #041a1a;
}
.trending-creatures__see-more:active {
  transform: translateY(0);
}

/* ── Cards Grid: 4 columns × 2 rows ── */
/* Figma: uniform 4-col grid, cards have equal width, slight vertical gap */
.trending-creatures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Individual card ── */
/* Cards are image-only — text is baked into the card image (same pattern as carousel) */
.creature-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 302 / 405;   /* Figma card ratio W:302.14 H:405.09 */
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.creature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.creature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 15px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .trending-creatures__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .trending-creatures {
    padding: 36px 0 48px;
  }
  .trending-creatures__inner {
    padding: 0 24px;
  }
  .trending-creatures__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .trending-creatures__heading {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .trending-creatures__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .trending-creatures__heading {
    font-size: 18px;
  }
  .trending-creatures__see-more {
    font-size: 12px;
    padding: 7px 16px;
  }
}

/* ══════════════════════════════════════
   OUR MOST POPULAR CHARACTERS SECTION
   Figma: Full teal (#08D2C1) background
   Header: heading left + "See More" white pill right
   Row 1: 4-col grid — dragon, whale, mushroom, tortoise
   Row 2: 3-col grid — bear, pufferfish, fox
   Cards: white bg, rounded ~12px, image fills card with padding
   Section padding: ~48px top/bottom
   ══════════════════════════════════════ */
.popular-characters {
  background: #08D2C1;
  padding: 48px 0 56px;
}

.popular-characters__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Header row ── */
.popular-characters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Figma: "Our Most Popular Characters" — Exo 2 Bold ~24px, dark #0D0D0D */
.popular-characters__heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #0D0D0D;
  line-height: 1.2;
  margin: 0;
}

/* Figma: "See More" — white pill button on teal bg */
.popular-characters__see-more {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: #ffffff;
  color: #0D0D0D;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
  white-space: nowrap;
}
.popular-characters__see-more:hover {
  background: #f0fffe;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.popular-characters__see-more:active {
  transform: translateY(0);
}

/* ── Card rows ── */
.popular-characters__row {
  display: grid;
  gap: 16px;
}

/* Row 1: 4 equal columns */
.popular-characters__row--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Row 2: 3 equal columns */
.popular-characters__row--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Individual popular card ── */
/* Figma: white bg card, rounded ~12px, image inside with breathing room */
.popular-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  cursor: pointer;
}

.popular-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.popular-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .popular-characters__row--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .popular-characters__row--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .popular-characters {
    padding: 36px 0 44px;
  }
  .popular-characters__inner {
    padding: 0 24px;
    gap: 14px;
  }
  .popular-characters__heading {
    font-size: 20px;
  }
  .popular-characters__row--4,
  .popular-characters__row--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .popular-characters__heading {
    font-size: 17px;
  }
  .popular-characters__see-more {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* ══════════════════════════════════════
   CTA BANNER SECTION
   Copied 1:1 from about.css
   Dark teal rounded container on #F5F5F5 background
   ══════════════════════════════════════ */
.cta-banner-section {
  background: #F5F5F5;
  padding: 55px 40px 72px;
}
.cta-banner {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cta-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 18, 16, 0.5);
}
.cta-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 52px 40px;
}
.cta-banner__heading {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}
.cta-banner__subtext {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 4px;
}
.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #041a1a;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}
.cta-banner__btn:hover {
  background: #0ae0cd;
  box-shadow: 0 6px 24px rgba(8, 210, 193, 0.5);
  transform: translateY(-2px);
  color: #041a1a;
}
.cta-banner__btn:active {
  transform: translateY(0);
}
.cta-banner__btn-icon {
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 768px) {
  .cta-banner__heading { font-size: 22px; }
  .cta-banner__subtext { font-size: 14px; }
  .cta-banner__content { padding: 36px 24px; }
  .cta-banner-section { padding: 40px 20px 56px; }
}
@media (max-width: 480px) {
  .cta-banner { border-radius: 14px; }
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */

/* Scroll Reveal Base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page Entry */
@keyframes pageEntry {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero__content > * {
  animation: pageEntry 0.8s ease-out forwards;
  opacity: 0;
}

.page-hero__title { animation-delay: 0.1s; }
.page-hero__subtitle { animation-delay: 0.3s; }

/* Scale on Hover for cards */
.creature-card, .popular-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

.creature-card:hover, .popular-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.creature-card img, .popular-card img {
  transition: transform 0.5s ease;
}

.creature-card:hover img {
  transform: scale(1.05);
}

.popular-card:hover img {
  transform: scale(1.1) rotate(2deg);
}