/* style/arcade.css */

.page-arcade {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  color: #333333; /* Dark text for light body background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9; /* Explicitly set for content area background consistency */
}

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

.page-arcade__hero-section {
  background-color: #0A2342; /* Deep blue background for hero */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px 60px; /* Adjust padding for hero section */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-arcade__hero-content {
  z-index: 1;
}

.page-arcade__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  line-height: 1.2;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-arcade__hero-button {
  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, color 0.3s ease, transform 0.3s ease;
}

.page-arcade__hero-button--primary {
  background-color: #FFD700; /* Gold button */
  color: #0A2342; /* Deep blue text */
}

.page-arcade__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__hero-button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-arcade__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #0A2342;
  transform: translateY(-3px);
}

.page-arcade__hero-image {
  margin-top: 40px;
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.page-arcade__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #0A2342; /* Deep blue for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-arcade__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.page-arcade__keyword {
  color: #0A2342;
  font-weight: bold;
}

/* About Section */
.page-arcade__about-section {
  padding: 80px 0;
}

/* Games Showcase Section */
.page-arcade__games-showcase {
  background-color: #e8e8e8; /* Light grey background */
  padding: 80px 0;
}

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

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-arcade__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.page-arcade__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-arcade__game-card-title {
  font-size: 1.6em;
  color: #0A2342;
  margin: 25px 20px 15px;
  flex-grow: 1;
}

.page-arcade__game-card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 25px;
  line-height: 1.7;
}

.page-arcade__game-card-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2342;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__game-card-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Advantages Section */
.page-arcade__advantages-section {
  padding: 80px 0;
  background-color: #0A2342;
  color: #ffffff;
}

.page-arcade__advantages-section .page-arcade__section-title {
  color: #FFD700;
}

.page-arcade__advantages-section .page-arcade__section-title::after {
  background-color: #ffffff;
}

.page-arcade__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.page-arcade__advantage-item {
  text-align: center;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.page-arcade__advantage-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-arcade__advantage-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-arcade__advantage-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-arcade__image-container {
  text-align: center;
}

.page-arcade__advantages-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* How to Play Section */
.page-arcade__how-to-play-section {
  padding: 80px 0;
}

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

.page-arcade__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  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__step-number {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #0A2342;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-arcade__step-title {
  font-size: 1.5em;
  color: #0A2342;
  margin-bottom: 15px;
}

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

.page-arcade__step-button {
  display: inline-block;
  background-color: #0A2342;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__step-button:hover {
  background-color: #061a33;
  transform: translateY(-2px);
}

/* Strategy and Responsible Gaming Sections */
.page-arcade__strategy-section,
.page-arcade__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-arcade__strategy-section .page-arcade__section-text,
.page-arcade__responsible-gaming-section .page-arcade__section-text {
  text-align: left;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.page-arcade__text-link {
  color: #0A2342;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-arcade__text-link:hover {
  color: #FFD700;
}

/* CTA Section */
.page-arcade__cta-section {
  background-color: #FFD700; /* Gold background for CTA */
  padding: 80px 20px;
  text-align: center;
  color: #0A2342; /* Deep blue text */
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #0A2342;
}

.page-arcade__cta-section .page-arcade__section-title::after {
  background-color: #0A2342;
}

.page-arcade__cta-section .page-arcade__section-text {
  color: #0A2342;
  margin-bottom: 40px;
}

.page-arcade__cta-button {
  display: inline-block;
  background-color: #0A2342; /* Deep blue button */
  color: #FFD700; /* Gold text */
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-arcade__cta-button:hover {
  background-color: #061a33;
  transform: translateY(-5px);
}

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

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

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

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-arcade__hero-section {
    padding: 60px 20px 40px;
  }

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

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

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

  .page-arcade__hero-button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-arcade__section-text {
    font-size: 1em;
  }

  .page-arcade__game-grid,
  .page-arcade__advantages-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade__game-card-image,
  .page-arcade__advantages-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }

  /* Ensure all images within .page-arcade are responsive and not too small */
  .page-arcade img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size even if scaled */
    min-height: 200px;
    object-fit: cover;
  }

  .page-arcade__game-card-image {
    height: 200px; /* Adjust card image height for mobile */
  }
}

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

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

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

  .page-arcade__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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