/* AchieveTrophies shared page styles - extracted from the landing page design
   language (index.html, Bruce's canonical style). For all subpages: Hall of
   Completions, Timeline, Current Lineup, The Mission, Records.
   The landing page stays self-contained; this file mirrors its vocabulary. */

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

:root {
  --bg:         #0a0f1a;
  --surface:    #0d1525;
  --card:       #0f1a2e;
  --green:      #01f524;
  --blue:       #008fff;
  --grad-start: #0def7d;
  --grad-end:   #0750c2;
  --grad:       linear-gradient(135deg, #0def7d, #0750c2);
  --grad-h:     linear-gradient(90deg, #0def7d, #0750c2);
  --text:       #dff0ff;
  --text-dim:   #7a9eb8;
  --text-muted: #3a5870;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── PARTICLES ── */
#particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ── TOP LINE ── */
.top-line {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-h);
  box-shadow: 0 0 20px rgba(13,239,125,0.8), 0 0 40px rgba(13,239,125,0.4);
  z-index: 200;
  animation: lineFlicker 3s ease-in-out infinite;
}
@keyframes lineFlicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

/* ── NAV (identical to landing page) ── */
nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13,239,125,0.07);
}
.nav-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.08em; text-decoration: none; }
.nav-brand .nb-achieve  { color: var(--green); }
.nav-brand .nb-trophies { color: var(--blue); }
.nav-tabs { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-tabs a {
  font-size: 0.7rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(223,240,255,0.55); text-decoration: none;
  padding: 0.4rem 0.85rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-tabs a:hover {
  background: var(--grad-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  box-shadow: inset 0 0 20px rgba(0,229,255,0.15), 0 0 16px rgba(0,229,255,0.12);
}
.nav-tabs a.active { color: var(--green); text-shadow: 0 0 10px rgba(1,245,36,0.4); }
.nav-contact {
  font-size: 0.7rem; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); text-decoration: none;
  padding: 0.4rem 1rem; border: 1px solid rgba(1,245,36,0.25);
  border-radius: 20px; transition: all 0.25s;
}
.nav-contact:hover { background: rgba(1,245,36,0.08); border-color: rgba(1,245,36,0.5); box-shadow: 0 0 16px rgba(1,245,36,0.15); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.4rem; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: rgba(223,240,255,0.7); border-radius: 2px; transition: all 0.25s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-menu {
  display: none; position: fixed; top: 62px; left: 0; right: 0;
  background: rgba(10,15,26,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,229,255,0.15);
  padding: 1rem 1.5rem; z-index: 149; flex-direction: column; gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(223,240,255,0.65); text-decoration: none;
  padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: #00e5ff; }

@media (max-width: 768px) {
  .nav-tabs { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── PAGE HEADER (compact hero for subpages) ── */
.section { position: relative; z-index: 1; }
.page-head {
  padding: 9.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-head-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 48% at 12% 20%, rgba(1,245,36,0.05), transparent 70%),
    radial-gradient(ellipse 62% 52% at 88% 60%, rgba(0,143,255,0.06), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(15,25,60,0.4), transparent);
  animation: headBg 14s ease-in-out infinite alternate;
}
@keyframes headBg { 0% { opacity: 0.7; } 100% { opacity: 1; } }
.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: var(--grad-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(13,239,125,0.3));
  margin-bottom: 1rem;
  animation: fadeUp 0.9s ease both;
  position: relative;
}
.page-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
  max-width: 640px; margin: 0 auto;
  animation: fadeUp 1.1s ease both;
  position: relative;
}
.page-day-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 0.6rem 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.15em;
  color: var(--green); text-shadow: 0 0 10px rgba(1,245,36,0.5);
  background: rgba(0,229,255,0.03);
  border: 1.5px solid rgba(0,229,255,0.45);
  border-radius: 50px;
  box-shadow: 0 0 16px rgba(0,229,255,0.1);
  animation: fadeUp 0.7s ease both, badgePulse 3s ease-in-out infinite;
  position: relative;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(1,245,36,0.08), inset 0 0 20px rgba(1,245,36,0.02); }
  50%       { box-shadow: 0 0 32px rgba(1,245,36,0.18), inset 0 0 30px rgba(1,245,36,0.05); }
}
.streak-dot {
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: dotBlink 1.2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── SHARED SECTION PATTERNS (landing vocabulary) ── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.75rem; text-align: center;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 700; text-align: center;
  background: var(--grad-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4rem;
}
.grad-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(13,239,125,0.2), rgba(7,80,194,0.2), transparent);
  margin: 0 2rem; position: relative; z-index: 1;
}
.content-section { padding: 5.5rem 1.5rem; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

/* Hero stat block (stats-big pattern) */
.stats-big {
  background: var(--card);
  border: 1px solid rgba(13,239,125,0.12);
  border-radius: 28px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
  margin-bottom: 2.5rem;
}
.stats-big::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(13,239,125,0.04), transparent);
}
.stats-big-number {
  font-family: 'Cinzel', serif;
  font-size: clamp(3.5rem, 13vw, 8rem);
  font-weight: 900; line-height: 0.95;
  background: var(--grad-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(13,239,125,0.35));
  display: block; margin-bottom: 1rem; position: relative;
}
.stats-big-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3vw, 1.6rem); font-weight: 700;
  color: var(--text-dim); letter-spacing: 0.08em; margin-bottom: 0.5rem;
  position: relative;
}
.stats-big-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(13,239,125,0.4); position: relative;
}
.stats-big-sub a { color: rgba(13,239,125,0.7); text-decoration: none; }
.stats-big-sub a:hover { color: var(--green); text-shadow: 0 0 10px rgba(1,245,36,0.5); }

