/* style/arcade.css */

.page-arcade {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-arcade__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 60px;
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text on dark background */
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%; /* Ensure image is responsive */
  object-fit: cover;
  border-radius: 10px;
  margin-top: 30px;
}

.page-arcade__hero-container {
  max-width: 900px;
  margin-bottom: 30px;
  z-index: 1;
}

.page-arcade__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FCBC45;
}

.page-arcade__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.05em;
  text-align: center;
}

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

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

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

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

.page-arcade__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 6px;
}

.page-arcade__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 25px;
  color: #000000;
  padding-top: 40px;
}

.page-arcade__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
  color: #555555;
}

.page-arcade__features-section,
.page-arcade__games-showcase,
.page-arcade__cta-section,
.page-arcade__guide-section,
.page-arcade__seo-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-arcade__feature-card,
.page-arcade__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__feature-card:hover,
.page-arcade__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-arcade__feature-icon {
  width: 250px;
  height: 187px; /* Maintain aspect ratio for 400x300 display */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}

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

.page-arcade__feature-description,
.page-arcade__game-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.page-arcade__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.page-arcade__game-card .page-arcade__button {
  margin-top: 20px;
  width: auto;
  align-self: center;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

.page-arcade__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-arcade__cta-content {
  max-width: 800px;
}

.page-arcade__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-arcade__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-arcade__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-arcade__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.page-arcade__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-arcade__guide-step {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-arcade__guide-step-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #000000;
}

.page-arcade__guide-step-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-arcade__seo-content h2,
.page-arcade__seo-content h3 {
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-arcade__seo-content h2 {
  font-size: 2em;
}

.page-arcade__seo-content h3 {
  font-size: 1.5em;
}

.page-arcade__seo-content p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

.page-arcade__seo-content p a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__seo-content p a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }

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

  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade__button {
    width: 80%;
    max-width: 300px;
    padding: 10px 20px;
  }

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

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

  .page-arcade__features-grid,
  .page-arcade__game-cards-grid,
  .page-arcade__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-arcade__hero-section,
  .page-arcade__features-section,
  .page-arcade__games-showcase,
  .page-arcade__cta-section,
  .page-arcade__guide-section,
  .page-arcade__seo-content {
    padding: 20px 15px;
  }

  /* Ensure all images within .page-arcade are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  .page-arcade__feature-icon {
    width: 100%;
    height: auto;
    max-width: 300px; /* Constraint for smaller screens */
  }

  .page-arcade__game-image {
    height: auto;
  }

  .page-arcade__cta-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.6em;
  }

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

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