/* games.css */

/* Reset & Base */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
    /* Gradient background */
    background: linear-gradient(135deg, #1f1c2c, #928dab, #4e54c8, #8f94fb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-repeat: no-repeat;  /* تمنع تكرار الصورة */

    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Animation for gradient movement */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


header h1 {
  font-size: 2.5em;
  margin-bottom: 2em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Games Container */
.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  width: 100%;
  max-width: 1200px;
}

/* Individual Game Card */
.game-card {
  background: linear-gradient(135deg, #003ada, #1d6fce, #5aa2f2); /* أزرق بدرجاته */
  border-radius: 15px;
  padding: 2em;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff; /* النص أبيض ليكون واضح على الخلفية */
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.game-icon {
  font-size: 3em;
  margin-bottom: 1em;
}

.game-card h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.play-btn {
  padding: 0.75em 1.5em;
  background: #0732de;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.play-btn:hover {
  background: #1d6fce;
}
.hero-header {
  width: 100%;
  height: 300px; /* ممكن تغير الارتفاع */
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-header h1 {
  font-size: 8em;
  font-weight: 900;
  margin: 0;
  letter-spacing: 5px;
}

.hero-header h2 {
  font-size: 4em;
  margin: 0;
  font-weight: 700;
  letter-spacing: 3px;
}

.game-card.disabled .play-btn {
  background: #555;
  cursor: not-allowed;
}

/* Responsive adjustments */
/* Adjustments for tablets */
@media (max-width: 768px) {
  .game-card {
    padding: 1.5em;
  }
  .game-icon {
    font-size: 2.2em; /* أصغر شوي */
  }
  .game-card h2 {
    font-size: 1.2em; /* أصغر شوي */
  }
  .play-btn {
    padding: 0.6em 1.2em;
    font-size: 0.9em;
  }
  .hero-header h1 {
    font-size: 4em;
  }
  .hero-header h2 {
    font-size: 2em;
  }
}

/* Adjustments for mobile */
@media (max-width: 480px) {
  body {
    padding: 1em;
  }
  .game-card {
    padding: 1em;
  }
  .game-icon {
    font-size: 1.8em;
  }
  .game-card h2 {
    font-size: 1em;
  }
  .play-btn {
    padding: 0.5em 1em;
    font-size: 0.85em;
  }
  .hero-header h1 {
    font-size: 6em;
  }
  .hero-header h2 {
    font-size: 3em;
  }
}
