/* =============================================
   BigNGames - Design Tokens & Reset
   ============================================= */

:root {
  /* Backgrounds */
  --bg-base:      #f9f8ff;
  --bg-surface:   #ffffff;
  --bg-elevated:  #f3f0fd;
  --bg-header:    #ffffff;

  /* Brand */
  --primary:        #7c3aed;
  --primary-hover:  #6d28d9;
  --primary-light:  #ede9fe;
  --accent:         #7c3aed;
  --accent-bright:  #6d28d9;

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #374151;
  --text-muted:     #6b7280;
  --text-on-primary: #ffffff;

  /* Borders */
  --border:         #e5e7eb;
  --border-focus:   #7c3aed;

  /* Scores */
  --score-great:  #22c55e;
  --score-mid:    #f59e0b;
  --score-poor:   #ef4444;

  /* Typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: 200ms ease;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--accent-bright);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.score-badge--great { background-color: var(--score-great); }
.score-badge--mid   { background-color: var(--score-mid); }
.score-badge--poor  { background-color: var(--score-poor); }

/* Platform badge */
.platform-badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Category badge */
.category-badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--text-on-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-on-primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--text-on-primary);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* ── Home Hero ── */
.home-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.home-hero__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.home-hero__brand {
  color: var(--accent);
}

.home-hero__sub {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
}

.home-hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Home sections ── */
.home-section {
  margin-bottom: 2rem;
}
