/* ============================================================
 * bio-public.css — editorial link-in-bio layout
 *
 * Used by:
 *   - public/bio.php             (user mirror host /bio page)
 *   - includes/bio_editor.php    (right-column live preview)
 *
 * All selectors are namespaced with `.bp-` so the same stylesheet
 * can load inside the editor (where the rest of the admin chrome
 * lives) without colliding with bio.css / landing.css.
 *
 * Source-of-truth markup: uploads/bio-public-editorial.html
 * Token references match autoteambuilder/public/assets/theme.css.
 * ============================================================ */

.bp-scope{
  /* Theme-driven tokens, default to Editorial cream.
   * PHP renderer + editor JS rewrite these on `.bp-scope` via the
   * data-mode attr or theme picks. */
  --bp-bg:#fbfaf6;
  --bp-surface:#f5f1e8;
  --bp-surface-2:#fbfaf6;
  --bp-banner:#0b3d2e;
  --bp-banner-tone:rgba(255,255,255,0.12);
  --bp-on-surface:#1a1a1a;
  --bp-on-surface-mute:#5f6d62;
  --bp-accent:#0b3d2e;
  --bp-accent-hover:#b08049;
  --bp-on-accent:#fff8e8;

  --bp-ring:rgba(0,0,0,0.08);
  --bp-ring-2:rgba(0,0,0,0.12);
  --bp-hairline:rgba(0,0,0,0.06);
  --bp-hairline-2:rgba(0,0,0,0.1);
  --bp-hairline-3:rgba(0,0,0,0.16);
  --bp-shadow-soft:0 1px 2px rgba(11,36,25,.03), 0 8px 24px -10px rgba(11,36,25,.08);
}

/* DARK MODE — only flip the GENERIC dark-mode tokens (text-on-surface,
 * hairlines, rings, banner-tone, surface-2). Theme-specific values
 * (--bp-bg, --bp-surface, --bp-banner, --bp-accent, --bp-accent-hover,
 * --bp-on-accent) are set per-theme by the PHP <style> block; overriding
 * them here would collapse every dark theme to the same colors. */
.bp-scope[data-mode="dark"],
body[data-mode="dark"] .bp-scope{
  --bp-surface-2:#1f2420;
  --bp-banner-tone:rgba(255,255,255,0.08);
  --bp-on-surface:#f5f1e8;
  --bp-on-surface-mute:#9aa69d;
  --bp-hairline:rgba(255,255,255,0.06);
  --bp-hairline-2:rgba(255,255,255,0.1);
  --bp-hairline-3:rgba(255,255,255,0.18);
  --bp-ring:rgba(255,255,255,0.08);
  --bp-ring-2:rgba(255,255,255,0.14);
}

/* Page surface — applied to <body data-mode="..."> on the public
 * render; in the editor preview the .phone frame stays styled by
 * bio.css. Using .bp-page lets bio.php set the page bg without
 * fighting the editor's body styles. */
.bp-page{
  background:var(--bp-bg);
  color:var(--bp-on-surface);
  font-family:'Geist',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  transition:background .35s ease, color .25s ease;
  min-height:100vh;
  min-height:100dvh;
  overflow-x:hidden;
  display:flex;flex-direction:column;align-items:center;
  padding:24px 18px 36px;
}
@media (max-width:480px){ .bp-page{padding:14px 12px 28px} }

.bp-scope a{color:inherit;text-decoration:none}
.bp-scope ::selection{background:#0b3d2e;color:#fff8e8}

.bp-wrap{
  width:100%;max-width:420px;
  display:flex;flex-direction:column;gap:18px;
}

/* ============== HERO CARD ============== */
.bp-hero{
  position:relative;
  background:var(--bp-surface);
  border:1px solid var(--bp-ring);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--bp-shadow-soft);
  transition:background .35s, border-color .25s, box-shadow .25s;
}

.bp-banner{
  height:118px;
  background:var(--bp-banner);
  position:relative;
  overflow:hidden;
}
.bp-banner::after{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--bp-banner-tone), transparent 70%),
    radial-gradient(ellipse 65% 55% at 0% 100%, rgba(0,0,0,0.10), transparent 70%);
  pointer-events:none;
}
.bp-banner::before{
  content:"";
  position:absolute;inset:0;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), rgba(255,255,255,0.05) 50%, transparent calc(50% + 0.5px), transparent 100%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0, transparent 30%);
  pointer-events:none;
  opacity:0.6;
}