/* Stat card grid (landing stats-grid pattern) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5px;
  border: 1.5px solid rgba(13,239,125,0.08);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(13,239,125,0.04);
}
.stat-card {
  background: var(--card);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-h);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.stat-card:hover { background: rgba(13,239,125,0.04); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.stat-number {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 900; line-height: 1; margin-bottom: 0.4rem;
  background: var(--grad-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 10px rgba(13,239,125,0.3));
}
.stat-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.stat-context { font-size: 0.62rem; letter-spacing: 0.08em; color: var(--text-dim); margin-top: 0.55rem; font-family: 'JetBrains Mono', monospace; }
.stat-context a { color: var(--blue); text-decoration: none; }
.stat-context a:hover { color: #00e5ff; text-shadow: 0 0 10px rgba(0,229,255,0.4); }

/* Data table (timeline chapters, milestones) */
.at-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.at-table th {
  font-family: 'JetBrains Mono', monospace;
  text-align: left; color: var(--text-muted); font-weight: 400;
  text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.2em;
  padding: 0.8rem 1rem; border-bottom: 1px solid rgba(13,239,125,0.12);
}
.at-table td { padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-dim); }
.at-table tr:hover td { background: rgba(13,239,125,0.03); color: var(--text); }
.at-table td a { color: var(--blue); text-decoration: none; }
.at-table td a:hover { color: #00e5ff; text-shadow: 0 0 10px rgba(0,229,255,0.4); }

/* Card container (rule-card pattern, generic) */
.panel {
  background: var(--card);
  border: 1px solid rgba(13,239,125,0.1);
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.panel:hover {
  border-color: rgba(13,239,125,0.28);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 30px rgba(13,239,125,0.06);
}

/* Honesty note (data provenance line, unique to data pages) */
.honesty-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
  margin-top: 2rem; opacity: 0.75;
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── TOAST ── */
.toast {
  position: fixed; top: 5rem; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(10,15,26,0.95);
  border: 1px solid rgba(0,229,255,0.35);
  border-radius: 10px; padding: 0.65rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: rgba(223,240,255,0.85);
  box-shadow: 0 0 20px rgba(0,229,255,0.12);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── FOOTER (identical to landing page) ── */
footer {
  padding: 3.5rem 2rem;
  background: var(--surface);
  border-top: 1px solid rgba(13,239,125,0.07);
  position: relative; z-index: 1; text-align: center;
}
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 900; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.fl-achieve  { color: var(--green); }
.fl-trophies { color: var(--blue); }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-links a[href^="mailto"]:hover { color: var(--blue); }
.footer-sep { color: rgba(13,239,125,0.2); font-size: 0.5rem; }
.footer-copy { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.5; }
