/* style/arcade.css */
/* 
  All CSS selectors must use BEM naming convention: .page-arcade__element-name
  No descendant selectors (e.g., .page-arcade .hero-section)
  No global selectors (body, html, *)
  No modification of shared components (.shared-header, .shared-footer)
  Styles are scoped to .page-arcade
  Avoid !important
  Avoid global reset styles
  Ensure styles only affect page content, not header/footer
  HERO main image must be displayed using <img>, not background-image.
*/

.page-arcade {
  /* Ensure proper spacing below the fixed header */
  padding-top: var(--header-offset, 120px); 
  background-color: #f4f4f4; /* Light background from shared.css */
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for hero to make text pop */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-arcade__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the area */
  display: block;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

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

.page-arcade__button--primary {
  background-color: #FF6B00; /* Main brand color */
  color: #ffffff;
  border: 2px solid #FF6B00;
}

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

.page-arcade__button--secondary {
  background-color: transparent;
  color: #FF6B00; /* Main brand color */
  border: 2px solid #FF6B00;
}

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

.page-arcade__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #00A86B; /* Auxiliary color */
    color: #ffffff;
    border: 2px solid #00A86B;
}

.page-arcade__button--small:hover {
    background-color: #008f5a;
    border-color: #008f5a;
}

.page-arcade__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Section Styling */
.page-arcade__introduction-section,
.page-arcade__game-categories-section,
.page-arcade__why-choose-section,
.page-arcade__how-to-start-section,
.page-arcade__faq-section {
  padding: 60px 0;
  background-color: #f4f4f4; /* Light background */
  color: #333333; /* Dark text */
}

.page-arcade__introduction-section {
    background-color: #ffffff; /* White background for contrast */
}

.page-arcade__section-title {
  font-size: 2.5em;
  color: #FF6B00; /* Main brand color */
  text-align: center;
  margin-bottom: 30px;
}

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

/* Game Categories Grid */
.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 550px; /* Ensure cards have similar height */
}

.page-arcade__game-card:hover {
  transform: translateY(-10px);
}

.page-arcade__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

.page-arcade__card-title {
  font-size: 1.8em;
  color: #00A86B; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-arcade__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow description to take available space */
}

/* Why Choose Section */
.page-arcade__why-choose-section {
    background-color: #e9e9e9; /* Slightly darker background for contrast */
}

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

.page-arcade__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
}

.page-arcade__feature-title {
  font-size: 1.5em;
  color: #FF6B00; /* Main brand color */
  margin-bottom: 15px;
}

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

.page-arcade__inline-link {
    color: #00A86B; /* Auxiliary color for inline links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-arcade__inline-link:hover {
    color: #FF6B00; /* Main color on hover */
}

/* How to Start Section */
.page-arcade__how-to-start-section {
    background-color: #ffffff;
}

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

.page-arcade__step-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
}

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

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

.page-arcade__cta-bottom {
  text-align: center;
  margin-top: 80px;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 50px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.page-arcade__cta-bottom img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-arcade__cta-bottom .page-arcade__cta-title,
.page-arcade__cta-bottom .page-arcade__cta-description,
.page-arcade__cta-bottom .page-arcade__button {
  position: relative;
  z-index: 1;
}

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

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

/* FAQ Section */
.page-arcade__faq-section {
    background-color: #e9e9e9;
}

.page-arcade__faq-list {
  margin-top: 40px;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 25px 30px;
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #FF6B00;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-arcade__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #00A86B;
    transition: transform 0.3s ease;
}

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

.page-arcade__faq-answer {
  font-size: 1em;
  color: #555555;
  padding-top: 10px;
  display: none; /* Hidden by default */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.page-arcade__faq-answer.active {
    max-height: 500px; /* Arbitrary large value for smooth transition */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__game-card {
    min-height: auto; /* Allow height to adjust */
  }
}

@media (max-width: 768px) {
  /* Mobile content area images must use max-width: 100%; height: auto; */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  
  .page-arcade__hero-section {
    padding: 60px 0;
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 80%;
    max-width: 300px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-text {
    font-size: 0.95em;
  }
  .page-arcade__game-grid,
  .page-arcade__feature-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-arcade__game-card {
    padding: 20px;
  }
  .page-arcade__game-card img {
    height: 200px; /* Adjust height for mobile */
  }
  .page-arcade__card-title {
    font-size: 1.5em;
  }
  .page-arcade__cta-bottom {
    padding: 30px;
  }
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__cta-description {
    font-size: 1em;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__game-card img {
     /* Further adjust for smaller screens */
  }
  .page-arcade__cta-title {
    font-size: 1.5em;
  }
}