/* style/arcade.css */

/* Base styles for the arcade page content */
.page-arcade {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Page background color */
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-arcade__section-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__link {
  color: #FCBC45; /* Login button color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-arcade__link:hover {
  text-decoration: underline;
}

/* Buttons */
.page-arcade__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
}

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

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

.page-arcade__button--secondary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Black text */
  border: 2px solid #FCBC45;
}

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

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

.page-arcade__button--large {
  padding: 15px 30px;
  font-size: 1.2em;
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 550px; /* Minimum height for hero */
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-arcade__hero-container {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  color: #FFFFFF;
}

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

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

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

/* Introduction Section */
.page-arcade__introduction-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

/* Featured Games Section */
.page-arcade__featured-games-section {
  padding: 80px 0;
}

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

.page-arcade__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade__game-card-image {
  width: 100%;
  height: 267px; /* Maintain aspect ratio for 600x400 source, displayed at 400x267 */
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-arcade__game-card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Why Choose Section */
.page-arcade__why-choose-section {
  padding: 80px 0;
  background-color: #F0F0F0;
}

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

.page-arcade__benefit-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-arcade__benefit-icon {
  width: 100%;
  max-width: 400px; /* Display at 400x300, or scale down */
  height: 300px;
  object-fit: contain; /* Use contain to show full image without cropping */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__benefit-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-arcade__benefit-description {
  font-size: 0.95em;
  color: #666666;
}

/* Getting Started Section */
.page-arcade__getting-started-section {
  padding: 80px 0;
}

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

.page-arcade__step-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

/* FAQ Section */
.page-arcade__faq-section {
  padding: 80px 0;
  background-color: #F8F8F8;
}

.page-arcade__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-arcade__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: hidden;
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #000000;
  padding: 20px;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.page-arcade__faq-item.active .page-arcade__faq-question::after {
  transform: rotate(45deg);
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

/* Call to Action Section */
.page-arcade__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* White text */
  text-align: center;
}

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

.page-arcade__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .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-container {
    padding: 40px 15px;
  }

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

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

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

  .page-arcade__button {
    width: 100%;
  }

  .page-arcade__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

  .page-arcade__section-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-arcade__game-grid, .page-arcade__benefits-grid, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-arcade__game-card-image, .page-arcade__benefit-icon {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't cause overflow */
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
  }

  .page-arcade__game-card-title, .page-arcade__benefit-title, .page-arcade__step-title {
    font-size: 1.5em;
  }

  .page-arcade__faq-question {
    font-size: 1.1em;
  }

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

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

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

  /* Ensure all content area images are responsive and don't cause overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  /* Critical: Ensure content images are not shrunk below 200px */
  .page-arcade__game-card-image,
  .page-arcade__benefit-icon {
    min-width: 200px;
    min-height: 200px;
  }

  /* Specific rule to prevent any img within .page-arcade from being too small on mobile */
  @media (max-width: 768px) {
    .page-arcade img {
      max-width: 100% !important;
      height: auto !important;
      min-width: 200px !important; /* Enforce minimum size even if scaled down */
      min-height: 200px !important;
    }
  }
}

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

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

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

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