/* style/arcade.css */
.page-arcade {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-arcade__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px 60px; /* Adjusted padding, header offset handled by main */
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Blend brand colors for background */
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2; /* Subtly blend image with gradient */
}

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

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-arcade__btn {
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-arcade__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #8B0000; /* Deep Red */
}

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

.page-arcade__btn--secondary {
  background-color: #8B0000; /* Deep Red */
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-arcade__btn--secondary:hover {
  background-color: #6a0000;
  transform: translateY(-2px);
}

.page-arcade__btn--outline {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000;
}

.page-arcade__btn--outline:hover {
  background-color: #8B0000;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Deep Red */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-arcade__about-section,
.page-arcade__games-types-section,
.page-arcade__why-90jili-section,
.page-arcade__getting-started-section,
.page-arcade__responsible-gaming-section,
.page-arcade__details-pages-section,
.page-arcade__faq-section,
.page-arcade__final-cta-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-arcade__about-section .page-arcade__text-content,
.page-arcade__responsible-gaming-section .page-arcade__text-content,
.page-arcade__details-pages-section .page-arcade__text-content,
.page-arcade__final-cta-section .page-arcade__text-content {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-arcade__game-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-arcade__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-arcade__game-card-title {
  font-size: 1.5em;
  color: #8B0000; /* Deep Red */
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-arcade__game-card-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 25px;
  padding: 0 15px;
  text-align: justify;
}

.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: #fff8e1; /* Light gold background */
  border-left: 5px solid #FFD700; /* Gold border accent */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-arcade__feature-title {
  font-size: 1.4em;
  color: #8B0000; /* Deep Red */
  margin-bottom: 10px;
}

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

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

.page-arcade__step-item {
  background-color: #ffffff;
  border: 1px solid #FFD700;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease;
}

.page-arcade__step-item:hover {
  transform: translateY(-5px);
}

.page-arcade__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8B0000; /* Deep Red */
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 3px solid #FFD700; /* Gold border */
}

.page-arcade__step-title {
  font-size: 1.4em;
  color: #8B0000; /* Deep Red */
  margin-top: 15px;
  margin-bottom: 10px;
}

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

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

.page-arcade__details-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-arcade__detail-item {
  background-color: #fefefe;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-arcade__detail-title {
  font-size: 1.6em;
  color: #8B0000; /* Deep Red */
  margin-bottom: 15px;
}

.page-arcade__detail-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-arcade__detail-title a:hover {
  text-decoration: underline;
  color: #FFD700;
}

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

.page-arcade__faq-item {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #8B0000; /* Deep Red */
  margin-bottom: 10px;
}

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

.page-arcade__final-cta-section {
  background-color: #FFD700; /* Gold background */
  color: #8B0000; /* Deep Red text */
  text-align: center;
  padding: 80px 20px;
}

.page-arcade__final-cta-section .page-arcade__section-title {
  color: #8B0000; /* Deep Red */
}

.page-arcade__final-cta-section .page-arcade__section-title::after {
  background-color: #8B0000; /* Deep Red accent */
}

.page-arcade__final-cta-section .page-arcade__text-content {
  color: #6a0000; /* Darker red for text */
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-arcade__final-cta-section .page-arcade__btn--primary {
  background-color: #8B0000; /* Deep Red */
  color: #FFD700; /* Gold */
}

.page-arcade__final-cta-section .page-arcade__btn--primary:hover {
  background-color: #6a0000;
}

.page-arcade__final-cta-section .page-arcade__btn--secondary {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000;
}

.page-arcade__final-cta-section .page-arcade__btn--secondary:hover {
  background-color: #8B0000;
  color: #FFD700;
}

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

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header for mobile */
  }
  .page-arcade__hero-title {
    font-size: 2.5em;
  }
  .page-arcade__hero-description {
    font-size: 1.1em;
  }
  .page-arcade__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-arcade__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__game-grid,
  .page-arcade__features-list,
  .page-arcade__steps-list {
    grid-template-columns: 1fr;
  }
  .page-arcade__game-card-image {
    height: 200px;
  }
  /* Content area images must not be smaller than 200px and must be responsive */
  .page-arcade__about-section img, 
  .page-arcade__games-types-section img, 
  .page-arcade__why-90jili-section img, 
  .page-arcade__getting-started-section img, 
  .page-arcade__responsible-gaming-section img, 
  .page-arcade__details-pages-section img, 
  .page-arcade__faq-section img, 
  .page-arcade__final-cta-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-arcade__game-card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__btn {
    width: 90%;
  }
}