/* style/game-guides.css */

/* Root variables for colors */
:root {
  --page-game-guides-primary-color: #26A9E0;
  --page-game-guides-secondary-color: #FFFFFF;
  --page-game-guides-login-color: #EA7C07;
  --page-game-guides-text-dark: #1a1a2e; /* From body background, for contrast */
  --page-game-guides-text-light: #ffffff;
  --page-game-guides-card-bg-dark-mode: rgba(255, 255, 255, 0.1);
}

.page-game-guides {
  color: var(--page-game-guides-text-light); /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherit from body or set explicitly if needed */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  color: var(--page-game-guides-text-light);
  overflow: hidden;
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Slightly darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--page-game-guides-secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed font-size for H1, relying on responsive scaling */
}

.page-game-guides__description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: var(--page-game-guides-secondary-color);
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

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

.page-game-guides__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

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

.page-game-guides__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* Sections */
.page-game-guides__introduction-section,
.page-game-guides__tips-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 60px 0;
  color: var(--page-game-guides-text-light);
}

.page-game-guides__game-type-section,
.page-game-guides__why-choose-us {
  padding: 60px 0;
  color: var(--page-game-guides-text-light);
  background-color: #2a2a4a; /* Slightly lighter dark background for contrast */
}

.page-game-guides__dark-bg {
  background-color: #1a1a2e;
  color: var(--page-game-guides-text-light);
}

.page-game-guides__light-bg {
  background-color: var(--page-game-guides-card-bg-dark-mode);
  color: var(--page-game-guides-text-light);
}

.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-game-guides-primary-color);
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__text-block a {
  color: var(--page-game-guides-primary-color);
  text-decoration: underline;
}

.page-game-guides__list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

/* Video Section */
.page-game-guides__video-section {
  padding: 60px 0;
  text-align: center;
  color: var(--page-game-guides-text-light);
}

.page-game-guides__video-link {
  display: block;
  margin-bottom: 20px;
  cursor: pointer;
}

.page-game-guides__video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
}

.page-game-guides__video-caption {
  font-style: italic;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

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

.page-game-guides__game-card {
  background-color: var(--page-game-guides-card-bg-dark-mode);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 450px; /* Ensure cards have enough height */
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-game-guides__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-game-guides-primary-color);
}

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

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

.page-game-guides__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--page-game-guides-text-light);
}

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

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg-dark-mode);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-game-guides-primary-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

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

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

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

.page-game-guides__cta-section .page-game-guides__btn-primary {
  background-color: var(--page-game-guides-login-color); /* Use login color for CTA */
  border-color: var(--page-game-guides-login-color);
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-game-guides__cta-section .page-game-guides__btn-primary:hover {
  background-color: #c76706;
  border-color: #c76706;
}

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

  .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 {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Clamp for responsive H1 */
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }
  
  .page-game-guides__game-card {
    min-height: auto;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section,
  .page-game-guides__game-type-section,
  .page-game-guides__why-choose-us {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-game-guides__game-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .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__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__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__cta-section .page-game-guides__btn-primary {
    font-size: 1.1em;
  }
}

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

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