/* style/arcade.css */

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

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

.page-arcade__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF6D6;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  width: 100%;
  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 */
  overflow: hidden;
}

.page-arcade__video-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-arcade__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

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

.page-arcade__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFF6D6;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

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

.page-arcade__btn-primary,
.page-arcade__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-arcade__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px #FFD36B;
}

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

.page-arcade__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

/* About Section */
.page-arcade__about-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-arcade__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-arcade__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-arcade__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-arcade__text-content {
  flex: 2;
}

.page-arcade__text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #FFF6D6;
}

/* Top Games Section */
.page-arcade__top-games-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-arcade__game-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #3A2A12; /* Border */
}

.page-arcade__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-arcade__game-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B;
  padding: 0 15px;
}

.page-arcade__game-description {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-arcade__btn-play {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
  max-width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-arcade__btn-play:hover {
  filter: brightness(1.1);
}

/* How to Play Section */
.page-arcade__how-to-play-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-arcade__steps-list {
  list-style: none;
  padding: 0;
}

.page-arcade__step-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

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

.page-arcade__step-item p {
  color: #FFF6D6;
  font-size: 1em;
}

/* Bonuses Section */
.page-arcade__bonuses-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-arcade__bonus-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

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

.page-arcade__bonus-description {
  color: #FFF6D6;
  font-size: 1em;
}

.page-arcade__cta-center {
  text-align: center;
}

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

.page-arcade__features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-arcade__feature-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
}

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

.page-arcade__feature-item p {
  color: #FFF6D6;
  font-size: 1em;
}

/* Partners Section */
.page-arcade__partners-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-arcade__partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Min 150px to accommodate 167px images */
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.page-arcade__partner-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 180px; /* Allow some padding around 167px image */
  height: 147px; /* Allow some padding around 127px image */
  box-sizing: border-box;
}

.page-arcade__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  display: block;
}

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

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

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

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #FFD36B;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-arcade__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

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

.page-arcade__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

/* Call to Action Section */
.page-arcade__cta-section {
  padding: 80px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-arcade__cta-container {
  border: 2px solid #F2C14E; /* Glow color for border */
  border-radius: 15px;
  padding: 60px 40px;
  max-width: 900px;
  background-color: #111111;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.5); /* Subtle glow effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__section-title {
    font-size: 2.2em;
  }

  .page-arcade__hero-description {
    font-size: 1.1em;
  }

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

  .page-arcade__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-arcade__image-wrapper {
    margin-bottom: 30px;
  }

  .page-arcade__game-grid,
  .page-arcade__bonus-grid,
  .page-arcade__features-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-arcade__section-description {
    font-size: 1em;
  }

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

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

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

  .page-arcade__btn-primary,
  .page-arcade__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
  }

  .page-arcade__video-container {
    margin-bottom: 30px;
  }

  /* Image and Container Responsiveness */
  .page-arcade img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-arcade__hero-section,
  .page-arcade__about-section,
  .page-arcade__top-games-section,
  .page-arcade__how-to-play-section,
  .page-arcade__bonuses-section,
  .page-arcade__why-choose-section,
  .page-arcade__partners-section,
  .page-arcade__faq-section,
  .page-arcade__cta-section,
  .page-arcade__container,
  .page-arcade__game-card,
  .page-arcade__bonus-card,
  .page-arcade__feature-item,
  .page-arcade__faq-item,
  .page-arcade__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video Responsiveness */
  .page-arcade__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-arcade__video-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    height: 0 !important;
  }

  .page-arcade__video-section {
    padding-top: 10px !important; /* Small decorative top padding, body handles header offset */
    padding-left: 0;
    padding-right: 0;
  }

  .page-arcade__partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-arcade__partner-item {
    max-width: 100%;
    width: 100%;
  }

  .page-arcade__partner-logo {
    width: 100%;
    height: auto;
  }

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

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

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

  .page-arcade__game-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade__bonus-grid {
    grid-template-columns: 1fr;
  }

  .page-arcade__features-list {
    grid-template-columns: 1fr;
  }

  .page-arcade__hero-section,
  .page-arcade__about-section,
  .page-arcade__top-games-section,
  .page-arcade__how-to-play-section,
  .page-arcade__bonuses-section,
  .page-arcade__why-choose-section,
  .page-arcade__partners-section,
  .page-arcade__faq-section,
  .page-arcade__cta-section {
    padding: 40px 0;
  }

  .page-arcade__cta-container {
    padding: 40px 20px;
  }

  .page-arcade__main-title {
    font-size: clamp(1.8em, 10vw, 2.5em);
  }
}