/* ==========================================================================
   XPLOROO · Homepage — Experience Showcase
   experience-showcase.css — "Meet your favorites. Live the experience."

   Renders the real, bookable influencer experiences (Podcast, Meet & Greet)
   that live in public.influencer_services. Markup is built at runtime by
   js/experience-showcase.js; this file only styles it.

   Design note — the card is an ACCESS PASS, not a product card. Xploroo
   sells access: to a trip, and to a person. The pass is the artifact of
   access, so each creator is presented as one — a photo, a punched
   perforation line, and a stub carrying the price in the mono face used
   for ticketed values. That perforation is the section's one flourish;
   everything around it stays on existing tokens with no new palette.

   Tokens only — no hard-coded colors, sizes, radii or timings.
   ========================================================================== */

.xp-showcase {
  position: relative;
  padding-block: var(--home-section-gap); /* matches every homepage section */
}

.xp-showcase__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* -------------------------------------------------------------------------
   Section head
   ------------------------------------------------------------------------- */

.xp-showcase__head {
  margin-bottom: var(--space-7);
}

.xp-showcase__eyebrow {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.xp-showcase__title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
}

.xp-showcase__title span {
  display: block;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Category tabs
   ------------------------------------------------------------------------- */

.xp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.xp-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--dur-base, 220ms) var(--ease-out, ease),
              border-color var(--dur-base, 220ms) var(--ease-out, ease),
              background-color var(--dur-base, 220ms) var(--ease-out, ease);
}

.xp-tab:hover {
  color: var(--color-text-strong);
  border-color: var(--color-border-strong);
}

.xp-tab:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.xp-tab[aria-selected="true"] {
  color: var(--color-text-strong);
  border-color: var(--color-border-brand);
  background: var(--color-primary-subtle);
}

.xp-tab__icon {
  font-size: var(--fs-md);
  line-height: 1;
}

.xp-tab__count {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--color-text-subtle);
}

/* -------------------------------------------------------------------------
   Panel — intro rail + pass grid
   ------------------------------------------------------------------------- */

.xp-panel {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 900px) {
  .xp-panel {
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: var(--space-9);
    align-items: start;
  }
}

.xp-panel__intro-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-text-strong);
}

.xp-panel__intro-desc {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.xp-panel__availability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.xp-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

/* -------------------------------------------------------------------------
   Pass grid — cards keep a natural width instead of stretching, so a
   single available creator still reads as a deliberate spotlight rather
   than one card awkwardly spanning the row.
   ------------------------------------------------------------------------- */

.xp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 288px));
  gap: var(--space-5);
}

/* -------------------------------------------------------------------------
   The pass
   ------------------------------------------------------------------------- */

.xp-pass {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base, 220ms) var(--ease-out, ease),
              border-color var(--dur-base, 220ms) var(--ease-out, ease),
              box-shadow var(--dur-base, 220ms) var(--ease-out, ease);
}

.xp-pass:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-brand);
  box-shadow: var(--shadow-lg);
}

.xp-pass:focus-within {
  border-color: var(--color-border-brand);
}

.xp-pass__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 0 0;
  background: var(--color-surface-inset);
}

.xp-pass__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Avatar fallback when a creator has no photo. */
.xp-pass__img-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-disabled);
}

.xp-pass__img-fallback svg {
  width: 40%;
  height: 40%;
}

.xp-pass__type {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-overlay);
  backdrop-filter: blur(var(--color-backdrop-blur));
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* ---- perforation: the section's signature detail -------------------------
   Two notches punched out of the card edges, joined by a dashed rule —
   the fold line of a real pass. The notch fill is the page canvas, so the
   cut reads as genuinely punched through the card. */

.xp-pass__perf {
  position: relative;
  height: 0;
  border-top: 1px dashed var(--color-border);
  margin-inline: var(--space-5);
}

.xp-pass__perf::before,
.xp-pass__perf::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  transform: translateY(-50%);
}

.xp-pass__perf::before { left: calc(var(--space-5) * -1 - 9px); }
.xp-pass__perf::after  { right: calc(var(--space-5) * -1 - 9px); }

.xp-pass__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
}

.xp-pass__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-text-strong);
}

.xp-pass__niche {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: var(--color-text-subtle);
}

.xp-pass__meta {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  color: var(--color-text-muted);
}

.xp-pass__price {
  margin: var(--space-2) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-strong);
}

.xp-pass__price small {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.xp-pass__cta {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-on-primary);
  text-decoration: none;
  min-height: 44px; /* touch target */
  transition: background var(--dur-base, 220ms) var(--ease-out, ease);
}

.xp-pass__cta:hover { background: var(--gradient-brand-hover); }

.xp-pass__cta:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.xp-pass__cta svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* -------------------------------------------------------------------------
   Empty state — a category with nothing open right now
   ------------------------------------------------------------------------- */

.xp-empty {
  padding: var(--space-7);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* -------------------------------------------------------------------------
   Mobile — stack everything. Cards go full width in a single column, so
   there is no horizontal scroll container and nothing can overflow.
   ------------------------------------------------------------------------- */

@media (max-width: 599px) {
  .xp-grid {
    grid-template-columns: 1fr;
  }

  .xp-tabs {
    gap: var(--space-2);
  }

  .xp-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: var(--space-4);
  }

  /* Tighten the intro rail so the bookable card is reachable sooner —
     on a phone the copy above it is context, not the point. */
  .xp-panel {
    gap: var(--space-5);
  }

  .xp-panel__intro-title {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-2);
  }

  .xp-panel__intro-desc {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xp-pass,
  .xp-tab,
  .xp-pass__cta {
    transition: none;
  }

  .xp-pass:hover {
    transform: none;
  }
}
