/* style/game-guides.css */

/* Base Styles */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--bg-color); /* Deep Green Background */
  line-height: 1.6;
}

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

.page-game-guides__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

.page-game-guides__highlight {
  color: var(--gold);
  font-weight: bold;
}

.page-game-guides__inline-link {
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image for text readability */
}

.page-game-guides__hero-content {
  position: relative; /* Ensure content is above image filter */
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image for visual effect, but not text on image */
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(36px, 6vw, 56px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-game-guides__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  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: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
}

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

.page-game-guides__btn-secondary {
  background: var(--card-bg);
  color: var(--glow); /* Glow color text for secondary button */
  border: 2px solid var(--glow);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

/* Introduction Section */
.page-game-guides__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

/* Game Categories Section */
.page-game-guides__game-categories-section {
  padding: 80px 0;
  background-color: var(--deep-green);
}

.page-game-guides__game-categories-section .page-game-guides__section-title {
  color: var(--text-main);
}

.page-game-guides__game-categories-section .page-game-guides__text-block {
  color: var(--text-secondary);
}

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

.page-game-guides__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-game-guides__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-game-guides__card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  color: var(--glow);
}

.page-game-guides__card-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-game-guides__btn-text {
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Access Usage Section */
.page-game-guides__access-usage-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

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

.page-game-guides__step-card .page-game-guides__card-title {
  font-size: 22px;
  color: var(--glow);
}

.page-game-guides__step-card .page-game-guides__card-description {
  color: var(--text-secondary);
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  max-width: 800px;
}

/* Benefits Section */
.page-game-guides__benefits-section {
  padding: 80px 0;
  background-color: var(--deep-green);
}

.page-game-guides__benefits-section .page-game-guides__section-title {
  color: var(--text-main);
}

.page-game-guides__benefits-section .page-game-guides__text-block {
  color: var(--text-secondary);
}

.page-game-guides__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-guides__benefit-item {
  background-color: var(--card-bg);
  border-left: 5px solid var(--glow);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__benefit-item strong {
  color: var(--glow);
}

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

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

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

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

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  background-color: var(--deep-green);
  color: var(--glow);
}

.page-game-guides__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

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

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

/* Details element specific styling for cross-browser consistency */
.page-game-guides__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

/* CTA Bottom Section */
.page-game-guides__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  text-align: center;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

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

  .page-game-guides__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .page-game-guides__hero-description {
    font-size: clamp(16px, 3.5vw, 20px);
    margin-bottom: 30px;
  }

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

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

  .page-game-guides__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 25px;
  }

  .page-game-guides__text-block {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__game-categories-section,
  .page-game-guides__access-usage-section,
  .page-game-guides__benefits-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom-section {
    padding: 40px 0;
  }

  .page-game-guides__category-grid,
  .page-game-guides__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }

  .page-game-guides__card-image {
    height: 180px;
  }

  .page-game-guides__card-title {
    font-size: 20px;
  }

  .page-game-guides__card-description {
    font-size: 15px;
  }

  .page-game-guides__benefit-item {
    padding: 15px 20px;
    font-size: 16px;
  }

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

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

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__hero-image-wrapper,
  .page-game-guides__category-grid,
  .page-game-guides__steps-grid,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-game-guides__hero-image-wrapper {
    padding: 0;
  }

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

  /* Video specific mobile styles, if any video exists */
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}