/* style/game-guides.css */

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

/* body background is handled by shared.css, likely dark, so text is light */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--phfun-text-main); /* Light text for dark background */
  background-color: var(--phfun-background);
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: var(--phfun-background);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--phfun-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-game-guides__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--phfun-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-game-guides__btn-primary {
  background: var(--phfun-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-game-guides__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

.page-game-guides__section {
  padding: 60px 20px;
  background-color: var(--phfun-background);
}

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--phfun-primary);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-game-guides__text-block {
  font-size: 1.1rem;
  color: var(--phfun-text-main);
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-game-guides__grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-game-guides__content-block {
  padding: 20px;
}

.page-game-guides__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-game-guides__grid-two-col--reverse {
  grid-template-columns: 1fr 1fr;
}

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

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--phfun-primary);
  cursor: pointer;
  background-color: var(--phfun-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--phfun-primary);
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes 'x' or 'minus' */
}

.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(--phfun-text-main);
  background-color: rgba(17, 17, 17, 0.8);
}

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

.page-game-guides__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-guides__grid-two-col {
    grid-template-columns: 1fr;
  }

  .page-game-guides__grid-two-col--reverse {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-game-guides__main-title {
    font-size: 2.5rem;
  }

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

  .page-game-guides__section-title {
    font-size: 2rem;
  }

  .page-game-guides__text-block {
    font-size: 0.95rem;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-game-guides__hero-image,
  .page-game-guides__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .page-game-guides__faq-question {
    font-size: 1.05rem;
    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;
  }

  .page-game-guides__faq-answer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 2rem;
  }

  .page-game-guides__section-title {
    font-size: 1.7rem;
  }

  .page-game-guides__faq-question {
    font-size: 1rem;
  }
}