/* style/arcade.css */

/* Base Styles for the Arcade Page */
.page-arcade {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Body background from custom colors */
}

/* Container for consistent content width */
.page-arcade__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-arcade__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Brand colors for hero background */
  padding-top: var(--header-offset, 120px); /* Account for fixed header on desktop */
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-arcade__hero-section .page-arcade__container {
  display: flex;
  flex-direction: column; /* Image above text on desktop */
  align-items: center;
  gap: 40px;
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2; /* Ensure text is above any background elements */
  max-width: 800px;
  margin: 0 auto;
  color: #111111; /* Dark text for light gradient background */
}

.page-arcade__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size, not fixed large */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #111111; /* Dark text for light gradient background */
}

.page-arcade__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #111111; /* Dark text for light gradient background */
}

.page-arcade__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Constrain hero image width */
  margin-top: 40px; /* Space between text and image */
  z-index: 1; /* Image below text if any overlap (though not intended) */
}

.page-arcade__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Call to Action Buttons */
.page-arcade__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 100%;
  box-sizing: border-box;
}

.page-arcade__btn-primary,
.page-arcade__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
}

.page-arcade__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #111111; /* Dark text for light gradient button */
  border: 2px solid transparent;
}

.page-arcade__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
  filter: brightness(1.1);
}

.page-arcade__btn-secondary {
  background: #111111; /* Card BG color */
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #FFD36B; /* Glow color for border */
}

.page-arcade__btn-secondary:hover {
  transform: translateY(-3px);
  background: #222222; /* Slightly lighter on hover */
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.2);
}

/* General Section Styles */
.page-arcade__section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Default dark background for sections */
}

.page-arcade__section:nth-child(even) {
  background-color: #111111; /* Alternate background for better visual separation */
}

.page-arcade__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #F2C14E; /* Main brand color for titles */
}

.page-arcade__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #FFF6D6; /* Main text color */
}

.page-arcade__section-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Explore Games Section */
.page-arcade__explore-games {
  padding-bottom: 0; /* No padding at the bottom of this section */
}

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

.page-arcade__category-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-arcade__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-arcade__category-icon {
  width: 30px; /* Allowed small size for category icons */
  height: 30px;
  margin-bottom: 15px;
  display: inline-block; /* Ensure it respects text alignment */
  filter: drop-shadow(0 0 5px #FFD36B); /* Glow effect, not color change */
}

.page-arcade__category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color for titles */
}

.page-arcade__category-description {
  font-size: 0.95rem;
  color: #FFF6D6; /* Main text color */
}

/* Why Choose Section */
.page-arcade__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-arcade__feature-item {
  background-color: #0A0A0A; /* Background color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-arcade__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Main brand color */
}

.page-arcade__feature-text {
  font-size: 1rem;
  color: #FFF6D6; /* Main text color */
}

/* Getting Started Section */
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-arcade__step-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-arcade__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD36B; /* Glow color */
}

.page-arcade__step-text {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #FFF6D6; /* Main text color */
}

/* Promotions Section */
.page-arcade__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-arcade__promo-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-arcade__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-arcade__promo-card .page-arcade__btn-secondary {
  margin-top: auto; /* Push button to the bottom */
  width: calc(100% - 60px); /* Adjust for padding */
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 30px;
}

.page-arcade__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 20px 30px 10px;
  color: #F2C14E; /* Main brand color */
}

.page-arcade__promo-text {
  font-size: 0.95rem;
  padding: 0 30px 20px;
  color: #FFF6D6; /* Main text color */
  flex-grow: 1; /* Allow text to grow and fill space */
}

.page-arcade__view-all-promos {
  display: block;
  margin: 50px auto 0;
  max-width: 300px;
}

/* FAQ Section */
.page-arcade__faq {
  padding-bottom: 100px;
}

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

.page-arcade__faq-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #0A0A0A; /* Background color */
  color: #F2C14E; /* Main brand color */
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: #1a1a1a; /* Slightly lighter on hover */
}

.page-arcade__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow color */
}

