/* style/arcade.css */

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

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

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

.page-arcade__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #FFF6D6;
  text-align: center;
}

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

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

.page-arcade__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-arcade__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color Border */
}

.page-arcade__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A; /* Dark text for contrast */
}

.page-arcade__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-arcade__center-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 60px;
}

.page-arcade__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  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;
}

.page-arcade__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for responsive H1 */
  font-weight: 900;
  color: #FFD36B; /* Auxiliary Color for prominence */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-arcade__hero-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #FFF6D6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Intro Section & Dark Sections */
.page-arcade__intro-section,
.page-arcade__dark-section {
  background-color: #0A0A0A; /* Background */
  padding: 60px 0;
  margin-bottom: 60px;
}

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

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

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

.page-arcade__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-arcade__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary Color */
  margin-bottom: 15px;
}

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

.page-arcade__category-card {
  background-color: #111111; /* Card BG */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: all 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px; /* Ensure cards have minimum height */
}

.page-arcade__category-card:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-5px);
}

.page-arcade__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-arcade__category-name {
  font-size: 1.1em;
  font-weight: bold;
}

/* Top Games Section */
.page-arcade__top-games-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-arcade__game-card {
  background-color: #111111; /* Card BG */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-arcade__game-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Getting Started Section */
.page-arcade__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

/* Promo Section */
.page-arcade__promo-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.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: #111111; /* Card BG */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-arcade__provider-logo {
  width: 100%; /* Will be constrained by grid cell */
  max-width: 167px; /* Specific size for game type */
  height: auto;
  max-height: 127px;
  object-fit: contain;
  filter: brightness(0.8) grayscale(100%); /* Slightly dim and grayscale for background effect */
  transition: filter 0.3s ease;
}

.page-arcade__provider-logo:hover {
  filter: brightness(1) grayscale(0%); /* Full color on hover */
}

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

.page-arcade__faq-list {
  margin-top: 40px;
}

.page-arcade__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-arcade__faq-title {
  margin: 0;
  color: inherit; /* Inherit color from question */
  font-size: 1em;
}

.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;
  text-align: left;
}

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

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

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

.page-arcade__cta-section .page-arcade__section-title {
  color: #FFD36B;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-content {
    padding: 0 30px;
  }

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

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

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

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

  .page-arcade__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

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

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

  .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;
  }

  .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__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-arcade__intro-section,
  .page-arcade__features-section,
  .page-arcade__categories-section,
  .page-arcade__top-games-section,
  .page-arcade__getting-started-section,
  .page-arcade__promo-section,
  .page-arcade__providers-section,
  .page-arcade__faq-section,
  .page-arcade__cta-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .page-arcade__feature-card,
  .page-arcade__game-card,
  .page-arcade__step-item,
  .page-arcade__promo-card {
    padding: 20px;
  }

  .page-arcade__feature-image,
  .page-arcade__game-thumbnail,
  .page-arcade__promo-image {
    height: 150px;
  }

  .page-arcade__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .page-arcade__category-card {
    min-height: 100px;
    padding: 15px;
  }

  .page-arcade__providers-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x5 grid for mobile */
  }

  /* Ensure all images are responsive and do not overflow */
  .page-arcade img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-arcade__section,
  .page-arcade__card,
  .page-arcade__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-arcade__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-arcade__providers-grid {
    grid-template-columns: repeat(1, 1fr); /* 1x10 grid for very small screens */
  }
}