/* style/arcade.css */

/* Base Styles for .page-arcade */
.page-arcade {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Default to column for mobile-first */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #0A0A0A;
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-arcade__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow */
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.6);
}

.page-arcade__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

/* General Section Styles */
.page-arcade__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  text-align: center;
  color: #F2C14E; /* Main color */
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.4);
}

.page-arcade__section-description {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6; /* Text Main */
}

.page-arcade__highlight {
  color: #FFD36B; /* Glow */
  font-weight: bold;
}

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

/* Dark Background Section */
.page-arcade__dark-section {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
}

/* Light Background Section (for contrast, using #111111 card BG with light text) */
.page-arcade__light-bg {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

/* CTA Buttons */
.page-arcade__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-arcade__btn-primary,
.page-arcade__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-arcade__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast on bright button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-arcade__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  opacity: 0.9;
}

.page-arcade__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Border */
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-arcade__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: #F2C14E; /* Main color */
  color: #111111; /* Dark text for contrast */
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* Intro Section */
.page-arcade__intro-section {
  padding: 60px 0;
}

/* Games Showcase Section */
.page-arcade__games-showcase {
  padding: 60px 0;
}

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

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

.page-arcade__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: #F2C14E; /* Main color */
}

.page-arcade__category-icon {
  width: 30px; /* Adhering to specific exception size */
  height: 30px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-arcade__category-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD36B; /* Glow */
}

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

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

/* Why Choose Us Section */
.page-arcade__why-choose-us {
  padding: 60px 0;
}

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

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

.page-arcade__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: #F2C14E; /* Main color */
}

.page-arcade__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, min 200px */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-arcade__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD36B; /* Glow */
}

.page-arcade__feature-text {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
}

/* Promotions Section */
.page-arcade__promotions-section {
  padding: 60px 0;
}

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

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

.page-arcade__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: #F2C14E; /* Main color */
}

.page-arcade__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, min 200px */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-arcade__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD36B; /* Glow */
}

.page-arcade__promo-text {
  font-size: 0.95em;
  margin-bottom: 25px;
  color: #FFF6D6; /* Text Main */
}

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

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

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

.page-arcade__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.4);
}

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

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

/* Mobile App Section */
.page-arcade__mobile-app-section {
  padding: 60px 0;
}

.page-arcade__mobile-app-layout {
  display: flex;
  flex-direction: column; /* Default to column for mobile */
  align-items: center;
  gap: 40px;
}

.page-arcade__mobile-app-content {
  text-align: center;
  max-width: 600px;
}

.page-arcade__cta-buttons--mobile {
  margin-top: 30px;
}

.page-arcade__mobile-app-image-wrapper {
  width: 100%;
  max-width: 400px; /* Constrain image width */
}

.page-arcade__mobile-app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Security Section */
.page-arcade__security-section {
  padding: 60px 0;
}

/* FAQ Section */
.page-arcade__faq-section {
  padding: 60px 0;
}

.page-arcade__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-arcade__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  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;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #FFD36B; /* Glow */
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: #1a1a1a;
}

.page-arcade__faq-title {
  margin: 0;
  flex-grow: 1;
  color: inherit;
}

.page-arcade__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Main color */
}

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

.page-arcade__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* Initial padding 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
  padding-top: 0; /* Adjust padding to look better */
}

.page-arcade__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  text-align: left;
}

/* Final CTA Section */
.page-arcade__final-cta {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-arcade__hero-section {
    flex-direction: row; /* Desktop: image on left, content on right */
    text-align: left;
    padding-top: 80px; /* More padding for desktop hero */
    padding-bottom: 80px;
  }

  .page-arcade__hero-image-wrapper {
    flex: 1;
    margin-right: 40px;
    margin-bottom: 0;
  }

  .page-arcade__hero-content {
    flex: 1;
    padding: 0;
  }

  .page-arcade__cta-buttons {
    justify-content: flex-start; /* Align buttons left on desktop */
  }

  .page-arcade__mobile-app-layout {
    flex-direction: row; /* Desktop: app content left, image right */
    text-align: left;
    justify-content: center;
  }

  .page-arcade__mobile-app-content {
    text-align: left;
    margin-right: 40px;
  }

  .page-arcade__cta-buttons--mobile {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .page-arcade {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-arcade__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* All images */
  .page-arcade img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers (including cards, image wrappers) */
  .page-arcade__hero-image-wrapper,
  .page-arcade__mobile-app-image-wrapper,
  .page-arcade__category-card,
  .page-arcade__feature-card,
  .page-arcade__promo-card,
  .page-arcade__step-card,
  .page-arcade__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* All buttons */
  .page-arcade__cta-button,
  .page-arcade__btn-primary,
  .page-arcade__btn-secondary,
  .page-arcade a[class*="button"],
  .page-arcade a[class*="btn"] {
    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;
  }
  
  /* Button containers mobile adaptation */
  .page-arcade__cta-buttons,
  .page-arcade__button-group,
  .page-arcade__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-arcade__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 for smaller screens */
  }

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

  .page-arcade__category-icon {
    width: 30px; /* Adhering to specific exception size */
    height: 30px;
  }

  .page-arcade__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }
}

/* No CSS filters allowed on images */
.page-arcade img {
  filter: none;
}