/* =========================================================================
   CREATOR DECK PAGE STYLES (+ print layout for "Save as PDF")
   ========================================================================= */

/* ---------- Intro: text on top of the big faded metal logo ---------- */
.deck-intro {
  --backdrop-opacity: 0.22; /* how visible the logo is: 0 = hidden, 1 = solid */

  position: relative;
  isolation: isolate;       /* keeps the backdrop behind the text */
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 420px;
  margin-bottom: 2.5rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--brand-purple) 28%, transparent), transparent),
    var(--surface);
}

.deck-intro__backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(1000px, 150%);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: var(--backdrop-opacity);
  pointer-events: none;
}

.deck-intro__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.6); /* keeps text readable over the logo */
}

.deck-intro__content .lead { color: var(--text); }
.deck-intro__content .button-row { justify-content: center; }

/* Business email on a gold pill (top of the deck + contact box).
   Display only, not a link, so there's no hover or click effect. */
.email-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-shadow: none;
  user-select: all;      /* one click selects the whole address for copying */
  word-break: break-all; /* long emails wrap on small phones */
}

.deck-intro__avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

.deck-section {
  margin-bottom: 2.5rem;
}

/* Platform stat cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.platform-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* stats sit side by side */
  gap: 1rem;
  border-top: 4px solid var(--accent-2);
}

.platform-card--youtube { border-top-color: var(--youtube); }
.platform-card--twitch  { border-top-color: var(--twitch); }

.platform-card__head {
  grid-column: 1 / -1; /* header spans the full card width */
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.platform-card__head svg { width: 32px; height: 32px; }
.platform-card--youtube .platform-card__head svg { color: var(--youtube); }
.platform-card--twitch  .platform-card__head svg { color: var(--twitch); }
.platform-card__head div { display: flex; flex-direction: column; line-height: 1.3; }

/* Audience bars */
.bar-list { display: grid; gap: 0.75rem; max-width: 640px; }

.bar {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  align-items: center;
  gap: 0.75rem;
}

.bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.bar__value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Partnership options */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.service-card p { color: var(--text-muted); }
.service-card__price { margin: 0; color: var(--accent) !important; font-weight: 800; }

/* Past partners */
.partner-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.partner {
  display: grid;
  place-items: center;
  min-width: 120px;
  height: 64px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.partner img { max-height: 44px; width: auto; }

/* Contact box */
.deck-contact { text-align: center; }
.deck-contact .social-row { justify-content: center; margin-top: 1rem; }

/* ---------- Print / Save as PDF ---------- */
@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #eee;
    --border: #ccc;
    --text: #111;
    --text-muted: #555;
    --accent: #b8860b;
  }

  .site-header,
  .site-footer,
  .no-print,
  .deck-contact .social-row { display: none !important; }

  .card, .deck-section { break-inside: avoid; }

  /* White logo would vanish on white paper — print it black (still faded) */
  .deck-intro__backdrop { filter: invert(1); }
  .deck-intro__content { text-shadow: none; }
}
