/* style/game-guides.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0d0d0d; /* Assuming shared.css var(--black-color) resolves to a dark background */
  --login-color: #EA7C07;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for dark body background */
  background-color: var(--bg-dark);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-game-guides__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
}

.page-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-game-guides__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-game-guides__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-game-guides__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%); /* Placeholder for darken */
  border-color: darken(var(--primary-color), 10%);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Why Choose Section */
.page-game-guides__why-choose-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-game-guides__why-choose-section .page-game-guides__section-title {
  color: var(--text-dark);
}

.page-game-guides__why-choose-section .page-game-guides__section-intro {
  color: var(--text-dark);
}

.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: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-game-guides__feature-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__feature-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Game Types Section */
.page-game-guides__game-types-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-game-guides__game-types-section .page-game-guides__section-intro {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-game-guides__game-type-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-game-guides__game-type-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-game-guides__game-type-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__game-type-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-game-guides__game-type-title a:hover {
  text-decoration: underline;
}

.page-game-guides__game-type-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

/* Detailed Guides Section */
.page-game-guides__detailed-guides-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-game-guides__detailed-guides-section .page-game-guides__section-title {
  color: var(--text-dark);
}

.page-game-guides__detailed-guides-section .page-game-guides__section-intro {
  color: var(--text-dark);
}

.page-game-guides__guide-article {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.page-game-guides__article-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__article-text {
  font-size: 1.05em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-game-guides__article-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-game-guides__article-list li {
  margin-bottom: 8px;
}

.page-game-guides__article-list li strong {
  color: var(--primary-color);
}

.page-game-guides__read-more-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-guides__read-more-link:hover {
  background-color: darken(var(--primary-color), 10%); /* Placeholder for darken */
}

/* Strategy Tips Section */
.page-game-guides__strategy-tips-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__strategy-tips-section .page-game-guides__section-title {
  color: var(--text-light);
}

.page-game-guides__strategy-tips-section .page-game-guides__section-intro {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-game-guides__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

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

.page-game-guides__tip-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

.page-game-guides__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  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.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: #f0f0f0;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

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

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

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

.page-game-guides__cta-section .page-game-guides__section-intro {
  color: rgba(255, 255, 255, 0.9);
}

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

/* Responsive Images */
.page-game-guides__responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-game-guides__section-image {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 3em;
  }
  .page-game-guides__hero-description {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-guides__hero-section {
    height: 500px;
  }
  .page-game-guides__hero-title {
    font-size: 2.2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__hero-actions {
    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: 1em;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-intro {
    font-size: 0.95em;
  }
  .page-game-guides__features-grid,
  .page-game-guides__game-type-grid,
  .page-game-guides__tips-grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__guide-article {
    padding: 20px;
  }
  .page-game-guides__article-title {
    font-size: 1.5em;
  }
  .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: 15px 20px;
  }

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

  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .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;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-game-guides__cta-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* Darken function placeholder for SASS-like behavior */
/* This should ideally be handled by a CSS preprocessor or build step */
/* For direct CSS, you might use a slightly darker fixed color */
/* Example: darken(#26A9E0, 10%) could be #2087b3 */
/* Example: darken(#FFFFFF, 10%) could be #e6e6e6 */