/* assets/css/components.css */

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: "Alfa Slab One", serif;
  font-size: 26px;
  font-weight: 400;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.game-card {
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

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

.game-link:hover {
  text-decoration: none;
  color: inherit;
}

.game-image {
  height: 180px;
  width: 180px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto 15px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.game-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.game-content {
  text-align: center;
  padding: 0;
}

.game-title {
  font-family: "Alfa Slab One", serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.game-rating {
  margin-bottom: 8px;
}

.stars {
  color: #ffd700;
  font-size: 16px;
}

.game-price {
  font-family: "Alatsi", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4aa4f1;
  margin-bottom: 12px;
}

.game-button {
  font-family: "Alfa Slab One", serif;
  background: #4aa4f1;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 180px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 auto;
  display: block;
  text-decoration: none;
  text-align: center;
}

.game-link:hover .game-button {
  background: #3a8fe0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 164, 241, 0.3);
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .games-section .container {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .games-section {
    padding: 40px 15px;
  }

  .games-section .container {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 22px;
  }

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

  .game-image {
    height: 160px;
    width: 160px;
  }
}

@media (max-width: 480px) {
  .games-section .container {
    padding: 20px 15px;
  }

  .section-title {
    font-size: 20px;
  }

  .game-content {
    padding: 15px;
  }

  .game-title {
    font-size: 16px;
  }

  .game-price {
    font-size: 18px;
  }

  .game-button {
    padding: 8px 16px;
    font-size: 12px;
    width: 160px;
  }
}
