/* style/popular-games.css */
.page-popular-games {
  font-family: 'Arial', sans-serif;
  color: #f5db9c; /* Lighter text for dark backgrounds */
  background-color: #0A2463; /* Primary dark background */
  line-height: 1.6;
}

.page-popular-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-popular-games__hero {
  background: linear-gradient(135deg, #0A2463 0%, #1A3F80 100%); /* Dark blue gradient */
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-popular-games__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Secondary gold for titles */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-popular-games__hero-description {
  font-size: 1.2em;
  color: #f5db9c;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-popular-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-popular-games__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #0A2463; /* Dark blue text on gold */
}

.page-popular-games__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-popular-games__btn--secondary {
  background-color: #1A3F80; /* Darker blue button */
  color: #FFD700; /* Gold text on dark blue */
  border: 1px solid #FFD700;
  padding: 10px 20px;
  font-size: 1em;
}

.page-popular-games__btn--secondary:hover {
  background-color: #2A5C9E;
  transform: translateY(-2px);
}

.page-popular-games__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-popular-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-popular-games__section:nth-of-type(even) {
  background-color: #1A3F80; /* Alternate section background */
}

.page-popular-games__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-popular-games__section-description {
  font-size: 1.1em;
  color: #d0dbe2; /* Slightly lighter text for readability */
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-popular-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-popular-games__game-card {
  background-color: #0A2463;
  border: 1px solid #FFD700;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-popular-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-popular-games__game-card-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #FFD700;
}

.page-popular-games__game-card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-popular-games__game-card-text {
  font-size: 1em;
  color: #f5db9c;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-popular-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-popular-games__feature-item {
  background-color: #0A2463;
  border: 1px solid #FFD700;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-popular-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-popular-games__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
}

.page-popular-games__feature-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-popular-games__feature-text {
  font-size: 0.95em;
  color: #f5db9c;
}

.page-popular-games__steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-popular-games__steps li {
  background-color: #1A3F80;
  border: 1px solid #FFD700;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-popular-games__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-popular-games__step-text {
  font-size: 1em;
  color: #d0dbe2;
}

.page-popular-games__responsible-gaming p {
  max-width: 900px;
  margin: 0 auto;
  color: #d0dbe2;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-popular-games__hero-title {
    font-size: 2.8em;
  }

  .page-popular-games__section-title {
    font-size: 2em;
  }

  .page-popular-games__grid, .page-popular-games__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-popular-games__hero {
    padding: 80px 0;
  }

  .page-popular-games__hero-title {
    font-size: 2.2em;
  }

  .page-popular-games__hero-description {
    font-size: 1em;
  }

  .page-popular-games__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-popular-games__section {
    padding: 40px 0;
  }

  .page-popular-games__section-title {
    font-size: 1.8em;
  }

  .page-popular-games__section-description {
    font-size: 0.95em;
  }

  .page-popular-games__game-card, .page-popular-games__feature-item {
    padding: 20px;
  }

  .page-popular-games__game-card-title {
    font-size: 1.4em;
  }

  .page-popular-games__feature-title {
    font-size: 1.2em;
  }

  .page-popular-games__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-popular-games__steps li {
    padding: 20px;
  }

  .page-popular-games__step-title {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .page-popular-games__hero {
    padding: 60px 0;
  }

  .page-popular-games__hero-title {
    font-size: 1.8em;
  }

  .page-popular-games__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-popular-games__section-title {
    font-size: 1.5em;
  }

  .page-popular-games__grid, .page-popular-games__features-grid {
    grid-template-columns: 1fr;
  }
}