/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #007bff;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
}

.logo span {
  color: yellow;
}

#search {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: 200px;
}

/* Game Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  flex: 1;
}

.game-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.game-card h3 {
  padding: 1rem;
  font-size: 1.1rem;
}

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

/* Footer */
footer {
  background: #007bff;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
