/* style/game-guides.css */

:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-text-dark: #333333;
  --page-text-light: #ffffff;
  --page-background-dark: #0a0a0a; /* Body background from shared.css */
  --page-background-light: #f8f9fa;
  --page-login-color: #EA7C07;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-light); /* Default text color for dark body background */
  background-color: var(--page-background-dark);
}

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

.page-game-guides__dark-bg {
  background-color: var(--page-background-dark);
  color: var(--page-text-light);
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  text-align: center;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-game-guides__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--page-text-light);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  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;
  max-width: 100%;
}

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

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

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
}

.page-game-guides__introduction,
.page-game-guides__popular-games,
.page-game-guides__advanced-strategies,
.page-game-guides__faq,
.page-game-guides__cta-section {
  padding: 60px 0;
}

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

.page-game-guides__introduction p,
.page-game-guides__advanced-strategies p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__game-grid {
  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-secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-text-dark);
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 15px 10px 15px;
  min-height: 60px;
}

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

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

.page-game-guides__game-card p {
  font-size: 0.95rem;
  padding: 0 15px;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: justify;
}

.page-game-guides__card-link {
  display: inline-block;
  background-color: var(--page-login-color);
  color: var(--page-secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-game-guides__card-link:hover {
  background-color: darken(var(--page-login-color), 10%);
}

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

.page-game-guides__strategy-list li {
  background-color: rgba(var(--page-primary-color), 0.1);
  border-left: 5px solid var(--page-primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05rem;
  color: var(--page-text-light);
}

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

.page-game-guides__faq .page-game-guides__container {
  background-color: var(--page-secondary-color);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--page-text-dark);
}

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-primary-color);
  list-style: none;
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-question .page-game-guides__faq-toggle {
  font-size: 1.5rem;
  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: 10px 0 10px 20px;
  font-size: 1rem;
  color: var(--page-text-dark);
  text-align: justify;
}

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

.page-game-guides__faq-answer a {
  color: var(--page-primary-color);
  text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 50vh;
  }

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

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

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

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

  .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__introduction,
  .page-game-guides__popular-games,
  .page-game-guides__advanced-strategies,
  .page-game-guides__faq,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

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

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

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

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

  .page-game-guides__card-title {
    font-size: 1.2rem;
    min-height: unset;
  }

  .page-game-guides__game-card p {
    font-size: 0.9rem;
  }

  .page-game-guides__strategy-list li {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .page-game-guides__faq .page-game-guides__container {
    padding: 30px 20px;
  }

  .page-game-guides__faq-question {
    font-size: 1rem;
    padding: 10px 0;
  }

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

  /* Image responsiveness */
  .page-game-guides img {
    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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-game-guides__video-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* Video responsiveness (if any video were present) */
  .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;
  }
}