/* style/game-guides.css */
:root {
  --jljl1-primary: #F2C14E;
  --jljl1-secondary: #FFD36B;
  --jljl1-card-bg: #111111;
  --jljl1-background: #0A0A0A;
  --jljl1-text-main: #FFF6D6;
  --jljl1-border: #3A2A12;
  --jljl1-glow: #FFD36B;
  --jljl1-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--jljl1-text-main); /* Ensure light text on dark body background */
  background-color: var(--jljl1-background); /* Matches body background from shared */
}

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

.page-game-guides__card {
  background-color: var(--jljl1-card-bg);
  border: 1px solid var(--jljl1-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--jljl1-text-main); /* Light text on dark card background */
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: var(--jljl1-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__subsection-title {
  font-size: 1.8em;
  color: var(--jljl1-secondary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--jljl1-text-main);
}

.page-game-guides__dark-section {
  background-color: rgba(var(--jljl1-primary), 0.1); /* Slightly lighter background for contrast */
  padding: 60px 0;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--jljl1-button-gradient);
  color: #ffffff; /* White text on button gradient */
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--jljl1-primary);
  border: 2px solid var(--jljl1-primary);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--jljl1-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-game-guides__btn-link {
  background-color: var(--jljl1-primary);
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-game-guides__btn-link:hover {
  background-color: var(--jljl1-secondary);
}

/* Hero Section */
.page-game-guides__hero-section {
  background: linear-gradient(135deg, #0A0A0A 0%, rgba(242, 193, 78, 0.1) 100%);
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-game-guides__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-guides__hero-text-block {
  text-align: center;
  max-width: 800px;
}

.page-game-guides__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  color: var(--jljl1-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  color: var(--jljl1-text-main);
  margin-bottom: 30px;
}

.page-game-guides__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-guides__hero-image-block {
  width: 100%;
  max-width: 800px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
}

/* Why Guides Section */
.page-game-guides__why-guides-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-game-guides__feature-item {
  text-align: center;
  padding: 30px;
}

.page-game-guides__feature-title {
  color: var(--jljl1-secondary);
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* Categories Section */
.page-game-guides__categories-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-game-guides__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-game-guides__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--jljl1-secondary));
}

.page-game-guides__category-title {
  color: var(--jljl1-primary);
  font-size: 1.4em;
  margin-bottom: 10px;
}

/* Deep Dive Sections */
.page-game-guides__deep-dive-section {
  padding: 60px 0;
}

.page-game-guides__deep-dive-section .page-game-guides__section-title,
.page-game-guides__deep-dive-section .page-game-guides__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-game-guides__deep-dive-section .page-game-guides__section-description {
  margin-bottom: 30px;
}

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

/* Responsible Gaming Section */
.page-game-guides__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-guides__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: var(--jljl1-background);
}

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

.page-game-guides__faq-item {
  background-color: var(--jljl1-card-bg);
  border: 1px solid var(--jljl1-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--jljl1-primary);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(var(--jljl1-primary), 0.1);
}

.page-game-guides__faq-question h3 {
  margin: 0;
  color: var(--jljl1-primary);
}

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

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

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--jljl1-text-main);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

.page-game-guides__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-game-guides__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-guides__cta-content {
  max-width: 900px;
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Image and button responsiveness */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-game-guides__hero-cta-buttons .page-game-guides__btn-primary,
.page-game-guides__hero-cta-buttons .page-game-guides__btn-secondary,
.page-game-guides__cta-buttons .page-game-guides__btn-primary,
.page-game-guides__cta-buttons .page-game-guides__btn-secondary,
.page-game-guides__btn-link {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Adjust for mobile header */
    padding-bottom: 40px;
  }

  .page-game-guides__hero-content-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

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

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

  .page-game-guides__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-game-guides__hero-cta-buttons .page-game-guides__btn-primary,
  .page-game-guides__hero-cta-buttons .page-game-guides__btn-secondary {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-guides__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-game-guides__features-grid,
  .page-game-guides__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__deep-dive-section .page-game-guides__section-title,
  .page-game-guides__deep-dive-section .page-game-guides__section-description {
    text-align: center;
  }

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

  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides__card {
    padding: 20px;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__cta-buttons .page-game-guides__btn-primary,
  .page-game-guides__cta-buttons .page-game-guides__btn-secondary {
    width: 100% !important;
  }

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

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

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