/* style/game-guides.css */

/* Variables from color scheme */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-game-guides {
  /* Assuming body has light background (e.g., #F4F7FB or #FFFFFF from shared.css) */
  color: var(--text-main); /* Deep dark blue for main text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Consistent padding for content */
}

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--page-bg); /* Light background for the section */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-game-guides__hero-content {
  padding: 20px;
  max-width: 800px;
  margin-top: 20px; /* Space between image and text */
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-color); /* Brand color for main title */
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Example clamp, balancing requirements */
}

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

.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width for responsive wrapping */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  max-width: 100%; /* Crucial for mobile responsiveness */
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-game-guides__btn-secondary {
  background: var(--card-bg); /* White background */
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-game-guides__btn-inline {
  margin-top: 20px;
}

.page-game-guides__section {
  padding: 60px 0;
  background-color: var(--card-bg); /* Default light background for sections */
  border-bottom: 1px solid var(--border-color);
}

.page-game-guides__section:nth-of-type(even) {
  background-color: var(--page-bg); /* Alternate light background for readability */
}

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

.page-game-guides__subsection-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-game-guides p {
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-game-guides__list,
.page-game-guides__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-game-guides__ordered-list {
  list-style-type: decimal;
}

.page-game-guides__list li,
.page-game-guides__ordered-list li {
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Minimum size requirement */
}

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

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

.page-game-guides__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-guides__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* Remove default summary marker */
}

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

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  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); /* Rotate plus to form an X or minus */
}

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

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

/* Conclusion Section */
.page-game-guides__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-game-guides__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-game-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to container to prevent overflow */
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important; /* Ensure text wraps */
    word-wrap: break-word !important;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

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

  .page-game-guides__subsection-title {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-game-guides__content-image,
  .page-game-guides__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 15px; /* Add padding to images to prevent overflow */
    box-sizing: border-box;
  }

  .page-game-guides__container {
    padding: 0 15px; /* Ensure content containers have padding */
  }
}