/* style/game-guides.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-game-guides {
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Matches body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-game-guides__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  margin-bottom: 20px;
  color: #F2C14E; /* Main color for titles */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-game-guides__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #FFF6D6;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Only 10px top padding, body handles --header-offset */
  overflow: hidden;
  min-height: 500px;
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: #FFF6D6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: #FFD36B; /* Accent color for main title */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-game-guides__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
}

.page-game-guides__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-game-guides__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #FFF6D6;
}

.page-game-guides__feature-title {
  font-size: 1.6em;
  color: #FFD36B; /* Accent color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__feature-description {
  font-size: 1em;
  color: #FFF6D6;
}

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

.page-game-guides__game-category-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-game-guides__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-guides__category-title {
  font-size: 1.5em;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__category-description {
  font-size: 0.95em;
  color: #FFF6D6;
}

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

.page-game-guides__strategy-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-game-guides__strategy-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-game-guides__strategy-title {
  font-size: 1.4em;
  color: #FFD36B; /* Accent color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__strategy-description {
  font-size: 0.9em;
  color: #FFF6D6;
}

/* Responsible Gaming */
.page-game-guides__responsible-gaming {
  text-align: left;
}

.page-game-guides__content-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-game-guides__text-content {
  flex: 1;
  min-width: 300px;
}

.page-game-guides__image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-game-guides__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-game-guides__faq {
  text-align: left;
}

.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #F2C14E; /* Main color */
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-game-guides__faq-title {
  margin: 0;
  color: #F2C14E;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #FFD36B; /* Accent color */
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

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

.page-game-guides__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #FFF6D6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-game-guides__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }

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

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

  .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__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__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;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-game-guides__hero-content {
    padding: 15px;
  }

  .page-game-guides__features-grid,
  .page-game-guides__game-category-grid,
  .page-game-guides__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides__feature-item,
  .page-game-guides__game-category-card,
  .page-game-guides__strategy-item {
    padding: 20px;
  }

  .page-game-guides__category-image,
  .page-game-guides__strategy-image,
  .page-game-guides__responsible-gaming-image,
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .page-game-guides__content-flex {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

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

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

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

  .page-game-guides__text-block {
    padding: 0 15px;
    margin-bottom: 20px;
  }

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