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

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

.page-arcade__hero-section {
  position: relative;
  color: #FFFFFF;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  margin: 50px auto;
  max-width: 900px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.page-arcade__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

.page-arcade__button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-arcade__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text */
  border: 2px solid #FFFFFF;
}

.page-arcade__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-arcade__button--card {
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #FCBC45;
  padding: 10px 20px;
  font-size: 0.9em;
  min-width: 150px; /* Card buttons can be slightly smaller but still > 200px overall container */
}

.page-arcade__button--card:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.page-arcade__intro-section, .page-arcade__games-section, .page-arcade__why-choose-section, .page-arcade__how-to-start-section, .page-arcade__responsible-gaming-section, .page-arcade__cta-final-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-arcade__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
}

.page-arcade__text-content {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

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

.page-arcade__game-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 550px; /* Ensure cards are substantial */
}

.page-arcade__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-arcade__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-arcade__game-title {
  font-size: 1.8em;
  color: #000000;
  padding: 20px;
  margin-bottom: 10px;
}

.page-arcade__game-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-arcade__button--card {
  margin: 0 20px 20px;
}

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

.page-arcade__benefit-item {
  background-color: #F8F8F8;
  border-left: 5px solid #FCBC45;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade__benefit-item strong {
  color: #000000;
}

.page-arcade__cta-area {
  text-align: center;
  margin-top: 50px;
}

.page-arcade__how-to-start-section {
  background-color: #F2F2F2;
}

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

.page-arcade__step-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade__step-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 15px;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__responsible-gaming-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-arcade__text-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__text-link:hover {
  text-decoration: underline;
}

.page-arcade__cta-final-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 100px 0;
  text-align: center;
}

.page-arcade__cta-final-section .page-arcade__section-title {
  color: #FFFFFF;
}

.page-arcade__cta-final-section .page-arcade__text-content {
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-arcade__cta-final-section .page-arcade__section-title::after {
  background-color: #FCBC45;
}

.page-arcade__final-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__hero-content {
    padding: 80px 20px;
  }
  .page-arcade__section-title {
    font-size: 2.2em;
  }
  .page-arcade__game-card {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-content {
    padding: 60px 15px;
    margin: 30px auto;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    padding: 12px 25px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-arcade__text-content {
    font-size: 0.95em;
  }
  .page-arcade__game-grid, .page-arcade__benefits-list, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-card {
    min-height: auto;
  }
  .page-arcade__game-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size even on mobile */
    min-height: 200px; /* Enforce minimum size even on mobile */
  }
  .page-arcade__cta-final-section {
    padding: 60px 0;
  }
  .page-arcade__final-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure all images within .page-arcade are responsive and don't overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensures minimum size for all content images */
    min-height: 200px; /* Ensures minimum size for all content images */
  }
  .page-arcade__game-image, .page-arcade__hero-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-content {
    padding: 40px 10px;
    margin: 20px auto;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__game-title {
    font-size: 1.5em;
  }
  .page-arcade__step-title {
    font-size: 1.6em;
  }
}