/* ============================================================
   MiniArcade — styles.css
   Theme: Dark Neon Arcade
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --green: #22c55e;
  --blue: #38bdf8;
  --purple: #a78bfa;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(56, 189, 248, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --glow-green: 0 0 20px rgba(34, 197, 94, 0.4);
  --glow-blue: 0 0 20px rgba(56, 189, 248, 0.4);
  --glow-purple: 0 0 20px rgba(167, 139, 250, 0.4);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; }

/* ── Accessibility ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  text-shadow: var(--glow-green);
}
.nav-brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); text-decoration: none; }

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

/* ── Section Base ──────────────────────────────────────────── */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #0c1a36 25%, #0f172a 50%, #1a0a2e 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  z-index: 0;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 18px rgba(34,197,94,0.6));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 460px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 rgba(34,197,94,0);
  letter-spacing: 0.03em;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-green), 0 8px 24px rgba(34,197,94,0.3);
  text-decoration: none;
  color: #000;
}
.hero-cta svg { width: 22px; height: 22px; }
.hero-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Games Grid ────────────────────────────────────────────── */
#games { background: rgba(30, 41, 59, 0.3); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(56,189,248,0.04));
  pointer-events: none;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: var(--glow-blue), 0 12px 32px rgba(0,0,0,0.3);
}
.game-card svg { width: 48px; height: 48px; }
.game-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.game-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.game-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: rgba(56,189,248,0.12);
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-top: auto;
  width: fit-content;
}

/* ── Features ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--glow-green);
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-text h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.feature-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ── About ─────────────────────────────────────────────────── */
#about .about-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 760px;
}
#about .about-box p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
#about .about-box p:last-child { margin-bottom: 0; }
.about-highlight {
  color: var(--green);
  font-weight: 600;
}

/* ── Privacy & Ads ─────────────────────────────────────────── */
#privacy { background: rgba(30, 41, 59, 0.3); }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.privacy-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}
.privacy-card h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.privacy-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ── Contact ───────────────────────────────────────────────── */
#contact .contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 540px;
}
.email-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.email-address {
  font-size: 0.95rem;
  color: var(--blue);
  font-weight: 500;
  flex: 1;
  word-break: break-all;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.copy-btn:hover {
  background: var(--blue);
  color: #000;
  box-shadow: var(--glow-blue);
}
.copy-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}
.copy-btn svg { width: 14px; height: 14px; }
.contact-note { font-size: 0.875rem; color: var(--text-muted); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-shadow: var(--glow-green);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue); text-decoration: none; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* ── Neon badge ────────────────────────────────────────────── */
.neon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.neon-badge-green {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.35);
  color: var(--green);
}

/* ── Scan-line overlay (subtle retro vibe) ─────────────────── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Utility ───────────────────────────────────────────────── */
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.glow-green { text-shadow: var(--glow-green); }

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 480px) {
  section { padding: 3.5rem 1rem; }
  .game-card, .feature-card { padding: 1.25rem; }
  #about .about-box, #contact .contact-box { padding: 1.5rem; }
  .email-row { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
