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

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background-color: #1A1A1A; /* Dark background for hero */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 20px; /* Adjusted padding */
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Make background image subtle */
}

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

.page-arcade__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-arcade__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

/* General Button Styles */
.page-arcade__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #1A1A1A; /* Dark text */
}

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

.page-arcade__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-arcade__button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
}

.page-arcade__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-arcade__button--small:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

.page-arcade__button--tertiary {
  background-color: #1A1A1A;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 12px 25px;
  font-size: 1em;
}

.page-arcade__button--tertiary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
  transform: translateY(-1px);
}


/* Section Styling */
.page-arcade__features-section,
.page-arcade__games-section,
.page-arcade__about-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-arcade__features-title,
.page-arcade__games-title,
.page-arcade__about-title,
.page-arcade__cta-title {
  font-size: 2.5em;
  color: #1A1A1A; /* Dark title */
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-arcade__games-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 50px;
}

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

/* Card Styles */
.page-arcade__feature-card,
.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

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

.page-arcade__feature-card img,
.page-arcade__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

.page-arcade__feature-card-title,
.page-arcade__game-card-title {
  font-size: 1.6em;
  color: #1A1A1A;
  margin: 20px 20px 10px;
}

.page-arcade__feature-card-description,
.page-arcade__game-card-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-arcade__game-card .page-arcade__button {
  margin: 0 20px 20px;
  align-self: flex-start;
}

/* Call to Action Section */
.page-arcade__cta-section {
  background-color: #1A1A1A; /* Dark background */
  color: #ffffff; /* Light text */
  padding: 80px 20px;
  text-align: center;
  margin: 60px 0;
}

.page-arcade__cta-title {
  color: #FFD700; /* Gold title */
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-arcade__cta-title::after {
  background-color: #FFD700;
}

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

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

/* About Section */
.page-arcade__about-section {
  text-align: left;
}

.page-arcade__about-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #444444;
}

.page-arcade__about-content strong {
  color: #1A1A1A;
}

.page-arcade__about-content .page-arcade__button {
  margin-top: 20px;
  margin-right: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-arcade__hero-title {
    font-size: 3em;
  }
  .page-arcade__features-title,
  .page-arcade__games-title,
  .page-arcade__about-title,
  .page-arcade__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .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__features-title,
  .page-arcade__games-title,
  .page-arcade__about-title,
  .page-arcade__cta-title {
    font-size: 1.8em;
  }
  .page-arcade__features-grid,
  .page-arcade__games-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__feature-card img,
  .page-arcade__game-card img {
    height: 200px; /* Adjust height for mobile */
  }
  .page-arcade__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Mobile content area image constraint */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__features-title,
  .page-arcade__games-title,
  .page-arcade__about-title,
  .page-arcade__cta-title {
    font-size: 1.5em;
  }
  .page-arcade__button--primary,
  .page-arcade__button--secondary,
  .page-arcade__button--tertiary {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* CSS for JS fade-in effect */
.page-arcade > section:not(.page-arcade__hero-section) {
  opacity: 0;
  transform: translateY(20px);
}

.page-arcade--fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}