/* style/game-center.css */
.page-game-center {
  font-family: 'Arial', sans-serif;
  color: #e5dfd3; /* Light text for dark background */
  background-color: #1A202C; /* Main brand color */
  line-height: 1.6;
}

.page-game-center .highlight {
  color: #FFD700; /* Auxiliary brand color */
}

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

.page-game-center__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-center__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-game-center__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #e5dfd3;
}

.page-game-center__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-game-center__button--primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-game-center__button--primary:hover {
  background-color: #e5c100;
  border-color: #e5c100;
  color: #000;
}

.page-game-center__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  margin-left: 15px;
}

.page-game-center__button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-game-center__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-game-center__button--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

.page-game-center__button--cta {
  background-color: #FFD700;
  color: #1A202C;
  border: none;
}

.page-game-center__button--cta:hover {
  background-color: #e5c100;
}

/* Hero Section */
.page-game-center__hero {
  background: linear-gradient(135deg, #1A202C 0%, #333d4e 100%);
  padding: 100px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.page-game-center__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-game-center__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-game-center__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-game-center__hero-title {
  font-size: 4em;
  color: #e5dfd3;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-center__hero-description {
  font-size: 1.4em;
  color: #ccc;
  margin-bottom: 40px;
}

.page-game-center__hero-actions .page-game-center__button {
  margin: 0 10px;
}

/* Introduction Section */
.page-game-center__introduction {
  padding: 80px 0;
  background-color: #242b38;
}

/* Game Categories Section */
.page-game-center__game-categories {
  padding: 80px 0;
  background-color: #1A202C;
}

.page-game-center__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-center__category-card {
  background-color: #242b38;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-center__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-game-center__category-title {
  font-size: 1.8em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-game-center__category-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-game-center__category-title a:hover {
  text-decoration: underline;
}

.page-game-center__category-description {
  font-size: 1em;
  color: #ccc;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-game-center__card-actions {
  padding: 0 15px 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto; /* Push actions to the bottom */
}

/* Why Choose Section */
.page-game-center__why-choose {
  padding: 80px 0;
  background-color: #242b38;
}

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

.page-game-center__feature-item {
  text-align: center;
  background-color: #1A202C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-game-center__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: invert(70%) sepia(80%) saturate(2000%) hue-rotate(0deg) brightness(120%) contrast(100%); /* Gold effect */
}

.page-game-center__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-game-center__feature-description {
  font-size: 1em;
  color: #ccc;
}

.page-game-center__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Promotions Section */
.page-game-center__promotions {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-game-center__promo-card {
  background-color: #242b38;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-game-center__promo-card:hover {
  transform: translateY(-10px);
}

.page-game-center__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-game-center__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-game-center__promo-description {
  font-size: 1em;
  color: #ccc;
  padding: 0 15px 20px;
}

/* App Download Section */
.page-game-center__app-download {
  padding: 80px 0;
  background-color: #242b38;
}

.page-game-center__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-game-center__app-text {
  flex: 1;
  min-width: 300px;
}

.page-game-center__app-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  color: #e5dfd3;
}

.page-game-center__app-benefits li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-game-center__list-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  filter: invert(70%) sepia(80%) saturate(2000%) hue-rotate(0deg) brightness(120%) contrast(100%); /* Gold effect */
}

.page-game-center__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-game-center__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.page-game-center__faq {
  padding: 80px 0;
  background-color: #1A202C;
}

.page-game-center__faq-items {
  margin-top: 50px;
}

.page-game-center__faq-item {
  background-color: #242b38;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-center__faq-question {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-game-center__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-game-center__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-game-center__faq-answer {
  font-size: 1em;
  color: #ccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
}

.page-game-center__faq-answer.active {
  max-height: 200px; /* Adjust based on expected content length */
  padding-top: 15px;
}

/* Floating Ad */
.page-game-center__floating-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background-color: #242b38;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1000;
  display: none; /* Hidden by default, shown by JS */
  animation: page-game-center-fadeInUp 0.5s ease-out forwards;
}

.page-game-center__floating-ad a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-game-center__floating-ad-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.page-game-center__floating-ad-text {
  display: block;
  padding: 10px 15px;
  color: #FFD700;
  font-weight: bold;
  text-align: center;
  font-size: 1em;
}

.page-game-center__close-ad-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.3s ease;
}

.page-game-center__close-ad-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

@keyframes page-game-center-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-center__hero-title {
    font-size: 3em;
  }
  .page-game-center__hero-description {
    font-size: 1.2em;
  }
  .page-game-center__section-title {
    font-size: 2.2em;
  }
  .page-game-center__app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-game-center__app-text, .page-game-center__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-game-center__hero {
    padding: 80px 0;
    min-height: 500px;
  }
  .page-game-center__hero-title {
    font-size: 2.5em;
  }
  .page-game-center__hero-description {
    font-size: 1em;
  }
  .page-game-center__hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-game-center__button--secondary {
    margin-left: 0;
  }
  .page-game-center__section-title {
    font-size: 1.8em;
  }
  .page-game-center__paragraph {
    font-size: 0.95em;
  }
  .page-game-center__features-grid, .page-game-center__promo-grid, .page-game-center__category-grid {
    grid-template-columns: 1fr;
  }
  .page-game-center__floating-ad {
    width: 90%;
    left: 5%;
    right: 5%;
    bottom: 10px;
  }
  .page-game-center__floating-ad-image {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .page-game-center__hero-title {
    font-size: 2em;
  }
  .page-game-center__section-title {
    font-size: 1.5em;
  }
  .page-game-center__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-game-center__floating-ad-text {
    font-size: 0.9em;
  }
}