/* H5 Games Hub - Main page styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { text-decoration: underline; }

.header {
  text-align: center;
  padding: 30px 20px;
}

.header-content {
  margin: 0 auto;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 300;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
  flex: 1;
}

.game-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.game-preview {
  margin-bottom: 16px;
}

.game-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}

.game-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.game-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}

.footer {
  text-align: center;
  padding: 24px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.footer a {
  color: inherit;
}

@media (max-width: 640px) {
  .title {
    font-size: 2rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }
}
