/* style/arcade.css */
.page-arcade {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #FFF6D6); /* Default text color from custom colors */
  background-color: var(--background-color, #0A0A0A); /* Default background color from custom colors */
  line-height: 1.6;
}

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

.page-arcade__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Brand colors */
  padding-top: var(--header-offset, 120px); /* Desktop: Fixed header spacing */
  padding-bottom: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-arcade__hero-image-container {
  width: 100%;
  max-height: 600px; /* Adjust based on desired hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-arcade__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 15px;
}

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

.page-arcade__hero-description {
  font-size: 1.1em;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: var(--text-main-color, #FFF6D6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-arcade__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-arcade__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-arcade__text-block {
  flex: 1;
}

.page-arcade__text-block p {
  margin-bottom: 15px;
  color: #cccccc;
}

.page-arcade__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Buttons */
.page-arcade__btn-primary,
.page-arcade__btn-secondary,
.page-arcade__btn-play-now,
.page-arcade__btn-large {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

.page-arcade__btn-primary:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E8B02D 100%);
  transform: translateY(-2px);
}

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

.page-arcade__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

.page-arcade__btn-play-now {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-arcade__btn-play-now:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E8B02D 100%);
}

.page-arcade__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Game Cards Grid */
.page-arcade__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-arcade__game-card {
  background: var(--card-bg-color, #111111); /* Custom card background */
  border: 1px solid var(--border-color, #3A2A12); /* Custom border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-arcade__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

.page-arcade__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade__game-card-title {
  font-size: 1.5em;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 10px;
}

.page-arcade__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-arcade__game-card-title a:hover {
  color: #FFD36B; /* Glow color on hover */
}

.page-arcade__game-card-description {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* Why Choose Section */
.page-arcade__dark-section {
  background-color: var(--card-bg-color, #111111); /* Using card BG for dark sections */
  color: #ffffff;
}

.page-arcade__dark-section .page-arcade__section-title,
.page-arcade__dark-section .page-arcade__section-description {
  color: #ffffff;
}

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

.page-arcade__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #3A2A12);
  text-align: center;
}

.page-arcade__feature-title {
  font-size: 1.4em;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 10px;
}

.page-arcade__feature-text {
  color: #cccccc;
  font-size: 0.95em;
}

/* How to Start Section */
.page-arcade__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-arcade__step-item {
  background: var(--card-bg-color, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-arcade__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #0A0A0A;
  box-shadow: 0 0 0 5px #3A2A12;
}

.page-arcade__step-title {
  font-size: 1.3em;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 10px;
}

.page-arcade__step-text {
  color: #cccccc;
  font-size: 0.95em;
}

.page-arcade__cta-buttons--centered {
  margin-top: 40px;
  text-align: center;
}

/* FAQ Section */
.page-arcade__faq-list {
  margin-top: 40px;
}

.page-arcade__faq-item {
  background: var(--card-bg-color, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--text-main-color, #FFF6D6);
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-arcade__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-arcade__faq-item.active .page-arcade__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes 'x' or 'minus' */
}

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

.page-arcade__faq-item.active .page-arcade__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

/* Final CTA Section */
.page-arcade__cta-box {
  background: linear-gradient(135deg, #FFD36B, #F2C14E);
  border-radius: 15px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-arcade__cta-title {
  font-size: 2.8em;
  color: #0A0A0A; /* Dark text on light background */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  color: #333333; /* Dark text on light background */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

  .page-arcade__content-wrapper {
    flex-direction: column;
  }

  .page-arcade__content-wrapper--reverse {
    flex-direction: column;
  }

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

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

  .page-arcade__btn-primary,
  .page-arcade__btn-secondary,
  .page-arcade__btn-play-now,
  .page-arcade__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade__hero-content,
  .page-arcade__container,
  .page-arcade__cta-buttons,
  .page-arcade__game-card,
  .page-arcade__feature-item,
  .page-arcade__step-item,
  .page-arcade__faq-item,
  .page-arcade__cta-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-arcade__cta-buttons--centered .page-arcade__btn-primary,
  .page-arcade__cta-buttons--centered .page-arcade__btn-secondary {
    width: auto !important; /* Allow buttons to shrink if in a row */
    flex-grow: 1;
  }

  .page-arcade__image-responsive,
  .page-arcade__hero-image,
  .page-arcade__game-card-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-arcade__game-card-image {
    height: 180px;
  }

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

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

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

  .page-arcade__hero-image-container {
    max-height: 400px;
  }

  .page-arcade__game-cards-grid,
  .page-arcade__features-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .page-arcade__btn-primary,
  .page-arcade__btn-secondary,
  .page-arcade__btn-play-now,
  .page-arcade__btn-large {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-arcade__hero-cta-buttons {
    flex-direction: column;
  }

  .page-arcade__cta-buttons--centered .page-arcade__btn-primary,
  .page-arcade__cta-buttons--centered .page-arcade__btn-secondary {
    width: 100% !important;
  }
}