/* Games Page Styles */
.games-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.games-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.games-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.game-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.game-card.coming-soon {
  opacity: 0.7;
  cursor: not-allowed;
}

.game-card.coming-soon:hover {
  transform: none;
}

.game-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.game-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

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

.game-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.game-badge.soon {
  background: #999;
}

/* Game Container */
.game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.game-header {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 15px;
  color: white;
}

.game-score, .game-lives {
  font-size: 1.2rem;
  font-weight: 600;
}

.game-close {
  background: #ff4757;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.game-close:hover {
  background: #ff6b81;
}

#gameCanvas {
  background: #1a1a2e;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.game-controls {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.game-controls button {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.game-controls button:hover {
  background: #764ba2;
  transform: scale(1.05);
}

/* Dark mode support */
[data-theme="dark"] .game-card {
  background: #2d2d44;
}

[data-theme="dark"] .game-card h3 {
  color: #fff;
}

[data-theme="dark"] .game-card p {
  color: #aaa;
}
