/* style/arcade.css */
.page-arcade {
  color: #FFFFFF; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
  background-color: var(--secondary-color, #000000); /* Ensure dark background for the page content */
}

.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 60px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.9)); /* Dark overlay for text readability */
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-arcade__hero-container {
  max-width: 900px;
  z-index: 1;
  padding: 20px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  line-height: 1.2;
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #FFFFFF;
}

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

.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-arcade__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

.page-arcade__button--primary:hover {
  background-color: #e0a53a;
  transform: translateY(-2px);
}

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

.page-arcade__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-arcade__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #FCBC45;
}

.page-arcade__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-arcade__about-section,
.page-arcade__popular-games-section,
.page-arcade__benefits-section,
.page-arcade__cta-section,
.page-arcade__faq-section,
.page-arcade__game-providers-section {
  padding: 80px 20px;
  background-color: var(--secondary-color, #000000);
}

.page-arcade__about-container,
.page-arcade__popular-games-container,
.page-arcade__benefits-container,
.page-arcade__cta-container,
.page-arcade__faq-container,
.page-arcade__game-providers-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-arcade__feature-card,
.page-arcade__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible dark card */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-arcade__feature-image,
.page-arcade__game-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
}

.page-arcade__feature-title,
.page-arcade__game-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-arcade__feature-text,
.page-arcade__game-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 20px;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-arcade__button--small:hover {
  background-color: #e0a53a;
}

.page-arcade__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 40px;
}

.page-arcade__benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-arcade__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
}

.page-arcade__benefit-content {
  text-align: left;
}

.page-arcade__benefit-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-arcade__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-arcade__cta-section {
  background: linear-gradient(90deg, #000000, rgba(252, 188, 69, 0.1)); /* Mix primary with a hint of login color */
  text-align: center;
  padding: 100px 20px;
}

.page-arcade__cta-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 25px;
  color: #FFFFFF;
}

.page-arcade__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-arcade__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-arcade__button--cta:hover {
  background-color: #e0a53a;
  transform: translateY(-3px);
}

.page-arcade__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__faq-question {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-arcade__faq-question::after {
  content: '+';
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-arcade__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-arcade__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding-top: 0;
}

.page-arcade__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 15px;
}

.page-arcade__game-providers-section {
  text-align: center;
}

.page-arcade__provider-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  min-width: 200px; /* Enforce min width */
  min-height: 100px; /* Enforce min height */
}

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

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px);
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__button {
    width: 100%;
    max-width: 300px;
  }
  .page-arcade__section-title {
    font-size: 2em;
  }
  .page-arcade__section-description {
    font-size: 1em;
  }
  .page-arcade__features-grid,
  .page-arcade__game-grid,
  .page-arcade__providers-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__benefit-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-arcade__benefit-icon {
    margin-bottom: 15px;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
  .page-arcade__cta-description {
    font-size: 1em;
  }
  .page-arcade__faq-question {
    font-size: 1.2em;
  }
  .page-arcade__faq-answer {
    font-size: 0.95em;
  }
  /* Mobile content area images must not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  .page-arcade__hero-image,
  .page-arcade__feature-image,
  .page-arcade__game-image,
  .page-arcade__benefit-icon,
  .page-arcade__provider-logo {
    width: auto; /* Allow auto width for responsive scaling within max-width:100% */
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .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__button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-arcade__faq-question {
    font-size: 1.1em;
  }
}