/* ============================================================
   Boostur Bio — Public page stylesheet
   Completely standalone: zero dependency on dashboard.css
   ============================================================ */

:root {
  --bio-bg:         #0D0A1A;
  --bio-surface:    #1E1A38;
  --bio-border:     rgba(255,255,255,0.08);
  --bio-text:       #F0EEFF;
  --bio-muted:      #B8B0D8;
  --bio-accent:     #6C3BFF;
  --bio-accent2:    #FF5C3B;
  --bio-footer-bg:  #13102A;
  --bio-link-bg:    #1E1A38;
  --bio-link-hover: #2A2550;
  --bio-radius:     14px;
  --bio-font:       'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bio-font);
  background: var(--bio-bg);
  color: var(--bio-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Background gradient ─────────────────────────────────── */
.bio-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(108,59,255,.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 80%, rgba(255,92,59,.15) 0%, transparent 70%),
    var(--bio-bg);
  z-index: 0;
  pointer-events: none;
}

/* ── Page wrapper ────────────────────────────────────────── */
.bio-page {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 80px;
  min-height: 100vh;
}

@media (min-width: 600px) {
  .bio-page { align-items: center; }
}

/* ── Card ────────────────────────────────────────────────── */
.bio-card {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Profile section ─────────────────────────────────────── */
.bio-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 28px;
  text-align: center;
}

.bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(108,59,255,.4);
  display: block;
}

.bio-avatar-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bio-accent), var(--bio-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.bio-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.bio-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bio-text);
  line-height: 1.2;
}

.bio-pronouns {
  font-size: .72rem;
  color: var(--bio-muted);
  font-weight: 500;
  vertical-align: super;
  line-height: 1;
  opacity: .9;
}

.bio-tagline {
  font-size: .88rem;
  color: var(--bio-muted);
  line-height: 1.5;
  max-width: 360px;
}

/* ── Links section ───────────────────────────────────────── */
.bio-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bio-link-bg);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--bio-text);
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, transform .1s;
  position: relative;
}

.bio-link:hover {
  background: var(--bio-link-hover);
  border-color: rgba(108,59,255,.3);
  transform: translateY(-1px);
}

.bio-link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: .85;
}

.bio-link-label {
  flex: 1;
  text-align: center;
}

.bio-link-arrow {
  width: 14px;
  height: 14px;
  opacity: .5;
  flex-shrink: 0;
}

/* ── Gate overlay ────────────────────────────────────────── */
.bio-gate {
  width: 100%;
  max-width: 420px;
  background: var(--bio-surface);
  border: 1px solid var(--bio-border);
  border-radius: calc(var(--bio-radius) + 4px);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.bio-gate-wordmark {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--bio-text);
  /* TODO: swap for logo asset when available */
}

.bio-gate-wordmark span {
  color: var(--bio-accent);
}

.bio-gate-heading {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  color: var(--bio-text);
}

.bio-gate-heading span {
  color: var(--bio-muted);
}

.bio-gate-sub {
  font-size: .85rem;
  color: var(--bio-muted);
  text-align: center;
}

.bio-gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--bio-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--bio-font);
  font-size: .9rem;
  color: var(--bio-text);
  outline: none;
  transition: border-color .15s;
}

.bio-input::placeholder { color: var(--bio-muted); opacity: .7; }
.bio-input:focus { border-color: var(--bio-accent); }

.bio-btn-primary {
  width: 100%;
  background: var(--bio-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: var(--bio-font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  margin-top: 4px;
}

.bio-btn-primary:hover  { opacity: .88; transform: translateY(-1px); }
.bio-btn-primary:active { transform: translateY(0); }

.bio-gate-fine {
  font-size: .72rem;
  color: var(--bio-muted);
  text-align: center;
  line-height: 1.5;
  opacity: .75;
}

.bio-gate-fine a {
  color: var(--bio-muted);
  text-decoration: underline;
}

.bio-gate-error {
  width: 100%;
  background: rgba(255,92,59,.12);
  border: 1px solid rgba(255,92,59,.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .84rem;
  color: #ff8a72;
  text-align: center;
}

/* ── Fixed footer ────────────────────────────────────────── */
.bio-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bio-footer-bg);
  border-top: 1px solid var(--bio-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.bio-footer-brand {
  font-size: .72rem;
  color: var(--bio-muted);
  opacity: .65;
  font-weight: 500;
  letter-spacing: .01em;
}

.bio-footer-cta {
  font-size: .75rem;
  font-weight: 600;
  color: var(--bio-accent);
  text-decoration: none;
  transition: opacity .15s;
}

.bio-footer-cta:hover { opacity: .75; }

/* ── 404 page ────────────────────────────────────────────── */
.bio-404 {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bio-404 h1 { font-size: 4rem; font-weight: 800; color: var(--bio-muted); opacity: .4; }
.bio-404 p  { font-size: 1rem; color: var(--bio-muted); }
.bio-404 a  { color: var(--bio-accent); text-decoration: none; font-weight: 600; }
