/* =============================================================
   Jiminy — Discover Page Styles (v2 rebuild)
   /css/discover.css

   Discover-page-only styles. Selectors scoped to
   #page-discover / .discover-* so editing this file cannot
   accidentally affect other pages.
   Load LAST, after variables.css and shared.css, only on
   discover.html.
============================================================= */

#page-discover.discover-page-v2 {
  background-color: #071026;
  background-image: url("/images/jiminy-explorer-background.png");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  margin: -24px -14px 0;
  padding: 32px 14px 40px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

#page-discover.discover-page-v2 > * {
  position: relative;
  z-index: 1;
}

/* ── HERO ─────────────────────────────────────────────────── */
.discover-hero {
  text-align: center;
  padding: 28px 24px 32px;
  max-width: 640px;
  margin: 0 auto 24px;
  background: rgba(251,246,238,.94);
  border: 1px solid rgba(7,31,65,.14);
  border-radius: 26px;
  box-shadow: 0 12px 36px rgba(7,31,65,.18);
}

.discover-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.discover-kicker-line {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,184,37,.55));
}
.discover-kicker:has(.discover-kicker-line:last-of-type) .discover-kicker-line:last-of-type {
  background: linear-gradient(90deg, rgba(244,184,37,.55), transparent);
}
.discover-kicker-star {
  color: #b8860b;
  font-size: 13px;
}
.discover-kicker-text {
  color: #b8860b;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.discover-title {
  font-family: Georgia, serif;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

.discover-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 460px;
}

/* ── CARD LIST ────────────────────────────────────────────── */
.discover-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

/* ── CARD ─────────────────────────────────────────────────── */
.discover-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #0d2347 0%, #0a1c3d 100%);
  border: 1px solid rgba(244,184,37,.32);
  border-radius: 22px;
  padding: 18px 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  min-height: 120px;
}
.discover-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244,184,37,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.36);
}
.discover-card:active {
  transform: translateY(0);
}

/* Icon badge */
.discover-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(244,184,37,.55);
  background: rgba(244,184,37,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.discover-card-icon svg {
  width: 27px;
  height: 27px;
}
.discover-card-icon--hopper {
  overflow: hidden;
  background: rgba(244,184,37,.1);
}
.discover-hopper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.discover-hopper-fallback {
  font-size: 26px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Content */
.discover-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.discover-card-title {
  font-family: Georgia, serif;
  font-size: clamp(18px, 3.4vw, 21px);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.discover-card-description {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.45;
  margin: 0;
  max-width: 46ch;
}
.discover-card-pill {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 3px;
  border: 1px solid rgba(244,184,37,.5);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(244,184,37,.06);
  white-space: nowrap;
}

/* Visual panel (right-side image/gradient area) */
.discover-card-visual {
  width: 96px;
  height: 88px;
  border-radius: 16px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: none; /* hidden on narrow phones, shown from small-tablet up */
}
.discover-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,16,38,0) 40%, rgba(7,16,38,.15) 100%);
}
.discover-card-visual--passport   { background: linear-gradient(135deg, #1d3a6e 0%, #0d2347 100%); }
.discover-card-visual--quest      { background: linear-gradient(135deg, #1a3a2a 0%, #0d2347 100%); }
.discover-card-visual--disneyland {
  background-image: url("/assets/heroes/dl-home-hero.jpeg");
  background-size: cover;
  background-position: center;
  background-color: #2d4a8e;
}
.discover-card-visual--wdw        { background: linear-gradient(135deg, #3a3a5a 0%, #6a5a8a 100%); }
.discover-card-visual--cruise     { background: linear-gradient(135deg, #1d3a5e 0%, #0a2440 100%); }

/* Chevron */
.discover-card-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(244,184,37,.4);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.discover-card-chevron svg {
  width: 15px;
  height: 15px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media(min-width: 520px) {
  .discover-card-visual { display: block; }
}

@media(min-width: 760px) {
  .discover-card { padding: 22px 24px; grid-template-columns: auto 1fr auto auto; gap: 20px; }
  .discover-card-visual { width: 220px; height: 100px; }
}

@media(max-width: 480px) {
  #page-discover.discover-page-v2 { margin: -24px -14px 0; padding: 24px 10px 32px; }
  .discover-card { grid-template-columns: auto 1fr auto; padding: 16px; gap: 12px; }
  .discover-card-visual { display: none; }
  .discover-card-icon { width: 48px; height: 48px; }
  .discover-card-icon svg { width: 23px; height: 23px; }
  .discover-card-chevron { width: 26px; height: 26px; }
}

/* Ensure footer-note reads correctly on the dark background */
#page-discover .footer-note {
  color: rgba(255,255,255,.4);
  margin-top: 8px;
}