.page-arcade__faq-item.active .page-arcade__faq-toggle {
  transform: rotate(45deg); /* Plus to X/Minus for active state */
}

.page-arcade__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px; /* Initial padding */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Main text color */
  background-color: #111111; /* Card BG color */
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 30px; /* Expanded padding */
}

.page-arcade__faq-a-text {
  margin: 0;
  padding-bottom: 10px; /* Small bottom padding for text */
}

/* Final CTA Section */
.page-arcade__cta-final {
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
  background-color: #0A0A0A; /* Background color */
}

.page-arcade__cta-final .page-arcade__cta-buttons {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__container {
    padding: 0 15px;
  }

  .page-arcade__hero-section {
    padding-bottom: 60px;
  }

  .page-arcade__section {
    padding: 60px 0;
  }

  .page-arcade__game-categories,
  .page-arcade__features-grid,
  .page-arcade__steps-grid,
  .page-arcade__promo-cards {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure header offset */
    padding-bottom: 40px;
  }

  .page-arcade__hero-content {
    order: 2; /* Text below image on mobile */
  }

  .page-arcade__hero-image-wrapper {
    order: 1; /* Image above text on mobile */
    margin-top: 0; /* Remove top margin */
    margin-bottom: 30px; /* Add bottom margin for separation */
  }

  .page-arcade__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-arcade__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-arcade__btn-primary,
  .page-arcade__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-arcade__section {
    padding: 40px 0;
  }

  .page-arcade__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-arcade__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Force image responsiveness with !important */
  .page-arcade img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure content containers are responsive */
  .page-arcade__section,
  .page-arcade__card,
  .page-arcade__container,
  .page-arcade__game-categories,
  .page-arcade__features-grid,
  .page-arcade__steps-grid,
  .page-arcade__promo-cards,
  .page-arcade__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade__game-categories,
  .page-arcade__features-grid,
  .page-arcade__steps-grid,
  .page-arcade__promo-cards {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }

  .page-arcade__promo-image {
    height: 180px; /* Adjust height for mobile cards */
  }

  .page-arcade__promo-card .page-arcade__btn-secondary {
    width: calc(100% - 30px); /* Adjust for 15px padding on container */
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
  }

  .page-arcade__promo-title,
  .page-arcade__promo-text {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-arcade__faq-answer {
    padding: 0 20px;
  }

  .page-arcade__faq-item.active .page-arcade__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-arcade__main-title {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }

  .page-arcade__section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
}

/* Color Contrast Safeguards - Overrides for specific elements if needed */
/* Ensure text on gradient background is dark enough */
.page-arcade__hero-content h1,
.page-arcade__hero-content p {
  color: #111111; /* Dark text for light gradient background */
}

/* Button text on gradient buttons */
.page-arcade__btn-primary {
  color: #111111; /* Dark text for light gradient button */
}

/* Button text on dark background buttons */
.page-arcade__btn-secondary {
  color: #FFD36B; /* Light text for dark background button */
}

/* Links within content */
.page-arcade a {
  color: #FFD36B; /* Glow color for links */
  text-decoration: underline;
}

.page-arcade a:hover {
  color: #F2C14E; /* Main color on hover */
}

/* Ensure all p and li tags have sufficient contrast on main background */
.page-arcade p,
.page-arcade li {
  color: #FFF6D6; /* Main text color for dark background */
}

/* Ensure card titles and text have sufficient contrast on card background */
.page-arcade__category-title,
.page-arcade__feature-title,
.page-arcade__step-title,
.page-arcade__promo-title {
  color: #F2C14E; /* Brand color for titles */
}

.page-arcade__category-description,
.page-arcade__feature-text,
.page-arcade__step-text,
.page-arcade__promo-text {
  color: #FFF6D6; /* Main text color */
}

.page-arcade__faq-q-text {
  color: #F2C14E; /* Brand color for FAQ questions */
}

.page-arcade__faq-a-text {
  color: #FFF6D6; /* Main text color for FAQ answers */
}