/* style/arcade.css */

/* Base styling for the arcade page content */
.page-arcade {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  background-color: transparent; /* Body background from shared.css */
}

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

.page-arcade__section {
  padding: 80px 0;
  text-align: center;
}

.page-arcade__section:nth-of-type(even) {
  background-color: rgba(26, 32, 44, 0.5); /* Slightly lighter dark background for contrast */
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Accent color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade__section-intro {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 60px auto;
  color: #e0e0e0;
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 0; /* padding-top handled by .page-arcade */
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability, not color change */
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* Buttons */
.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold accent */
  color: #1A202C; /* Dark text on gold */
}

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

.page-arcade__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border-color: #FFD700;
}

.page-arcade__button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-3px);
}

/* Feature Grid (About Arcade) */
.page-arcade__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.page-arcade__feature-card {
  background-color: #1A202C; /* Dark background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

.page-arcade__feature-image {
  width: 100%;
  height: 250px; /* Ensure images are not small */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-arcade__feature-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

.page-arcade__game-card {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

.page-arcade__game-image {
  width: 100%;
  height: 250px; /* Ensure images are not small */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-arcade__game-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* Why Play Section */
.page-arcade__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  text-align: left;
}

.page-arcade__benefits-item {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

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

.page-arcade__benefits-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* How to Play Section */
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.page-arcade__step-card {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

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

.page-arcade__step-description a {
  color: #FFD700;
  text-decoration: none;
}

.page-arcade__step-description a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-arcade__promo-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  text-align: left;
}

.page-arcade__promo-item {
  background-color: #1A202C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

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

.page-arcade__promo-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-arcade__center-action {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* FAQ Section */
.page-arcade__faq-items {
  margin-top: 60px;
  text-align: left;
}

.page-arcade__faq-item {
  background-color: #1A202C;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-arcade__faq-question {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-arcade__faq-question::after {
  content: '+';
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-arcade__faq-question.page-arcade__faq-question--active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
  padding-top: 0;
}

.page-arcade__faq-answer.page-arcade__faq-answer--active {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 15px;
}

.page-arcade__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

.page-arcade__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-arcade__cta {
  background: linear-gradient(135deg, #1A202C, #0d121c);
  padding: 80px 20px;
}

.page-arcade__cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-arcade__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 500px;
  }
  .page-arcade__hero-content {
    padding: 30px;
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 100%;
    max-width: 300px;
  }
  .page-arcade__section {
    padding: 60px 0;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-arcade__feature-grid,
  .page-arcade__game-grid,
  .page-arcade__benefits-list,
  .page-arcade__steps-grid,
  .page-arcade__promo-list {
    grid-template-columns: 1fr;
  }
  /* Mobile image overflow prevention */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__center-action {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-section {
    min-height: 400px;
  }
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

/* Ensure content area images are not small */
.page-arcade__feature-card img,
.page-arcade__game-card img {
  min-width: 200px; /* Enforce minimum width for images in content cards */
  min-height: 200px; /* Enforce minimum height for images in content cards */
  width: 100%; /* Ensure responsiveness */
  height: auto; /* Maintain aspect ratio */
}

/* Specific rule to ensure no content area img is smaller than 200px, regardless of specific class */
.page-arcade img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure aspect ratio is maintained while filling space */
}