/* ── NativeSats Shared Design System ─────────────────────────────── */

/* ── Reset ────────────────────────────────────────────────────────── */

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

/* ── Design Tokens ────────────────────────────────────────────────── */

:root {
  --bg: #07080a;
  --surface: #0d0f14;
  --surface-2: #141721;
  --border: #1e2233;
  --border-bright: #2a3050;
  --text: #e8eaf0;
  --text-dim: #6b7394;
  --text-muted: #3d4566;
  --accent: #f7931a;
  --accent-dim: #f7931a33;
  --accent-glow: #f7931a66;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #a855f7;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

/* ── Base ─────────────────────────────────────────────────────────── */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Background Effects ──────────────────────────────────────────── */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-dim);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: #a855f722;
  bottom: -100px;
  right: -100px;
}

/* ── Layout Container ────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

/* ── Header / Nav ────────────────────────────────────────────────── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 44px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
}
.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Animation ───────────────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Game Cards (shared between landing + hub) ───────────────────── */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}
.game-card:hover {
  text-decoration: none;
  color: inherit;
}
.game-card-live:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(247, 147, 26, 0.08);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.game-card-icon {
  font-size: 2rem;
}
.game-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.badge-live {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
}
.badge-soon {
  background: rgba(107, 115, 148, 0.1);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.game-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.game-card-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}
.game-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.game-card-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-card-coming {
  opacity: 0.5;
  cursor: default;
}

/* ── Responsive Shared ───────────────────────────────────────────── */

@media (max-width: 600px) {
  main {
    padding: 20px 16px 48px;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
}
