/* ==============================
   GAMES HUB (LEVEL 4)
   Unified Final Build
   ============================== */

/* ===== Header ===== */
h1 {
  margin-top: 60px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b3d2e;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

/* ===== Game Container ===== */
.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 35px;
  padding: 0 20px 40px;
  animation: fadeInUp 0.6s ease-in-out;
}

/* ===== Game Cards ===== */
.game-card {
  width: 200px;
  min-height: 130px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.game-card p {
  font-size: 0.95rem;
  color: white;
  margin: 0;
}

.games-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.game-card {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 25px;
  width: 250px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

#viewProgressBtn {
  background-color: #22bb33;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
}

#viewProgressBtn:hover {
  background-color: #1da82c;
}

.hidden {
  display: none !important;
}

/* ===== View Progress Button ===== */
#viewProgressBtn {
  display: block;
  margin: 30px auto 60px;
  background-color: #2ecc71;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  animation: fadeInUp 0.8s ease-in-out;
}

#viewProgressBtn:hover {
  background-color: #27ae60;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .games-container {
    gap: 18px;
  }
  .game-card {
    width: 180px;
    min-height: 115px;
    padding: 15px 10px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
    margin-top: 40px;
  }
  .game-card {
    width: 160px;
    min-height: 100px;
  }
  #viewProgressBtn {
    margin-top: 20px;
  }
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
