/* style/arcade.css */
.page-arcade {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for default white body background */
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background for the main content area */
}

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

.page-arcade__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* For desktop */
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Blend of main and aux colors */
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

.page-arcade__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-arcade__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly dim the image to make text stand out */
}

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-arcade__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-arcade__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-arcade__section-title {
  font-size: 2.8em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-arcade__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-arcade__intro-section,
.page-arcade__game-categories,
.page-arcade__why-jili90,
.page-arcade__game-spotlight,
.page-arcade__getting-started,
.page-arcade__faq-section,
.page-arcade__cta-section {
  padding: 80px 0;
}

.page-arcade__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-arcade__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-arcade__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

.page-arcade__card-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-arcade__card-title a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-arcade__card-title a:hover {
  color: #FFD700;
}

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

.page-arcade__card-button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #8B0000;
}

.page-arcade__card-button:hover {
  background-color: #a60000;
}

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

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

.page-arcade__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

.page-arcade__feature-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-arcade__feature-description {
  font-size: 1em;
  color: #555555;
}

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

.page-arcade__spotlight-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__spotlight-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-arcade__spotlight-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px;
}

.page-arcade__spotlight-title {
  font-size: 1.7em;
  color: #8B0000;
  margin-bottom: 15px;
}

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

.page-arcade__spotlight-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-arcade__spotlight-button:hover {
  background-color: #e6c200;
}

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

.page-arcade__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-arcade__step-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

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

.page-arcade__step-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-arcade__step-button:hover {
  background-color: #e6c200;
}

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

.page-arcade__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  padding: 25px;
}

.page-arcade__faq-question {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-arcade__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-arcade__faq-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background-color: #8B0000;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #8B0000;
}

.page-arcade__faq-button:hover {
  background-color: #a60000;
}

.page-arcade__cta-section {
  background: linear-gradient(90deg, #8B0000, #FFD700);
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  border-radius: 10px;
  margin: 80px auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-arcade__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-arcade__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-arcade__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 3px solid #FFD700;
}

.page-arcade__cta-button:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.page-arcade__copyright {
  text-align: center;
  padding: 40px 20px;
  background-color: #333333;
  color: #cccccc;
  font-size: 0.9em;
}

.page-arcade__copyright-text {
  margin: 0;
}

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

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 400px;
    padding: 40px 15px; /* Adjust padding for smaller screens */
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-arcade__intro-section,
  .page-arcade__game-categories,
  .page-arcade__why-jili90,
  .page-arcade__game-spotlight,
  .page-arcade__getting-started,
  .page-arcade__faq-section,
  .page-arcade__cta-section {
    padding: 60px 0;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__text-content {
    font-size: 1em;
  }
  .page-arcade__grid,
  .page-arcade__features-grid,
  .page-arcade__spotlight-grid,
  .page-arcade__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-arcade__card-image,
  .page-arcade__feature-icon,
  .page-arcade__spotlight-image {
    width: 100%;
    height: auto; /* Allow height to adjust */
    max-width: 100%;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  .page-arcade__card-title,
  .page-arcade__feature-title,
  .page-arcade__spotlight-title,
  .page-arcade__step-title {
    font-size: 1.5em;
  }
  .page-arcade__cta-section {
    padding: 80px 15px;
    margin: 60px auto;
  }
  .page-arcade__cta-title {
    font-size: 2em;
  }
  .page-arcade__cta-description {
    font-size: 1.2em;
  }
  .page-arcade__cta-button {
    padding: 15px 30px;
    font-size: 1.3em;
  }
  /* Ensure all content area images are responsive and not too small */
  .page-arcade img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 0.95em;
  }
  .page-arcade__section-title {
    font-size: 1.6em;
  }
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }
  .page-arcade__card-title,
  .page-arcade__feature-title,
  .page-arcade__spotlight-title,
  .page-arcade__step-title {
    font-size: 1.3em;
  }
  .page-arcade__faq-question {
    font-size: 1.3em;
  }
}