/* style/index-game-categories.css */

/* Body background is #1a1a2e (dark) from shared.css, so default text should be light */
.page-index-game-categories {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index-game-categories__dark-bg {
  background-color: #1a1a2e; /* Inherit from body or use a dark shade */
  color: #ffffff;
}

.page-index-game-categories__light-bg {
  background-color: #ffffff; /* White background for contrast sections */
  color: #333333;
}

.page-index-game-categories__content-area,
.page-index-game-categories__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-index-game-categories__section-title {
  font-size: 2.8em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-game-categories__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555; /* Darker grey for light background */
}

/* Hero Section */
.page-index-game-categories__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height for visual impact */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 0; /* Handled by main.page-index-game-categories */
}

.page-index-game-categories__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index-game-categories__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-index-game-categories__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-index-game-categories__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index-game-categories__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-index-game-categories__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-index-game-categories__btn-primary,
.page-index-game-categories__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index-game-categories__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #ffffff; /* WCAG AA compliant text color */
  border-color: #C30808;
}

.page-index-game-categories__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-index-game-categories__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-index-game-categories__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-index-game-categories__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Game Grid */
.page-index-game-categories__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-game-categories__game-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-index-game-categories__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index-game-categories__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-game-categories__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-game-categories__card-title a {
  color: #017439; /* Brand color for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-game-categories__card-title a:hover {
  color: #005a2e;
}

.page-index-game-categories__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555555;
  flex-grow: 1;
}

.page-index-game-categories__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-index-game-categories__card-button:hover {
  background-color: #005a2e;
}

/* Why Choose Us Section */
.page-index-game-categories__why-choose-us {
  padding: 80px 20px;
  text-align: center;
}

.page-index-game-categories__why-choose-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  font-weight: bold;
  color: #ffffff;
}

.page-index-game-categories__why-choose-intro {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  color: #f0f0f0;
}

.page-index-game-categories__why-choose-list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.page-index-game-categories__why-choose-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-index-game-categories__list-icon {
  font-size: 1.5em;
  color: #C30808; /* Accent color for icons */
  flex-shrink: 0;
}

.page-index-game-categories__list-heading {
  color: #ffffff;
  font-size: 1.1em;
}

/* Getting Started Section */
.page-index-game-categories__getting-started {
  padding: 80px 20px;
  text-align: center;
}

.page-index-game-categories__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-index-game-categories__steps-list li {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  counter-increment: step-counter;
  position: relative;
  padding-left: 70px;
  color: #333333;
}

.page-index-game-categories__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: #017439;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-index-game-categories__step-heading {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #017439;
}

.page-index-game-categories__getting-started-outro {
  font-size: 1.1em;
  margin-top: 40px;
  margin-bottom: 30px;
  color: #555555;
}

/* FAQ Section */
.page-index-game-categories__faq-section {
  padding: 80px 20px;
}

.page-index-game-categories__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-game-categories__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-index-game-categories__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-index-game-categories__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-game-categories__faq-heading {
  margin: 0;
  font-size: 1em; /* Inherit from parent */
  color: #ffffff;
}

.page-index-game-categories__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-index-game-categories__faq-item.active .page-index-game-categories__faq-toggle {
  transform: rotate(45deg);
}

.page-index-game-categories__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.7;
  color: #cccccc;
}

.page-index-game-categories__faq-item.active .page-index-game-categories__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px;
}

.page-index-game-categories__faq-answer p {
  margin: 0;
  color: #cccccc; /* Ensure text color for dark background */
}

.page-index-game-categories__faq-answer a {
  color: #C30808; /* Link color for FAQ answers */
  text-decoration: underline;
}

.page-index-game-categories__faq-answer a:hover {
  color: #ff4d4d;
}

/* Final CTA Section */
.page-index-game-categories__final-cta {
  padding: 80px 20px;
  text-align: center;
}

.page-index-game-categories__final-cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-index-game-categories__final-cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-game-categories__hero-title {
    font-size: 3em;
  }

  .page-index-game-categories__section-title,
  .page-index-game-categories__why-choose-title,
  .page-index-game-categories__final-cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-index-game-categories {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-index-game-categories__hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .page-index-game-categories__hero-title {
    font-size: 2.2em;
  }

  .page-index-game-categories__hero-description {
    font-size: 1em;
  }

  .page-index-game-categories__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-index-game-categories__btn-primary,
  .page-index-game-categories__btn-secondary,
  .page-index-game-categories__card-button,
  .page-index-game-categories a[class*="button"],
  .page-index-game-categories a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-categories__cta-buttons,
  .page-index-game-categories__button-group,
  .page-index-game-categories__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-index-game-categories__section-title,
  .page-index-game-categories__why-choose-title,
  .page-index-game-categories__final-cta-title {
    font-size: 1.8em;
  }

  .page-index-game-categories__content-area,
  .page-index-game-categories__why-choose-us,
  .page-index-game-categories__getting-started,
  .page-index-game-categories__faq-section,
  .page-index-game-categories__final-cta {
    padding: 40px 15px;
  }

  .page-index-game-categories__game-grid {
    grid-template-columns: 1fr;
  }

  .page-index-game-categories__card-image {
    height: 200px;
  }

  .page-index-game-categories__why-choose-list {
    grid-template-columns: 1fr;
  }

  .page-index-game-categories__steps-list {
    grid-template-columns: 1fr;
  }

  .page-index-game-categories__steps-list li {
    padding-left: 60px;
  }

  .page-index-game-categories__steps-list li::before {
    left: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  .page-index-game-categories__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-index-game-categories__faq-answer {
    padding: 0 20px;
  }

  .page-index-game-categories__faq-item.active .page-index-game-categories__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Image responsiveness for all images */
  .page-index-game-categories img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-game-categories__section,
  .page-index-game-categories__card,
  .page-index-game-categories__container,
  .page-index-game-categories__hero-section,
  .page-index-game-categories__why-choose-us,
  .page-index-game-categories__getting-started,
  .page-index-game-categories__faq-section,
  .page-index-game-categories__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

  .page-index-game-categories__hero-description {
    font-size: 0.9em;
  }

  .page-index-game-categories__btn-primary,
  .page-index-game-categories__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-index-game-categories__section-title,
  .page-index-game-categories__why-choose-title,
  .page-index-game-categories__final-cta-title {
    font-size: 1.6em;
  }

  .page-index-game-categories__card-title {
    font-size: 1.5em;
  }

  .page-index-game-categories__faq-question {
    font-size: 1em;
  }
}