/* style/arcade-games.css */
/* All CSS selectors must use BEM naming: .page-arcade-games__element-name */
/* No descendant selectors, no global selectors, no modification of shared components */
/* Style scope limited to .page-arcade-games */

.page-arcade-games {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

/* Header offset is handled by body padding-top in shared.css */
/* First section only needs a small top padding */
.page-arcade-games__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for the first section */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-arcade-games__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-arcade-games__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-arcade-games__hero-content {
  padding: 20px;
  max-width: 900px;
  margin-top: 40px; /* Space below image */
}

.page-arcade-games__main-title {
  font-size: clamp(1.75rem, 5vw, 2.2rem); /* H1 font size constraint */
  color: #F2C14E; /* Main color */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow color */
}

.page-arcade-games__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-arcade-games__section-title {
  font-size: 2rem;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-arcade-games__paragraph {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade-games__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for light button */
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.3);
}

.page-arcade-games__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.5);
}

.page-arcade-games__button--secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 1px solid #3A2A12; /* Border color */
  box-shadow: none;
}

.page-arcade-games__button--secondary:hover {
  background: rgba(17, 17, 17, 0.8);
  border-color: #F2C14E;
  color: #FFD36B;
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-arcade-games__button--small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-arcade-games__button--large {
  padding: 15px 35px;
  font-size: 1.15rem;
}

.page-arcade-games__cta-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-arcade-games__game-showcase-section,
.page-arcade-games__how-to-play-section,
.page-arcade-games__mobile-section,
.page-arcade-games__security-section,
.page-arcade-games__cta-section {
  padding: 60px 0;
  border-top: 1px solid #3A2A12; /* Border color */
}

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

.page-arcade-games__game-card,
.page-arcade-games__step-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade-games__game-card:hover,
.page-arcade-games__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-arcade-games__game-card img,
.page-arcade-games__step-card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image takes full width */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-arcade-games__card-title,
.page-arcade-games__step-title {
  font-size: 1.4rem;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-arcade-games__card-description,
.page-arcade-games__step-description {
  font-size: 0.95rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

.page-arcade-games__mobile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-arcade-games__mobile-text {
  text-align: center;
  max-width: 700px;
}

.page-arcade-games__mobile-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.page-arcade-games__mobile-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: unset; /* Allow smaller for specific aspect ratio on mobile app */
  min-height: unset; /* Allow smaller for specific aspect ratio on mobile app */
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-arcade-games__mobile-content {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

  .page-arcade-games__mobile-text {
    text-align: left;
  }

  .page-arcade-games__mobile-image {
    order: 2; /* Image on right for desktop */
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-content {
    margin-top: 20px;
  }

  .page-arcade-games__main-title {
    font-size: clamp(1.5rem, 8vw, 1.8rem);
  }

  .page-arcade-games__hero-description {
    font-size: 1rem;
  }

  .page-arcade-games__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade-games__button {
    width: 100%;
    max-width: 300px;
  }

  .page-arcade-games__section-title {
    font-size: 1.7rem;
  }

  .page-arcade-games__game-grid,
  .page-arcade-games__steps-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsiveness for content area */
  .page-arcade-games img {
    max-width: 100%;
    height: auto;
    /* Ensure content images are not smaller than 200px. */
    /* min-width and min-height are set on the base img rule */
  }
}