/* style/arcade.css */

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

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

.page-arcade__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-arcade__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: 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: 1920px; /* Max width for the image */
  margin-bottom: 40px;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-arcade__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-arcade__main-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
}

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

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

.page-arcade__btn-primary,
.page-arcade__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-arcade__btn-secondary {
  background-color: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Custom Border */
}

.page-arcade__btn-secondary:hover {
  background-color: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-arcade__intro-section,
.page-arcade__categories-section,
.page-arcade__features-section,
.page-arcade__get-started-section,
.page-arcade__responsible-gaming-section,
.page-arcade__partners-section,
.page-arcade__faq-section,
.page-arcade__final-cta-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-arcade__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Game Categories Section */
.page-arcade__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-arcade__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-arcade__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.6)); /* Add subtle glow */
}

.page-arcade__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  margin-bottom: 15px;
}

.page-arcade__card-description {
  font-size: 0.95em;
  color: #FFF6D6;
}

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

.page-arcade__feature-item {
  background-color: #111111; /* Custom Card BG */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-arcade__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-arcade__feature-description {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 25px;
}

.page-arcade__feature-button {
  margin-top: auto; /* Pushes button to the bottom */
}

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

.page-arcade__step-card {
  background-color: #111111; /* Custom Card BG */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-arcade__step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  margin-bottom: 15px;
}

.page-arcade__step-description {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-arcade__step-button {
  margin-top: auto;
}

/* Partners Section */
.page-arcade__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 2x5 grid for desktop */
  gap: 20px;
  margin-top: 50px;
  justify-items: center;
  align-items: center;
}

.page-arcade__partner-logo {
  max-width: 167px;
  height: 127px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: brightness(0.8) grayscale(0.2); /* Slightly dim for dark background */
}

.page-arcade__partner-logo:hover {
  transform: scale(1.05);
  filter: brightness(1) grayscale(0); /* Brighten on hover */
}

/* FAQ Section */
.page-arcade__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-arcade__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #F2C14E; /* Main Color */
  font-weight: 600;
  font-size: 1.15em;
  transition: background-color 0.3s ease;
}

.page-arcade__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

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

.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;
  font-size: 1em;
}

.page-arcade__faq-item.active .page-arcade__faq-answer {
  max-height: 1000px !important; /* Important for JS functionality */
  padding: 15px 25px 25px 25px;
}

.page-arcade__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-arcade__final-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .page-arcade__partners-grid {
    grid-template-columns: repeat(4, 1fr); /* 2x4 grid for tablet */
  }
}

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

  .page-arcade__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

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

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

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

  .page-arcade__intro-section,
  .page-arcade__categories-section,
  .page-arcade__features-section,
  .page-arcade__get-started-section,
  .page-arcade__responsible-gaming-section,
  .page-arcade__partners-section,
  .page-arcade__faq-section,
  .page-arcade__final-cta-section {
    padding: 40px 0;
  }

  .page-arcade__container {
    padding: 0 15px;
  }

  .page-arcade__game-grid,
  .page-arcade__feature-grid,
  .page-arcade__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .page-arcade__partners-grid {
    grid-template-columns: repeat(3, 1fr); /* 2x3 grid for smaller mobile */
    gap: 15px;
    margin-top: 30px;
  }

  /* Mobile image specific overrides */
  .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__cta-buttons,
  .page-arcade__game-grid,
  .page-arcade__feature-grid,
  .page-arcade__steps-grid,
  .page-arcade__partners-grid,
  .page-arcade__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure padding for sections on mobile */
  .page-arcade__intro-section > .page-arcade__container,
  .page-arcade__categories-section > .page-arcade__container,
  .page-arcade__features-section > .page-arcade__container,
  .page-arcade__get-started-section > .page-arcade__container,
  .page-arcade__responsible-gaming-section > .page-arcade__container,
  .page-arcade__partners-section > .page-arcade__container,
  .page-arcade__faq-section > .page-arcade__container,
  .page-arcade__final-cta-section > .page-arcade__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade__hero-section {
    padding-top: 10px !important; /* Small top padding for hero section */
  }

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

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

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

@media (max-width: 480px) {
  .page-arcade__partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid for very small mobile */
  }
  .page-arcade__hero-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-arcade__container {
    padding: 0 10px;
  }
}

/* Color contrast fixes for specific elements */
.page-arcade__btn-primary {
  color: #111111; /* Dark text for bright button gradient */
}
.page-arcade__btn-secondary {
  color: #FFD36B; /* Light text for transparent button */
}

/* Ensure text blocks have readable colors */
.page-arcade p,
.page-arcade li {
  color: #FFF6D6;
}

.page-arcade__card-description {
  color: #FFF6D6;
}

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

.page-arcade__step-description {
  color: #FFF6D6;
}

.page-arcade__faq-answer {
  color: #FFF6D6;
}