/* assets/style.css — Galaxy Strike Online GDD Theme */

/* ─── Fonts & Variables ──────────────────────────────────────────────────── */
:root {
  --primary:    #00d4ff;
  --primary-dim:#0099bb;
  --accent:     #ff3c78;
  --accent2:    #ffb700;
  --success:    #00ff88;
  --warn:       #ffb700;
  --danger:     #ff3c78;
  --text:       #e8f4f8;
  --text-dim:   #7fa8bb;
  --text-muted: #4a6a7a;
  --bg:         #020b14;
  --bg2:        #050f1a;
  --bg3:        #091824;
  --card:       rgba(5, 18, 30, 0.82);
  --card-border:rgba(0, 212, 255, 0.18);
  --card-glow:  rgba(0, 212, 255, 0.06);
  --nav-h:      58px;
  --radius:     10px;
  --font-head:  'Orbitron', sans-serif;
  --font-body:  'Exo 2', sans-serif;
  --font-mono:  'Share Tech Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ─── Top Nav ────────────────────────────────────────────────────────────── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1.5rem;
  background: rgba(2, 11, 20, 0.92);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}
.logo-gso {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0,212,255,.6);
}
.logo-gdd {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: .4rem .65rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
}
.nav-links a.active {
  border-bottom: 2px solid var(--primary);
}
.nav-links a i { margin-right: .3rem; font-size: .72rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(2, 11, 20, 0.97);
  border-bottom: 1px solid var(--card-border);
  flex-direction: column;
  padding: .5rem 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  color: var(--text-dim);
  padding: .7rem 1.5rem;
  font-size: .9rem;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav a i { margin-right: .6rem; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ─── Main Layout ────────────────────────────────────────────────────────── */
.page-main {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 2rem);
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ─── Hero (homepage only) ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 60%, rgba(0,100,160,.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,60,120,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(0,212,255,.1) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 2; padding: 3rem 1.5rem; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: .75rem;
  opacity: .8;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 60px rgba(0,212,255,.4), 0 2px 0 rgba(0,0,0,.8);
  margin-bottom: .5rem;
}
.hero-title .highlight {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(0,212,255,.8);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(.9rem, 2vw, 1.15rem);
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.hero-version {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent2);
  border: 1px solid rgba(255,183,0,.3);
  border-radius: 4px;
  padding: .2rem .6rem;
  letter-spacing: 2px;
  background: rgba(255,183,0,.05);
}

/* ─── Overall Progress Summary Strip ────────────────────────────────────── */
.overall-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.strip-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.strip-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .3s;
}
.strip-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.strip-card:hover::before { transform: scaleX(1); }
.strip-pct {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0,212,255,.4);
}
.strip-label {
  font-size: .72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: .3rem;
}
.strip-sub {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: .2rem;
  font-family: var(--font-mono);
}

/* ─── Section Summary Banner ─────────────────────────────────────────────── */
.section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(0,212,255,.06) 0%, rgba(255,60,120,.04) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.ss-left h1 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.ss-left p { color: var(--text-dim); font-size: .9rem; max-width: 560px; }
.ss-right { text-align: center; min-width: 120px; }
.ss-pct {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 30px rgba(0,212,255,.5);
  line-height: 1;
}
.ss-label { font-size: .7rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: .2rem; }
.ss-bar { margin-top: .6rem; width: 120px; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.section-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: border-color .25s;
}
.section-card:hover { border-color: rgba(0,212,255,.35); }

