/* style/arcade.css */
.page-arcade {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-arcade__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #ffffff;
  padding: 60px 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-arcade__hero-container {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-arcade__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for highlight */
  font-weight: bold;
}

.page-arcade__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-arcade__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure button minimum width */
  text-align: center;
}

.page-arcade__hero-button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__hero-button--primary:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-arcade__hero-button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-arcade__hero-button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Limit hero image width */
  margin-top: 40px;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-arcade__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-arcade__text-content {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
}

.page-arcade__highlight {
  color: #FCBC45;
  font-weight: bold;
}

.page-arcade__action-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 15px 30px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  min-width: 200px; /* Ensure button minimum width */
  text-align: center;
}

.page-arcade__action-button:hover {
  background-color: #e0a53a;
}

.page-arcade__about-section, .page-arcade__responsible-gaming-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.page-arcade__games-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-arcade__game-card {
  background-color: #000000;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-arcade__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-arcade__game-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FCBC45;
  padding: 0 15px;
}

.page-arcade__game-card-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-arcade__game-card-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
  min-width: 150px; /* Ensure button minimum width */
  text-align: center;
}

.page-arcade__game-card-button:hover {
  background-color: #e0a53a;
}

.page-arcade__why-choose-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

.page-arcade__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__feature-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade__feature-description {
  font-size: 1em;
  color: #333333;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__feature-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-arcade__how-to-play-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-arcade__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-arcade__step-item {
  background-color: #000000;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__step-title {
  font-size: 1.4em;
  color: #FCBC45;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-arcade__step-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45;
  color: #000000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
  min-width: 120px; /* Ensure button minimum width */
  text-align: center;
}

.page-arcade__step-button:hover {
  background-color: #e0a53a;
}

.page-arcade__tips-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.page-arcade__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__tips-item {
  background-color: #ffffff;
  border-left: 5px solid #FCBC45;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

.page-arcade__tips-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-arcade__tips-description {
  font-size: 1em;
  color: #333333;
  line-height: 1.7;
}

.page-arcade__responsible-gaming-section {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-arcade__responsible-gaming-section .page-arcade__section-title {
  color: #FCBC45;
}

.page-arcade__responsible-gaming-section .page-arcade__text-content {
  color: #f0f0f0;
}

.page-arcade__responsible-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-arcade__faq-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

.page-arcade__faq-items {
  margin-top: 40px;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px;
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: bold;
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #333333;
  line-height: 1.7;
  display: none; /* Hidden by default, toggled by JS */
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
  display: block;
}

.page-arcade__cta-section {
  background-color: #FCBC45;
  color: #000000;
  padding: 60px 20px;
  text-align: center;
}

.page-arcade__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #333333;
}

.page-arcade__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 220px; /* Ensure button minimum width */
  text-align: center;
}

.page-arcade__cta-button--primary {
  background-color: #000000;
  color: #FCBC45;
  border: 2px solid #000000;
}

.page-arcade__cta-button--primary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-arcade__cta-button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-arcade__cta-button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding: 40px 15px 0;
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }

  .page-arcade__hero-title {
    font-size: 2.5em;
  }

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

  .page-arcade__hero-button {
    margin: 10px 5px;
    padding: 12px 20px;
    font-size: 1em;
    min-width: unset;
    width: calc(50% - 10px);
  }

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

  .page-arcade__text-content {
    font-size: 0.95em;
  }

  .page-arcade__game-cards, .page-arcade__feature-list, .page-arcade__steps-list, .page-arcade__tips-list {
    grid-template-columns: 1fr;
  }

  .page-arcade__game-card-image {
    height: 200px;
  }

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

  .page-arcade__cta-button {
    margin: 10px 5px;
    padding: 15px 25px;
    font-size: 1.1em;
    min-width: unset;
    width: calc(50% - 10px);
  }

  /* Ensure images in content areas are responsive and don't overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  .page-arcade__hero-image,
  .page-arcade__game-card-image,
  .page-arcade__feature-image,
  .page-arcade__responsible-gaming-image {
    min-width: 200px; /* Ensure images maintain minimum size on smaller screens if possible, but prioritize max-width: 100% */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-button, .page-arcade__cta-button {
    width: 100%;
    margin: 10px 0;
  }
}