/* style/arcade.css */

/* Base styles for the page-arcade scope */
.page-arcade {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #f5f5f5; /* Matches body background */
}

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: #1A202C;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding, body handles --header-offset */
  min-height: 600px;
  overflow: hidden;
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.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: 2;
  color: #ffffff;
  max-width: 900px;
}

.page-arcade__main-title {
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #FFD700;
  margin-bottom: 20px;
  font-size: clamp(2.2em, 4vw, 3.5em);
}

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

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

.page-arcade__btn-primary,
.page-arcade__btn-secondary,
.page-arcade__btn-play,
.page-arcade__btn-step,
.page-arcade__btn-promo {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-arcade__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-arcade__btn-primary:hover {
  background-color: #e6c200;
  color: #1A202C;
  border-color: #e6c200;
}

.page-arcade__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-arcade__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

/* Section Backgrounds */
.page-arcade__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-arcade__dark-section .page-arcade__section-title {
  color: #FFD700;
}

.page-arcade__dark-section .page-arcade__text-block {
  color: #f0f0f0;
}

.page-arcade__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

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

/* Features Section */
.page-arcade__features-section {
  padding: 80px 0;
}

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

.page-arcade__feature-card {
  background-color: #2a313e;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #FFD700);
}

.page-arcade__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-arcade__feature-description {
  color: #cccccc;
}

/* Categories Section */
.page-arcade__categories-section {
  padding: 80px 0;
}

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

.page-arcade__category-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-arcade__category-title {
  font-size: 1.3em;
  color: #1A202C;
  margin-bottom: 10px;
}

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

/* Featured Games Section */
.page-arcade__featured-games-section {
  padding: 80px 0;
}

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

.page-arcade__game-card {
  background-color: #2a313e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

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

.page-arcade__game-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-arcade__game-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-arcade__game-title a:hover {
  text-decoration: underline;
}

.page-arcade__game-description {
  color: #cccccc;
  font-size: 1em;
  margin-bottom: 15px;
}

.page-arcade__btn-play {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
  text-align: center;
  width: 100%;
}

.page-arcade__btn-play:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

/* Why Choose Section */
.page-arcade__why-choose-section {
  padding: 80px 0;
}

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

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

.page-arcade__reason-title {
  font-size: 1.4em;
  color: #1A202C;
  margin-bottom: 10px;
}

.page-arcade__reason-description {
  color: #555555;
}

.page-arcade__center-cta {
  text-align: center;
  margin-top: 50px;
}

/* How to Start Section */
.page-arcade__how-to-start-section {
  padding: 80px 0;
}

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

.page-arcade__step-card {
  background-color: #2a313e;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #1A202C;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid #1A202C;
}

.page-arcade__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-arcade__step-description {
  color: #cccccc;
  margin-bottom: 25px;
}

.page-arcade__btn-step {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
  text-align: center;
  padding: 10px 20px;
  width: auto;
  min-width: 150px;
}

.page-arcade__btn-step:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

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

.page-arcade__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.page-arcade__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: none;
}

.page-arcade__promo-title {
  font-size: 1.4em;
  color: #1A202C;
  padding: 15px 20px 0;
}

.page-arcade__promo-description {
  color: #555555;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-arcade__btn-promo {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #1A202C;
  text-align: center;
  padding: 12px 20px;
  margin: 0 20px 20px;
  width: auto;
}

.page-arcade__btn-promo:hover {
  background-color: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

/* Responsible Gaming Section */
.page-arcade__responsible-gaming-section {
  padding: 80px 0;
}

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

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

.page-arcade__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #1A202C;
  background-color: #fcfcfc;
  border-bottom: 1px solid #eeeeee;
}

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

.page-arcade__faq-question h3 {
  margin: 0;
  color: #1A202C;
}

.page-arcade__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

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

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

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

/* Final CTA Section */
.page-arcade__final-cta-section {
  padding: 80px 0;
}

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

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

  .page-arcade__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-arcade__text-block {
    font-size: 1em;
    text-align: left;
  }

  .page-arcade__hero-section {
    padding: 40px 15px;
    min-height: 500px;
  }

  .page-arcade__hero-content {
    padding: 0 10px;
  }

  .page-arcade__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-arcade__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-arcade__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-arcade__btn-primary,
  .page-arcade__btn-secondary,
  .page-arcade__btn-play,
  .page-arcade__btn-step,
  .page-arcade__btn-promo,
  .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;
  }

  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-arcade__features-section,
  .page-arcade__categories-section,
  .page-arcade__featured-games-section,
  .page-arcade__why-choose-section,
  .page-arcade__how-to-start-section,
  .page-arcade__promotions-section,
  .page-arcade__responsible-gaming-section,
  .page-arcade__faq-section,
  .page-arcade__final-cta-section {
    padding: 40px 0;
  }

  .page-arcade__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-arcade__category-icon {
    width: 25px;
    height: 25px;
  }

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

  .page-arcade__promo-image {
    height: 150px;
  }

  .page-arcade__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  /* Mobile image responsiveness */
  .page-arcade img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-arcade__section,
  .page-arcade__card,
  .page-arcade__container,
  .page-arcade__hero-image-wrapper,
  .page-arcade__game-card,
  .page-arcade__promo-card,
  .page-arcade__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness */
  .page-arcade__video-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-arcade__video-container video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-arcade__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-arcade__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }
  .page-arcade__hero-description {
    font-size: 0.9em;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
  .page-arcade__feature-grid, .page-arcade__category-grid, .page-arcade__game-list, .page-arcade__reason-grid, .page-arcade__steps-grid, .page-arcade__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__step-number {
    top: -15px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page-arcade__step-title {
    margin-top: 20px;
  }
}