/* =============================================================
   page-creator.css : Nysterys Media
   The creator page's own styles: the button back to the roster and the hero.
   Loaded by every creator page (kym.html, mys.html) after site/global.css, whose
   tokens it reads and whose reduced-motion block covers the animations here.
   The Audience Insights cards under the hero are site/audience.css.
   ============================================================= */

/* ─── Navigation ─────────────────────────────────────── */

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  border: 1px solid var(--orange);
  padding: 0.5rem 1.25rem;
  transition: background 0.2s, color 0.2s;
}

.nav-back:hover {
  background: var(--orange);
  color: var(--black);
}

.nav-back svg {
  width: 12px;
  height: 12px;
}

/* ─── Hero ───────────────────────────────────────────── */
.creator-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.hero-photo-wrap {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-photo-wrap img {
  width: 100%;
  height: 115%; /* extra height for parallax travel */
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.85);
  will-change: transform;
  transform-origin: top center;
}

/* The rule above outranks the browser's own [hidden] { display: none }, so without this a
   photo that failed to load keeps its box and paints the alt text as a broken image.
   site/page-creator.js sets the attribute when the photo fails, and relies on it hiding. */
.hero-photo-wrap img[hidden] {
  display: none;
}

/* Gradient to blend photo into the dark right panel */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  transparent 60%, var(--black) 100%),
    linear-gradient(to top,    var(--black) 0%,  transparent 30%);
}

.hero-info {
  padding: 8rem 4rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-tag {
  font-size: var(--font-size-11);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: #aaaaaa;
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

/* Followers / likes / engagement row */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.hero-stat-val {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--orange);
  line-height: 1;
}

.hero-stat-lbl {
  font-size: var(--font-size-11);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Per-platform breakdown. Quiet by design: the orange hero figures above
   are the one moment of heat, so this reads as supporting evidence rather
   than competing for the same glance. Mirrors the roster card treatment. */
.hero-platforms {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 2.5rem;
  max-width: 30rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

.hero-platforms-lbl {
  font-size: var(--font-size-11);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.7rem;
}

.hero-platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-platform {
  display: grid;
  grid-template-columns: 13px 4.75rem 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-platform-icon {
  display: inline-flex;
  color: var(--dim);
}

.hero-platform-icon svg {
  width: 13px;
  height: 13px;
}

.hero-platform-name {
  font-size: var(--font-size-11);
  letter-spacing: 0.1em;
  /* INSTAGRAM at 11px is 70px here, inside the 4.75rem column with room to spare. */
  text-transform: uppercase;
  color: var(--dim);
}

/* Min-widths align the columns between rows. Deliberately not subgrid:
   where subgrid is unsupported the declaration is dropped and every figure
   stacks onto its own line, a far worse failure than a little drift. */
.hero-platform-figs {
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.fig-followers { min-width: 3rem; }
.fig-views     { min-width: 6.2rem; }

.hero-platform-sep {
  color: #3d3d3d;
  padding: 0 0.45rem;
}

@media (max-width: 700px) {
  /* The icon already identifies the platform, so the name column yields
     first and the figures keep their width. */
  .hero-platform {
    grid-template-columns: 13px 1fr;
  }

  .hero-platform-name {
    display: none;
  }
}

.hero-socials {
  display: flex;
  /* Without this the row's min-content is 418px, and .hero-info is a grid item whose
     default min-width: auto refuses to shrink below it, so the whole page scrolls
     sideways on a phone. */
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.95s forwards;
}

.hero-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  transition: border-color 0.2s, color 0.2s;
}

.hero-social:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-social svg {
  width: 13px;
  height: 13px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {

  .creator-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo-wrap {
    height: 60vw;
    min-height: 280px;
  }

  /* On mobile the photo sits above, so adjust gradient */
  .hero-photo-overlay {
    background: linear-gradient(to top, var(--black) 0%, transparent 50%);
  }

  .hero-info {
    padding: 2.5rem 1.5rem 3rem;
  }

}
