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

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600&display=swap');

:root {
  /* Brand palette from Reconecta Games identity */
  --bg-dark: #070414;
  --bg-dark-alt: #11082A;
  --bg-card: #0e0822;
  --bg-card-hover: #160d30;
  --cyan: #00D4FF;
  --violet: #9333EA;
  --orange: #FF5722;
  --accent: #00D4FF;
  --accent-light: #66e3ff;
  --text: #d0d4e0;
  --text-muted: #8a8faa;
  --text-heading: #ffffff;
  --border: #1a1040;
  --border-glow: rgba(0, 212, 255, 0.15);
  --max-width: 960px;
  --radius: 12px;
  --gradient-brand: linear-gradient(135deg, #00D4FF 0%, #9333EA 50%, #FF5722 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

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

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, rgba(7,4,20,0.97) 0%, rgba(7,4,20,0.92) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
}

nav { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
nav a:hover { color: var(--cyan); }
nav a.active { color: var(--cyan); }

.mobile-menu { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d0525 40%, var(--bg-dark-alt) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(0,212,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(147,51,234,0.05) 0%, transparent 50%),
              radial-gradient(circle at 50% 30%, rgba(255,87,34,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: var(--max-width); margin: 0 auto; }

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero h1 .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

/* Separator line (brand style) */
.brand-separator {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 200px;
  margin: 1.5rem auto 0;
}
.brand-separator .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.brand-separator .dot-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.brand-separator .dot-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.brand-separator .line {
  flex: 1;
  height: 1.5px;
  background: var(--gradient-brand);
  opacity: 0.4;
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── Game Cards ──────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.08);
}

.game-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.game-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.badge-violet {
  background: rgba(147, 51, 234, 0.1);
  color: #B060FF;
  border-color: rgba(147, 51, 234, 0.15);
}

.badge-orange {
  background: rgba(255, 87, 34, 0.1);
  color: var(--orange);
  border-color: rgba(255, 87, 34, 0.15);
}

/* ── Legal Pages ─────────────────────────────────────────────── */
.legal-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-page h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p, .legal-page li {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li { margin-bottom: 0.4rem; }

.legal-page strong { color: var(--text-heading); }

/* ── Support Page ────────────────────────────────────────────── */
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.support-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.support-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ── Game Landing Page ───────────────────────────────────────── */
.game-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d0525 40%, var(--bg-dark-alt) 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.game-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.game-hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  flex-shrink: 0;
  object-fit: cover;
}

.game-hero-text h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.game-hero-text .publisher {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.game-hero-text p {
  color: var(--text-muted);
  font-size: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.features-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.features-list li:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.features-list li strong {
  display: block;
  color: var(--cyan);
  margin-bottom: 0.25rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Gradient decorative pixel dots (footer) */
.pixel-dots {
  display: flex;
  gap: 6px;
  margin-top: 0.5rem;
}
.pixel-dots span {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .section { padding: 2.5rem 1.2rem; }
  .hero-logo { width: 80px; height: 80px; }

  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0.8rem; }
  .mobile-menu { display: block; }

  .game-hero-inner { flex-direction: column; text-align: center; }
  .game-hero-icon { width: 96px; height: 96px; margin: 0 auto; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
