/* Game Menu Styles - matching Simon Says theme */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap");

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

:root {
  /* Dark theme colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #141824;
  --bg-tertiary: #1e2330;

  /* Neon accent colors */
  --neon-cyan: #00f0ff;
  --neon-pink: #ff006e;
  --neon-purple: #8b5cf6;
  --neon-green: #00ff88;
  --neon-yellow: #ffeb3b;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;

  /* UI colors */
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(139, 92, 246, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 0, 110, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Header */
.game-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative; /* Added from updates */
}

.game-header h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  animation: glow-pulse 3s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.game-header h1 .emoji {
  font-size: 56px;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.game-header h1 .title-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

@keyframes glow-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* Admin Link on Main Page */
.admin-link {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-link:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  margin-bottom: 64px;
}

.welcome-text {
  font-size: 24px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Game Menu Grid */
.game-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.game-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--glow-purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 240, 255, 0.05));
}

.game-icon {
  font-size: 72px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
  transition: all 0.4s ease;
}

.game-card:hover .game-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
}

.game-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-card p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.play-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.game-card:hover .play-button {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6);
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--glow-purple);
}

.stat-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }

  .game-header h1 {
    font-size: 40px;
  }

  .game-header h1 .emoji {
    font-size: 40px;
  }

  .welcome-text {
    font-size: 20px;
  }

  .game-menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-card {
    padding: 32px 24px;
  }

  .game-icon {
    font-size: 64px;
  }

  .game-card h3 {
    font-size: 24px;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .admin-link {
    /* Adjust position for smaller screens if needed */
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .game-header h1 {
    font-size: 32px;
  }

  .game-header h1 .emoji {
    font-size: 32px;
  }

  .welcome-text {
    font-size: 18px;
  }

  .game-card {
    padding: 28px 20px;
  }

  .game-icon {
    font-size: 56px;
  }

  .game-card h3 {
    font-size: 22px;
  }

  .stat-value {
    font-size: 28px;
  }
}