.section-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.4rem;
  background: rgba(0, 212, 255, 0.04);
  border-bottom: 1px solid var(--card-border);
}
.section-card-header i {
  color: var(--primary);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
.section-card-header h2 {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}
.section-card-body { padding: 1.4rem; }

/* ─── Progress Bars ──────────────────────────────────────────────────────── */
.progress-block { margin-bottom: 1rem; }
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .35rem;
}
.progress-label { font-size: .85rem; color: var(--text); font-weight: 400; }
.progress-pct {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
}
.progress-track {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .8s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 100%;
  background: rgba(255,255,255,.4);
  filter: blur(2px);
}
.bar-done    { background: linear-gradient(90deg, #00cc66, #00ff88); }
.bar-partial { background: linear-gradient(90deg, #0088cc, #00d4ff); }
.bar-wip     { background: linear-gradient(90deg, #cc7700, #ffb700); }
.bar-todo    { background: rgba(255,255,255,.12); }
.progress-note {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .3rem;
  font-family: var(--font-mono);
}

/* ─── Progress grid ──────────────────────────────────────────────────────── */
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
@media (max-width: 640px) { .progress-grid { grid-template-columns: 1fr; } }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 4px;
  padding: .2rem .5rem;
  white-space: nowrap;
}
.badge-done    { background: rgba(0,255,136,.12); color: #00ff88; border: 1px solid rgba(0,255,136,.3); }
.badge-partial { background: rgba(0,212,255,.12); color: #00d4ff; border: 1px solid rgba(0,212,255,.3); }
.badge-wip     { background: rgba(255,183,0,.12);  color: #ffb700; border: 1px solid rgba(255,183,0,.3); }
.badge-todo    { background: rgba(255,255,255,.06); color: #7fa8bb; border: 1px solid rgba(255,255,255,.12); }
.badge-blocked { background: rgba(255,60,120,.12); color: #ff3c78; border: 1px solid rgba(255,60,120,.3); }

/* ─── Feature Table ──────────────────────────────────────────────────────── */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.feature-table thead tr {
  background: rgba(0,212,255,.06);
}
.feature-table th {
  text-align: left;
  padding: .6rem .8rem;
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--card-border);
}
.feature-table td {
  padding: .55rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr:hover td { background: rgba(0,212,255,.03); }
.feat-name { color: var(--text); font-weight: 400; }
.feat-gdd code {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent2);
  background: rgba(255,183,0,.07);
  padding: .1rem .35rem;
  border-radius: 3px;
}
.feat-note { color: var(--text-dim); font-size: .78rem; }

/* ─── Callouts ───────────────────────────────────────────────────────────── */
.callout {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: 7px;
  font-size: .85rem;
  margin: 1rem 0;
  line-height: 1.5;
}
.callout i { flex-shrink: 0; margin-top: .1rem; }
.callout-info    { background: rgba(0,212,255,.07); border-left: 3px solid var(--primary); color: var(--text); }
.callout-success { background: rgba(0,255,136,.07); border-left: 3px solid var(--success); color: var(--text); }
.callout-warn    { background: rgba(255,183,0,.07);  border-left: 3px solid var(--warn);    color: var(--text); }
.callout-danger  { background: rgba(255,60,120,.07); border-left: 3px solid var(--danger);  color: var(--text); }
.callout-info  i { color: var(--primary); }
.callout-success i { color: var(--success); }
.callout-warn  i { color: var(--warn); }
.callout-danger i { color: var(--danger); }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
h3 {
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 1.25rem 0 .5rem;
}
h4 { font-size: .85rem; color: var(--text-dim); margin: .75rem 0 .25rem; font-weight: 600; }
p  { margin-bottom: .75rem; color: var(--text-dim); font-size: .88rem; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  font-size: .82em;
  color: var(--accent2);
  background: rgba(255,183,0,.07);
  padding: .1rem .35rem;
  border-radius: 3px;
}
pre {
  background: rgba(0,0,0,.4);
  border: 1px solid var(--card-border);
  border-radius: 7px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text);
  margin: .75rem 0;
}
ul, ol { padding-left: 1.4rem; margin-bottom: .75rem; }
li { margin-bottom: .25rem; color: var(--text-dim); font-size: .88rem; }
li::marker { color: var(--primary); }

strong { color: var(--text); font-weight: 600; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ─── Page nav grid (index) ──────────────────────────────────────────────── */
.page-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.page-nav-card {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  transition: border-color .25s, transform .25s, background .25s;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  overflow: hidden;
}
.page-nav-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.page-nav-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: rgba(0,212,255,.04);
}
.page-nav-card:hover::after { opacity: 1; }
.pnc-icon { font-size: 1.5rem; color: var(--primary); }
.pnc-title {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.pnc-pct {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent2);
}
.pnc-desc { font-size: .75rem; color: var(--text-muted); }

/* ─── Two-column layout helpers ─────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .two-col, .three-col { grid-template-columns: 1fr; } }

/* ─── Stat blocks ────────────────────────────────────────────────────────── */
.stat-block {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--card-border);
  border-radius: 7px;
  padding: .9rem 1rem;
  text-align: center;
}
.stat-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-lbl { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* ─── Roadmap timeline ───────────────────────────────────────────────────── */
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--primary), transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg);
}
.timeline-item.done::before { background: var(--success); border-color: var(--success); }
.timeline-item.wip::before  { background: var(--warn);    border-color: var(--warn); }
.tl-phase {
  font-family: var(--font-head);
  font-size: .72rem;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.tl-title { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.tl-body  { font-size: .8rem; color: var(--text-dim); }

/* ─── Formula block ──────────────────────────────────────────────────────── */
.formula {
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 7px;
  padding: .8rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--primary);
  margin: .6rem 0;
  overflow-x: auto;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--card-border);
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(2,11,20,.9);
}
.footer-inner { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; }
.footer-sub  { font-size: .75rem; color: var(--text-muted); }
.footer-copy { font-size: .68rem; color: rgba(255,255,255,.2); font-family: var(--font-mono); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .section-summary { flex-direction: column; }
  .ss-right { width: 100%; }
  .ss-bar { width: 100%; }
  .overall-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.mt1 { margin-top: .6rem; }
.mt2 { margin-top: 1.2rem; }
.mt3 { margin-top: 2rem; }
.mb1 { margin-bottom: .6rem; }
.sep { height: 1px; background: var(--card-border); margin: 1.5rem 0; }
.mono { font-family: var(--font-mono); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-warn    { color: var(--warn); }
.text-success { color: var(--success); }
.scroll-table { overflow-x: auto; }
