/* style/arcade-games.css */

/* Base Styles for the Arcade Games Page */
.page-arcade-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #f8f9fa; /* Light background for the page content */
}

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

.page-arcade-games__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-arcade-games__highlight {
  color: #007bff;
  font-weight: bold;
}

/* Hero Section */
.page-arcade-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff; /* White text for dark background */
  padding-bottom: 50px; /* Padding for content below image */
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-top: 60px; /* Standard top padding for non-homepage first section */
  background: linear-gradient(135deg, #007bff, #28a745); /* Gradient fallback */
}

.page-arcade-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-arcade-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image to ensure text contrast */
}

.page-arcade-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 40px; /* Adjust as needed to position below potential fixed header */
}

.page-arcade-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-arcade-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-arcade-games__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-arcade-games__btn-primary,
.page-arcade-games__btn-secondary,
.page-arcade-games__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-arcade-games__btn-primary {
  background-color: #28a745; /* Auxiliary color for CTA */
  color: #ffffff;
  border: 2px solid #28a745;
}

.page-arcade-games__btn-primary:hover {
  background-color: #218838;
  border-color: #218838;
}

.page-arcade-games__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-arcade-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-arcade-games__btn-tertiary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-arcade-games__btn-tertiary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Info Section */
.page-arcade-games__info-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text */
}

.page-arcade-games__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-arcade-games__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-arcade-games__text-content {
  flex: 1;
  min-width: 300px;
}

.page-arcade-games__text-block {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-arcade-games__text-block--center {
  text-align: center;
}

.page-arcade-games__image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-arcade-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.page-arcade-games__categories-section {
  padding: 60px 0;
  background-color: #007bff; /* Primary color background */
  color: #ffffff; /* White text */
}

.page-arcade-games__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-arcade-games__category-card {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-arcade-games__category-card:hover {
  transform: translateY(-5px);
}

.page-arcade-games__category-icon {
  width: 30px; /* Allowed small size for icons */
  height: 30px; /* Allowed small size for icons */
  margin-bottom: 15px;
  filter: none; /* Ensure no CSS filter changes color */
}

.page-arcade-games__card-title {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 10px;
}

.page-arcade-games__card-description {
  font-size: 0.95em;
  color: #555555;
}

/* How to Play Section */
.page-arcade-games__how-to-play-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-arcade-games__step-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade-games__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #28a745; /* Auxiliary color for numbers */
  margin-bottom: 15px;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Featured Games Section */
.page-arcade-games__featured-games-section {
  padding: 60px 0;
  background-color: #007bff;
  color: #ffffff;
}

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

.page-arcade-games__game-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-arcade-games__game-card:hover {
  transform: translateY(-5px);
}

.page-arcade-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes color */
}

.page-arcade-games__game-card .page-arcade-games__card-title {
  padding: 15px 20px 5px;
  color: #007bff;
  text-align: left;
}

.page-arcade-games__game-card .page-arcade-games__card-description {
  padding: 0 20px 15px;
  text-align: left;
  flex-grow: 1;
}

.page-arcade-games__game-card .page-arcade-games__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  box-sizing: border-box;
  background-color: #28a745;
  border-color: #28a745;
}

/* Mobile Gaming Section */
.page-arcade-games__mobile-gaming-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

/* Responsible Gaming Section */
.page-arcade-games__responsible-gaming-section {
  padding: 60px 0;
  background-color: #007bff;
  color: #ffffff;
}

/* FAQ Section */
.page-arcade-games__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

.page-arcade-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-arcade-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-arcade-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #f0f8ff; /* Light blue for question background */
  color: #007bff;
  font-weight: bold;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-arcade-games__faq-question:hover {
  background-color: #e6f2ff;
}

.page-arcade-games__faq-title {
  margin: 0;
  font-size: 1.15em;
  color: #007bff;
}

.page-arcade-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-toggle {
  transform: rotate(45deg);
}

.page-arcade-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-arcade-games__faq-item.active .page-arcade-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px;
}

/* Call to Action Section (Final) */
.page-arcade-games__cta-section {
  padding: 60px 0;
  background-color: #28a745; /* Auxiliary color background */
  color: #ffffff;
  text-align: center;
}

.page-arcade-games__cta-section .page-arcade-games__section-title {
  color: #ffffff;
}

.page-arcade-games__cta-section .page-arcade-games__section-description {
  color: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-arcade-games__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

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

  .page-arcade-games__hero-content {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-arcade-games__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding on mobile for non-homepage first section */
  }

  .page-arcade-games__container {
    padding: 15px;
  }

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

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

  .page-arcade-games__content-wrapper {
    flex-direction: column;
  }

  .page-arcade-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-arcade-games__image-container,
  .page-arcade-games__content-wrapper,
  .page-arcade-games__category-grid,
  .page-arcade-games__steps-grid,
  .page-arcade-games__game-grid,
  .page-arcade-games__faq-list,
  .page-arcade-games__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade-games p,
  .page-arcade-games li {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .page-arcade-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

  .page-arcade-games__btn-primary,
  .page-arcade-games__btn-secondary,
  .page-arcade-games__btn-tertiary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}

/* Contrast Fixes for specific elements if needed - based on dynamic analysis */
.page-arcade-games__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
}

.page-arcade-games__light-bg {
  color: #333333; /* Light background, dark text */
}

.page-arcade-games__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-arcade-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}