.bp-updated-chip{
  position:absolute;
  top:14px;right:14px;
  z-index:2;
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 9px 5px 8px;
  border-radius:99px;
  background:rgba(255,255,255,0.16);
  backdrop-filter:saturate(180%) blur(8px);
  -webkit-backdrop-filter:saturate(180%) blur(8px);
  border:1px solid rgba(255,255,255,0.22);
  font-family:'Geist Mono',monospace;
  font-size:9.5px;
  color:rgba(255,255,255,0.92);
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:500;
}
.bp-updated-chip .bp-pulse{
  width:6px;height:6px;border-radius:50%;
  background:#9be7b8;
  box-shadow:0 0 0 0 rgba(155,231,184,.55);
  animation:bp-livepulse 2.4s ease-in-out infinite;
}
@keyframes bp-livepulse{0%,100%{box-shadow:0 0 0 0 rgba(155,231,184,.5)}50%{box-shadow:0 0 0 6px rgba(155,231,184,0)}}

.bp-av-wrap{display:flex;justify-content:center;margin-top:-48px;position:relative;z-index:3}
.bp-av{
  width:96px;height:96px;
  border-radius:50%;
  background:linear-gradient(135deg, #1a5e4a, #0b3d2e);
  color:#fff8e8;
  display:grid;place-items:center;
  font-family:'Newsreader',serif;font-style:italic;font-weight:500;font-size:42px;
  border:4px solid var(--bp-surface);
  box-shadow:0 8px 18px -8px rgba(11,36,25,.45), inset 0 2px 0 rgba(255,255,255,.22);
  transition:border-color .35s, background .35s;
  overflow:hidden;
}
.bp-av img{width:100%;height:100%;object-fit:cover;display:block}

.bp-ident{padding:14px 28px 0;text-align:center}
.bp-ident .bp-nm{
  font-family:'Newsreader',serif;
  font-weight:500;
  font-size:28px;
  line-height:1.1;
  letter-spacing:-0.02em;
  color:var(--bp-on-surface);
  margin:0;
}
.bp-ident .bp-nm em{font-style:italic;color:var(--bp-accent);font-weight:500}
.bp-ident .bp-headline{
  margin:8px 0 0;
  font-family:'Geist',sans-serif;
  font-size:14px;
  color:var(--bp-on-surface-mute);
  line-height:1.45;
  letter-spacing:-0.005em;
}
.bp-ident .bp-meta-line{
  margin-top:10px;
  display:inline-flex;align-items:center;gap:8px;
  font-family:'Geist Mono',monospace;
  font-size:9.5px;
  color:var(--bp-on-surface-mute);
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:500;
}
.bp-ident .bp-meta-line:empty{display:none}

.bp-stats{
  margin:22px 22px 0;
  padding:16px 8px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  border-top:1px solid var(--bp-hairline);
  border-bottom:1px solid var(--bp-hairline);
  position:relative;
}
.bp-stats .bp-stat{display:flex;flex-direction:column;align-items:center;gap:4px;position:relative}
.bp-stats .bp-stat + .bp-stat::before{
  content:"";
  position:absolute;left:0;top:6px;bottom:6px;
  width:1px;background:var(--bp-hairline);
}
.bp-stats .bp-lbl{
  font-family:'Geist Mono',monospace;
  font-size:9.5px;
  color:var(--bp-on-surface-mute);
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:500;
  line-height:1;
}
.bp-stats .bp-v{
  font-family:'Newsreader',serif;
  font-weight:500;
  font-size:24px;
  line-height:1;
  letter-spacing:-0.02em;
  color:var(--bp-on-surface);
}

.bp-intro{
  padding:18px 28px 28px;
  margin:0;
  font-family:'Newsreader',serif;
  font-style:normal;
  font-weight:400;
  font-size:16px;
  line-height:1.6;
  color:var(--bp-on-surface);
  text-align:center;
  text-wrap:pretty;
  letter-spacing:-0.005em;
}
.bp-intro em{font-style:italic;color:var(--bp-accent);font-weight:500}

/* ============== FEATURED OPPS ============== */
.bp-opps-section{display:flex;flex-direction:column;gap:10px}
.bp-opps-eyebrow{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:4px 6px 0;
}
.bp-opps-eyebrow .bp-label{
  font-family:'Geist Mono',monospace;
  font-size:10px;
  color:var(--bp-on-surface-mute);
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-weight:500;
  display:inline-flex;align-items:center;gap:8px;
}
.bp-opps-eyebrow .bp-label .bp-dot{width:5px;height:5px;border-radius:50%;background:var(--bp-accent);opacity:.6}
.bp-opps-eyebrow .bp-count{
  font-family:'Newsreader',serif;
  font-style:italic;
  font-weight:500;
  font-size:13px;
  color:var(--bp-on-surface-mute);
  letter-spacing:-0.005em;
}
.bp-opps-eyebrow .bp-count b{font-style:normal;color:var(--bp-on-surface);font-weight:500}

.bp-opp-card{
  display:flex;align-items:center;gap:14px;
  padding:16px 18px;
  background:var(--bp-surface);
  border:1px solid var(--bp-ring);
  border-radius:18px;
  transition:border-color .15s, transform .15s, box-shadow .2s, background .25s;
  position:relative;
  overflow:hidden;
}
.bp-opp-card::after{
  content:"";
  position:absolute;inset:0;
  border-radius:18px;
  box-shadow:0 0 0 0 var(--bp-accent);
  transition:box-shadow .15s;
  pointer-events:none;
}
.bp-opp-card:hover{
  transform:translateY(-1px);
  border-color:var(--bp-accent);
}
.bp-opp-card:hover::after{ box-shadow:0 0 0 2px rgba(11,61,46,0.10); }
.bp-scope[data-mode="dark"] .bp-opp-card:hover::after,
body[data-mode="dark"] .bp-scope .bp-opp-card:hover::after{ box-shadow:0 0 0 2px rgba(255,248,232,0.16); }
.bp-opp-card:active{transform:translateY(0)}
.bp-opp-card.off{display:none}

.bp-opp-card .bp-logo{
  width:40px;height:40px;
  border-radius:11px;
  color:#fff;
  display:grid;place-items:center;
  font-family:'Newsreader',serif;font-weight:500;font-size:18px;
  flex:0 0 auto;
  background:linear-gradient(135deg,#1a5e4a,#0b3d2e);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 4px 10px -6px rgba(11,36,25,.35);
}
.bp-opp-card .bp-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.bp-opp-card .bp-nm{
  font-family:'Newsreader',serif;font-weight:500;font-size:16px;
  color:var(--bp-on-surface);
  letter-spacing:-0.01em;line-height:1.2;
  margin:0;
}
.bp-opp-card .bp-tag{
  font-family:'Geist',sans-serif;
  font-size:12.5px;
  color:var(--bp-on-surface-mute);
  line-height:1.35;
  letter-spacing:-0.005em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  max-width:100%;
}
.bp-opp-card .bp-chev{
  flex:0 0 auto;
  color:var(--bp-on-surface-mute);
  transition:transform 180ms ease-out, color .15s;
}
.bp-opp-card:hover .bp-chev{transform:translateX(6px);color:var(--bp-accent)}

/* ============== CTA PAIR ============== */
.bp-cta-pair{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  margin-top:8px;
}
.bp-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:15px 18px;
  border-radius:99px;
  font-family:'Geist Mono',monospace;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  min-height:48px;
  text-align:center;
}
/* Specificity bump (.bp-scope .bp-cta-*) — beats the upstream
 * `.bp-scope a { color: inherit }` rule on line 75, which would
 * otherwise drag the CTA text back to body's --ink color. */
.bp-scope .bp-cta-primary{
  background:var(--bp-accent);
  color:var(--bp-on-accent);
  border-color:var(--bp-accent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px -8px rgba(11,36,25,.4);
}
.bp-scope .bp-cta-primary:hover{
  background:var(--bp-accent-hover);
  border-color:var(--bp-accent-hover);
  color:#fff8e8;
  transform:translateY(-1px);
}
.bp-scope .bp-cta-outline{
  background:transparent;
  color:var(--bp-on-surface);
  border-color:var(--bp-hairline-3);
}
.bp-scope .bp-cta-outline:hover{
  border-color:var(--bp-accent);
  color:var(--bp-accent);
  transform:translateY(-1px);
}
.bp-cta svg{stroke-width:2}

/* ============== JUST JOINED STRIP ============== */
.bp-just-joined{
  display:flex;align-items:center;gap:10px;
  margin:18px 6px 0;
  padding:11px 4px;
  border-top:1px solid var(--bp-hairline);
  border-bottom:1px solid var(--bp-hairline);
}
.bp-just-joined .bp-pulse{
  width:8px;height:8px;border-radius:50%;
  background:var(--bp-accent);
  flex:0 0 auto;
  box-shadow:0 0 0 0 currentColor;
  color:var(--bp-accent);
  animation:bp-jjpulse 2.4s ease-in-out infinite;
  opacity:.85;
}
@keyframes bp-jjpulse{0%,100%{box-shadow:0 0 0 0 rgba(11,61,46,.35)}50%{box-shadow:0 0 0 7px rgba(11,61,46,0)}}
.bp-scope[data-mode="dark"] .bp-just-joined .bp-pulse,
body[data-mode="dark"] .bp-scope .bp-just-joined .bp-pulse{animation-name:bp-jjpulse-d}
@keyframes bp-jjpulse-d{0%,100%{box-shadow:0 0 0 0 rgba(255,248,232,.35)}50%{box-shadow:0 0 0 7px rgba(255,248,232,0)}}
.bp-just-joined .bp-eyebrow{
  font-family:'Geist Mono',monospace;
  font-size:10px;
  color:var(--bp-on-surface-mute);
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:500;
  flex:0 0 auto;
}
.bp-just-joined .bp-who{
  flex:1;min-width:0;
  font-family:'Newsreader',serif;
  font-size:14px;
  color:var(--bp-on-surface);
  letter-spacing:-0.005em;
  line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.bp-just-joined .bp-who .bp-nm{font-weight:500}
.bp-just-joined .bp-who .bp-when{color:var(--bp-on-surface-mute);font-style:italic}

/* ============== SOCIAL ROW ============== */
.bp-socials{
  display:flex;justify-content:center;align-items:center;gap:6px;
  margin-top:14px;
  flex-wrap:wrap;
}
.bp-socials a{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;
  border-radius:50%;
  color:var(--bp-on-surface-mute);
  transition:color .15s, background .15s, transform .15s;
}
.bp-socials a:hover{
  color:var(--bp-accent);
  background:var(--bp-surface);
  transform:translateY(-1px);
}
.bp-socials a svg{display:block}

/* ============== EDITORIAL FOOTER ============== */
.bp-ed-foot{
  /* landing.css has a bare `footer{background:#fff;border-top:...}` rule
   * that bleeds onto every <footer>, including this one — visible as a
   * cream box on dark themes. Explicitly reset bg + border so the
   * footer inherits the page surface. */
  background:transparent;
  border-top:0;
  padding:0;
  margin-top:18px;
  text-align:center;
  font-family:'Geist Mono',monospace;
  font-size:10px;
  color:var(--bp-on-surface-mute);
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-weight:500;
  line-height:1.6;
  opacity:.78;
}
.bp-ed-foot a{
  color:var(--bp-on-surface);
  border-bottom:1px solid var(--bp-hairline-2);
  padding-bottom:1px;
  transition:color .15s, border-color .15s;
}
.bp-ed-foot a:hover{color:var(--bp-accent);border-bottom-color:var(--bp-accent)}
.bp-ed-foot .bp-sep{opacity:.4;margin:0 4px}
.bp-ed-foot .bp-disc{
  display:block;
  margin-top:10px;
  padding-top:10px;
  max-width:38ch;
  margin-left:auto;margin-right:auto;
  font-family:'Newsreader',serif;
  font-style:italic;
  font-size:11px;
  letter-spacing:0;
  text-transform:none;
  opacity:.7;
  line-height:1.5;
  border-top:1px solid var(--bp-hairline);
}

/* ============== SHARE TOAST ============== */
.bp-toast{
  position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);
  z-index:80;
  padding:11px 18px;
  background:#0b3d2e;
  color:#fff8e8;
  border-radius:99px;
  font-family:'Geist Mono',monospace;
  font-size:10.5px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:600;
  box-shadow:0 12px 28px -10px rgba(11,36,25,.5);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s, transform .25s cubic-bezier(.2,.8,.3,1.2);
  display:inline-flex;align-items:center;gap:7px;
}
.bp-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.bp-toast .bp-dot{width:6px;height:6px;border-radius:50%;background:#9be7b8}

/* small-screen tightening */
@media (max-width:380px){
  .bp-ident{padding:12px 22px 0}
  .bp-intro{padding:16px 22px 24px;font-size:15px}
  .bp-stats{margin:20px 16px 0}
  .bp-stats .bp-v{font-size:22px}
  .bp-opp-card{padding:14px 16px;gap:12px;border-radius:16px}
  .bp-cta{padding:14px 14px;font-size:10px;letter-spacing:0.14em}
}
