/* style/arcade.css */

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

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-arcade__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Hero Section */
.page-arcade__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0;
  min-height: 600px; /* Adjust based on content */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-arcade__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-arcade__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 51, 102, 0.6); /* Semi-transparent dark blue overlay */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-arcade__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFCC00; /* Gold for main title */
  line-height: 1.1;
  font-weight: bold;
}

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

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

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

.page-arcade__button--primary {
  background-color: #FFCC00; /* Gold */
  color: #003366; /* Dark blue */
  border: 2px solid #FFCC00;
}

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

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

.page-arcade__button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
}

/* Games Showcase Section */
.page-arcade__games-showcase {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-arcade__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-arcade__card-title {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-arcade__card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-arcade__card-button {
  display: inline-block;
  background-color: #003366;
  color: #FFCC00;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

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

/* Features Section */
.page-arcade__features-section {
  padding: 60px 0;
  color: #ffffff;
}

.page-arcade__bg--dark {
  background-color: #003366; /* Dark blue background */
}

.page-arcade__bg--light {
  background-color: #f8f8f8; /* Light gray background */
}

.page-arcade__section-title--light {
  color: #FFCC00;
}

.page-arcade__section-intro--light {
  color: #f0f0f0;
}

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

.page-arcade__feature-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-arcade__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

.page-arcade__call-to-action {
  text-align: center;
  margin-top: 50px;
}

/* How to Start Section */
.page-arcade__how-to-start {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-arcade__step-item {
  text-align: center;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-arcade__step-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-arcade__step-title {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-arcade__link {
  color: #CC0000; /* Red for action */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-arcade__link:hover {
  color: #990000;
}

/* FAQ Section */
.page-arcade__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

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

.page-arcade__faq-question {
  font-size: 1.3em;
  color: #003366;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: bold;
}

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

.page-arcade__inline-link {
  color: #003366;
  text-decoration: underline;
}

.page-arcade__inline-link:hover {
  color: #FFCC00;
}

/* Bottom CTA Section */
.page-arcade__cta-bottom {
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

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

/* Responsive adjustments */
@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: 2em;
  }
}

@media (max-width: 768px) {
  .page-arcade__hero-section {
    min-height: 500px;
  }
  .page-arcade__hero-container {
    padding: 30px;
  }
  .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: 80%;
    margin: 0 auto;
  }
  .page-arcade__game-grid, .page-arcade__features-grid, .page-arcade__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-arcade__content-area {
    padding: 20px;
  }
  .page-arcade__section-title {
    font-size: 1.8em;
  }
  .page-arcade__section-intro {
    font-size: 1em;
  }
  /* Ensure all images within .page-arcade are responsive and don't overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }
  /* Specific image rules for content area to ensure min-size 200px is not violated by small media queries */
  .page-arcade__game-card .page-arcade__card-image,
  .page-arcade__feature-item .page-arcade__feature-icon {
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    width: auto; /* Allow auto scaling based on max-width */
    height: auto; /* Allow auto scaling based on max-width */
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 2em;
  }
  .page-arcade__hero-description {
    font-size: 1em;
  }
  .page-arcade__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-arcade__section-title {
    font-size: 1.5em;
  }
  .page-arcade__card-title {
    font-size: 1.3em;
  }
  .page-arcade__feature-title, .page-arcade__step-title, .page-arcade__faq-question {
    font-size: 1.4em;
  }
}