/* Dark neon theme for game hub */
:root {
  --bg-primary: #0a0a1a;
  --bg-card: #12122e;
  --neon-blue: #00d4ff;
  --neon-purple: #b829dd;
  --text-primary: #ffffff;
  --text-secondary: #8892b0;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Particle background */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-100px) translateX(50px) scale(1.2); opacity: 0.8; }
}

/* Header */
.game-hub-header {
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.logo-icon {
  font-size: 4rem;
  animation: bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--neon-blue));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.logo-text {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Search and Filter */
.search-filter-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 24px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 16px 24px 16px 56px;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 9999px;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-box input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: white;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Games Grid */
.games-grid {
  display: grid;
  gap: 24px;
  padding: 0 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Game Card */
.game-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.game-card:hover {
  transform: scale(1.05);
  border-color: var(--neon-blue);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), 0 8px 40px rgba(0, 0, 0, 0.4);
}

.game-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-thumbnail {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 26, 0.9), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.game-play-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border: none;
  border-radius: 9999px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.game-badge.hot {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.game-badge.new {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: white;
}

.game-info {
  padding: 20px;
}

.game-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.game-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--neon-blue);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Footer */
.home-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--neon-blue);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

/* Loading */
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}