/* style/game-guides.css */

/* Variables from custom colors */
:root {
  --page-game-guides-bg: #08160F;
  --page-game-guides-card-bg: #11271B;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --page-game-guides-border: #2E7A4E;
  --page-game-guides-glow: #57E38D;
  --page-game-guides-gold: #F2C14E;
  --page-game-guides-divider: #1E3A2A;
  --page-game-guides-deep-green: #0A4B2C;
  --page-game-guides-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-game-guides {
  background-color: var(--page-game-guides-bg);
  color: var(--page-game-guides-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.page-game-guides__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-weight: bold;
  color: var(--page-game-guides-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.1em;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
}

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

.page-game-guides__cta-buttons--bottom {
  margin-top: 50px;
  margin-bottom: 30px;
}

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

.page-game-guides__btn-primary {
  background: var(--page-game-guides-btn-gradient);
  color: var(--page-game-guides-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--page-game-guides-light-bg, #ffffff);
  color: var(--page-game-guides-text-main);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin-top: -50px;
  position: relative;
  z-index: 1;
}

.page-game-guides__article p {
  margin-bottom: 1em;
  font-size: 1.05em;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__article strong {
  color: var(--page-game-guides-text-main);
}

.page-game-guides__section-title {
  font-size: 2.2em;
  color: var(--page-game-guides-gold);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-game-guides__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-game-guides-glow);
  border-radius: 2px;
}

.page-game-guides__sub-title {
  font-size: 1.6em;
  color: var(--page-game-guides-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid var(--page-game-guides-glow);
  padding-left: 15px;
}

.page-game-guides__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-game-guides__read-more {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: var(--page-game-guides-deep-green);
  color: var(--page-game-guides-text-main);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-game-guides__read-more:hover {
  background-color: var(--page-game-guides-glow);
  color: var(--page-game-guides-bg);
}

.page-game-guides__faq-list {
  margin-top: 30px;
  border: 1px solid var(--page-game-guides-border);
  border-radius: 10px;
  overflow: hidden;
}

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--page-game-guides-divider);
}

.page-game-guides__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-game-guides-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: var(--page-game-guides-deep-green);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-game-guides-glow);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-game-guides-text-secondary);
  line-height: 1.7;
}

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

.page-game-guides__faq-answer a {
  color: var(--page-game-guides-glow);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    padding: 0 15px;
  }

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

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

  .page-game-guides__sub-title {
    font-size: 1.4em;
  }
}

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

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

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

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__content-area {
    padding: 30px 15px;
    margin-top: -30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__article p {
    font-size: 0.95em;
  }

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

  .page-game-guides__sub-title {
    font-size: 1.2em;
  }

  .page-game-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  /* Ensure all image containers are responsive */
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__content-area,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__article {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

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

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

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