/* style/arcade.css */

/* Base Styles for the Arcade Page */
.page-arcade {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
  background-color: #f8f8f8;
}

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

.page-arcade__section-title {
  font-size: 2.5em;
  color: #0A2463; /* Primary brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  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; /* Auxiliary brand color */
  border-radius: 2px;
}

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

/* Buttons */
.page-arcade__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  cursor: pointer;
  font-size: 1.05em;
  border: none;
}

.page-arcade__button--primary {
  background-color: #FFD700; /* Gold */
  color: #0A2463; /* Dark blue */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

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

.page-arcade__button--secondary {
  background-color: #0A2463; /* Dark blue */
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.3);
}

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

.page-arcade__button--small {
  padding: 8px 18px;
  font-size: 0.95em;
  border-radius: 6px;
}

.page-arcade__button--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 250px;
}

/* Hero Section */
.page-arcade__hero-section {
  background-color: #0A2463; /* Dark blue background for hero */
  color: #ffffff;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.page-arcade__hero-container {
  position: relative;
  max-width: 1920px; /* Full width hero */
  margin: 0 auto;
}

.page-arcade__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-arcade__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-arcade__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-arcade__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

/* Introduction Section */
.page-arcade__introduction-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-arcade__intro-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* Features Section */
.page-arcade__features-section {
  padding: 80px 0;
  background-color: #f0f4f8;
}

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

.page-arcade__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-arcade__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.page-arcade__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-arcade__feature-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-arcade__feature-text {
  font-size: 1em;
  color: #666666;
}

/* Game Categories Section */
.page-arcade__game-categories-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-arcade__category-card {
  background-color: #fcfcfc;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-arcade__category-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-arcade__category-title {
  font-size: 1.8em;
  color: #0A2463;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

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

.page-arcade__category-card .page-arcade__button {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* Latest Games Section */
.page-arcade__latest-games-section {
  padding: 80px 0;
  background-color: #f0f4f8;
}

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

.page-arcade__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  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 10px 30px rgba(0, 0, 0, 0.1);
}

.page-arcade__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-arcade__game-title {
  font-size: 1.6em;
  color: #0A2463;
  margin: 15px 15px 5px 15px;
  font-weight: bold;
}

.page-arcade__game-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 15px 15px;
  flex-grow: 1;
}

.page-arcade__game-card .page-arcade__button {
  margin: 0 15px 15px 15px;
  width: calc(100% - 30px);
}

/* Benefits Section */
.page-arcade__benefits-section {
  padding: 80px 0;
  background-color: #0A2463;
  color: #ffffff;
}

.page-arcade__benefits-section .page-arcade__section-title {
  color: #FFD700;
}

.page-arcade__benefits-section .page-arcade__section-title::after {
  background-color: #ffffff;
}

.page-arcade__benefits-section .page-arcade__section-description {
  color: #f0f0f0;
}

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

.page-arcade__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-arcade__benefit-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-arcade__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-arcade__responsible-gaming-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-arcade__responsible-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #555555;
}

/* CTA Section */
.page-arcade__cta-section {
  padding: 80px 0;
  background-color: #FFD700;
  color: #0A2463;
}

.page-arcade__cta-section .page-arcade__section-title {
  color: #0A2463;
}

.page-arcade__cta-section .page-arcade__section-title::after {
  background-color: #0A2463;
}

.page-arcade__cta-section .page-arcade__section-description {
  color: #333333;
}

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

.page-arcade__cta-actions .page-arcade__button--primary {
  background-color: #0A2463;
  color: #FFD700;
  border: 2px solid #0A2463;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.3);
}

.page-arcade__cta-actions .page-arcade__button--primary:hover {
  background-color: #081e50;
  border-color: #081e50;
}

.page-arcade__cta-actions .page-arcade__button--secondary {
  background-color: #ffffff;
  color: #0A2463;
  border: 2px solid #0A2463;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-arcade__cta-actions .page-arcade__button--secondary:hover {
  background-color: #f0f0f0;
}

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

.page-arcade__faq-items {
  margin-top: 50px;
  display: grid;
  gap: 20px;
}

.page-arcade__faq-item {
  background-color: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #FFD700;
}

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

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

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

  .page-arcade__hero-description {
    font-size: 1.1em;
  }

  .page-arcade__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-arcade {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-arcade__hero-content {
    max-width: 90%;
    padding: 15px;
  }

  .page-arcade__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-arcade__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-arcade__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-arcade__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-arcade__section-title {
    font-size: 1.8em;
  }

  .page-arcade__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-arcade__features-grid,
  .page-arcade__categories-grid,
  .page-arcade__games-grid,
  .page-arcade__benefits-list,
  .page-arcade__faq-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-arcade__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Ensure all images are responsive and do not overflow */
  .page-arcade img {
    max-width: 100%;
    height: auto;
  }

  /* Content area images minimum size enforcement */
  .page-arcade__intro-image,
  .page-arcade__feature-icon,
  .page-arcade__category-image,
  .page-arcade__game-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-arcade__hero-title {
    font-size: 1.8em;
  }

  .page-arcade__hero-description {
    font-size: 0.9em;
  }

  .page-arcade__section-title {
    font-size: 1.5em;
  }

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

  .page-arcade__feature-title,
  .page-arcade__category-title,
  .page-arcade__game-title,
  .page-arcade__benefit-title,
  .page-arcade__faq-question {
    font-size: 1.3em;
  }
}