/* style/game-guides.css */

/* Base styles for the page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color for dark backgrounds */
  background-color: #08160F; /* Overall page background */
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Color contrast classes */
.page-game-guides__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-game-guides__light-bg {
  background-color: #11271B; /* Card BG as light for sections */
  color: #F2FFF6;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  min-height: 600px;
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-game-guides__hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%; /* Important for desktop flex */
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-game-guides__hero-content {
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  padding: 30px;
  border-radius: 10px;
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2C14E; /* Gold color for title */
  margin-bottom: 20px;
}

.page-game-guides__hero-description {
  color: #A7D9B8;
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Section Titles */
.page-game-guides__section-title {
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2em;
  font-weight: bold;
}

.page-game-guides__section-text {
  color: #F2FFF6;
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Images */
.page-game-guides__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Feature List */
.page-game-guides__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-game-guides__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #2E7A4E;
}

.page-game-guides__feature-title {
  color: #22C768; /* Auxiliary color */
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-game-guides__feature-description {
  color: #A7D9B8;
}

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

.page-game-guides__game-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  border: 1px solid #2E7A4E;
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-game-guides__card-title {
  font-size: 1.3em;
  color: #F2C14E; /* Gold */
  padding: 15px 20px 5px;
}

.page-game-guides__card-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-description {
  color: #A7D9B8;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-game-guides__game-card .page-game-guides__btn-secondary {
  margin: 0 20px 20px;
  width: auto;
  align-self: flex-start;
}

/* Strategy List */
.page-game-guides__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-game-guides__strategy-item {
  background-color: #11271B;
  color: #F2FFF6;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #22C768;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Registration Steps */
.page-game-guides__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}

.page-game-guides__step-item {
  background-color: #0A4B2C;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__step-number {
  width: 50px;
  height: 50px;
  background-color: #22C768;
  color: #08160F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-game-guides__step-title {
  color: #F2C14E;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-game-guides__step-description {
  color: #A7D9B8;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 30px;
}

.page-game-guides__faq-item {
  background-color: #0A4B2C;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none; /* For Webkit browsers */
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #F2FFF6;
  font-size: 1.1em;
}

.page-game-guides__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #22C768;
}

.page-game-guides__faq-answer {
  padding: 10px 25px 20px;
  color: #A7D9B8;
  border-top: 1px solid #1E3A2A;
}

/* Buttons */
.page-game-guides__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #22C768;
  border: 2px solid #22C768;
}

.page-game-guides__btn-secondary:hover {
  background-color: #22C768;
  color: #08160F;
}

/* Text Links */
.page-game-guides__text-link {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__text-link:hover {
  text-decoration: underline;
}

.page-game-guides__highlight {
  color: #F2C14E;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 20px 15px;
  }

  .page-game-guides__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }

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

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-guides__section-text,
  .page-game-guides__hero-description,
  .page-game-guides__feature-description,
  .page-game-guides__card-description,
  .page-game-guides__strategy-item,
  .page-game-guides__step-description,
  .page-game-guides__faq-answer p {
    font-size: 15px;
  }

  .page-game-guides__feature-list,
  .page-game-guides__game-cards,
  .page-game-guides__steps {
    grid-template-columns: 1fr;
  }

  .page-game-guides__cta-button,
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides 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-game-guides__game-card .page-game-guides__btn-secondary {
    width: calc(100% - 40px); /* Adjust for padding in card */
  }

  .page-game-guides__image,
  .page-game-guides__card-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-game-guides__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Ensure all content containers are responsive */
  .page-game-guides__section,
  .page-game-guides__game-card,
  .page-game-guides__step-item,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    padding: 20px;
  }

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

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

  .page-game-guides__cta-button {
    font-size: 1em;
    padding: 12px 20px;
  }
}