/*
 * bigsusan.com — Shared Site Design System
 * ─────────────────────────────────────────────────────────────────────────
 * Single source of truth for all static pages (homepage, login, support).
 * The scoreboard React app has its own index.css with matching tokens.
 *
 * Pages that use this file:
 *   /index.html
 *   /scoreboard/login.html
 *   /support/index.html
 *
 * DO NOT add page-specific rules here. Keep this to tokens + primitives only.
 * ─────────────────────────────────────────────────────────────────────────
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&family=Outfit:wght@400;600;700;800;900&display=swap');

/* ── Design Tokens ───────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #ffffff;
  --surface:     #ffffff;

  /* Borders */
  --border:      rgba(0, 0, 0, 0.08);
  --border-mid:  rgba(0, 0, 0, 0.13);

  /* Text */
  --text-1:      #111218;
  --text-2:      #4a4d5e;
  --text-3:      #9497a8;

  /* Brand — purple */
  --purple:      #7c3aed;
  --purple-dk:   #4c1d95;
  --purple-pale: rgba(124, 58, 237, 0.05);
  --purple-glow: rgba(124, 58, 237, 0.20);

  /* Accent — red (legacy support endpoint) */
  --red:         #ef4444;
  --red-dk:      #b91c1c;
  --red-glow:    rgba(239, 68, 68, 0.14);

  /* Semantic */
  --green:       #047857;

  /* Fonts */
  --font:        'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:   'Inter',  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --radius:      16px;
  --radius-sm:   10px;

  /* Shadows */
  --shadow:      0 2px 16px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Page shell ──────────────────────────────────────────────────────── */
.bs-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.bs-topbar {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bs-wordmark {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* ── Main content area ───────────────────────────────────────────────── */
.bs-main {
  flex: 1;
  width: 100%;
  max-width: 480px;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Portrait ────────────────────────────────────────────────────────── */
.bs-portrait-wrap { margin-bottom: 28px; }

.bs-portrait-ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  box-shadow: 0 8px 32px var(--purple-glow), 0 2px 8px rgba(0, 0, 0, 0.10);
}

.bs-portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Identity block ──────────────────────────────────────────────────── */
.bs-identity {
  text-align: center;
  margin-bottom: 36px;
}

.bs-identity-name {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1.1;
  margin-bottom: 8px;
}

.bs-identity-tagline {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-2);
}

/* ── Card ────────────────────────────────────────────────────────────── */
.bs-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

/* ── Nav card (back-link style) ──────────────────────────────────────── */
.bs-nav-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.15s var(--ease);
}

.bs-nav-card:hover {
  background: #fafaf8;
  border-color: var(--border-mid);
  transform: translateY(-1px);
}

.bs-nav-card:active { transform: translateY(0); }

.bs-nav-card-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.bs-nav-chevron {
  width: 15px;
  height: 15px;
  stroke: var(--text-3);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: stroke 0.18s;
}

.bs-nav-card:hover .bs-nav-chevron { stroke: var(--text-2); }

/* ── Button — primary purple ─────────────────────────────────────────── */
.bs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dk));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s;
  min-height: 48px;
  text-decoration: none;
}

.bs-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.36);
}

.bs-btn:active:not(:disabled) { transform: translateY(0); }
.bs-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Form inputs ─────────────────────────────────────────────────────── */
.bs-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.bs-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none;
}

.bs-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

textarea.bs-input {
  height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* ── Alerts ──────────────────────────────────────────────────────────── */
.bs-alert {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.45;
}

.bs-alert-success {
  background: rgba(4, 120, 87, 0.07);
  border: 1px solid rgba(4, 120, 87, 0.2);
  color: var(--green);
}

.bs-alert-error {
  background: var(--red-glow);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--red-dk);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.bs-footer {
  width: 100%;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: #ffffff;
  margin-top: auto;
}

.bs-footer-copy {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .bs-main          { padding: 32px 16px 48px; }
  .bs-portrait-ring { width: 124px; height: 124px; }
  .bs-identity-name { font-size: 1.65rem; }
  .bs-card,
  .bs-nav-card      { border-radius: 13px; }
}
