/*
 * Discover landing page — discover.php
 * Region selection cards: United States · Medellín · Worldwide
 */

/* ── Page wrap ───────────────────────────────────────────────────────────────── */

.discover-wrap {
  padding: var(--sp-8, 3rem) var(--sp-6, 1.5rem) var(--sp-12, 6rem);
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.disc-hero {
  max-width: 600px;
  margin: 0 auto var(--sp-10, 5rem);
  text-align: center;
}

.disc-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: var(--sp-4, 1rem);
  line-height: 1.08;
}

.disc-hero .sub {
  font-size: var(--text-md, 1rem);
  color: var(--muted, #888);
  max-width: 440px;
  margin: 0 auto;
}

/* ── Card grid ───────────────────────────────────────────────────────────────── */

.disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5, 1.25rem);
  max-width: 900px;
  margin: 0 auto;
}

/* ── Individual card ─────────────────────────────────────────────────────────── */

.disc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4, 1rem);
  padding: var(--sp-7, 2rem) var(--sp-6, 1.5rem) var(--sp-5, 1.25rem);
  background: var(--bone-2, #f5f5f0);
  border: 1px solid var(--line, #e0e0da);
  border-radius: var(--rad-lg, 16px);
  text-decoration: none;
  color: var(--ink, #111);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.disc-card:hover {
  border-color: var(--accent, #6c47ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -8px color-mix(in oklab, var(--accent, #6c47ff) 25%, transparent);
}

.disc-card:focus-visible {
  outline: 2px solid var(--accent, #6c47ff);
  outline-offset: 3px;
}

/* Accent-highlighted card (Medellín — primary CTA) */
.disc-card--accent {
  border-color: color-mix(in oklab, var(--accent, #6c47ff) 40%, var(--line, #e0e0da));
  background: color-mix(in oklab, var(--accent, #6c47ff) 4%, var(--bone-2, #f5f5f0));
}

.disc-card--accent:hover {
  background: color-mix(in oklab, var(--accent, #6c47ff) 7%, var(--bone-2, #f5f5f0));
}

/* ── Card icon (SVG preview) ─────────────────────────────────────────────────── */

.disc-icon {
  width: 120px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disc-icon svg {
  width: 100%;
  height: 100%;
}

/* ── Card body ───────────────────────────────────────────────────────────────── */

.disc-body {
  text-align: center;
  flex: 1;
}

.disc-body h2 {
  font-family: var(--font-serif, serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
  margin-bottom: var(--sp-2, 0.5rem);
}

.disc-body p {
  font-size: var(--text-sm, 0.875rem);
  color: var(--muted, #888);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Card CTA link ───────────────────────────────────────────────────────────── */

.disc-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1, 0.25rem);
  padding: 10px 18px;
  background: var(--bone-3, #e8e8e2);
  border: 1px solid var(--line, #e0e0da);
  border-radius: var(--rad-full, 999px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--ink, #111);
  transition: background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.disc-card:hover .disc-cta {
  background: var(--accent, #6c47ff);
  border-color: var(--accent, #6c47ff);
  color: var(--accent-ink, #fff);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .disc-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .disc-icon {
    width: 90px;
    height: 56px;
  }
}

/* ── World page grid ─────────────────────────────────────────────────────────── */

.world-wrap {
  padding: var(--sp-8, 3rem) var(--sp-6, 1.5rem) var(--sp-10, 5rem);
}

.world-hero {
  max-width: 600px;
  margin: 0 auto var(--sp-8, 3rem);
  text-align: center;
}

.world-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: var(--sp-4, 1rem);
  line-height: 1.08;
}

.world-hero .sub {
  font-size: var(--text-md, 1rem);
  color: var(--muted, #888);
  max-width: 440px;
  margin: 0 auto;
}

.world-empty {
  text-align: center;
  padding: var(--sp-12, 6rem) 0;
  color: var(--muted, #888);
}

.world-empty .globe-icon {
  font-size: 4rem;
  margin-bottom: var(--sp-4, 1rem);
  opacity: 0.4;
}

.world-empty p {
  font-size: var(--text-md, 1rem);
  margin-bottom: var(--sp-3, 0.75rem);
}

.world-empty .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm, 0.875rem);
  color: var(--accent, #6c47ff);
  text-decoration: none;
  margin-top: var(--sp-4, 1rem);
}

.world-empty .back-link:hover {
  text-decoration: underline;
}
