/* style/game-guides.css */

/* Base styles for the page, ensuring light text on dark body background */
.page-game-guides {
  color: #ffffff; /* Default text color for the page */
  background-color: #000000; /* Assuming body background is black from shared.css */
}

/* Shared container for content width */
.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;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #000000; /* Dark background for hero */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  /* No fixed large font-size to avoid mobile issues, relying on weight/line-height */
}

.page-game-guides__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.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: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-guides__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* General Section Styles */
.page-game-guides__section {
  padding: 80px 0;
}

.page-game-guides__dark-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-game-guides__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: inherit;
}

/* Features Grid */
.page-game-guides__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-guides__feature-card {
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-guides__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px; /* Adjust as needed, but ensure >= 200px display */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-game-guides__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-game-guides__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
}

/* Game Category Styles */
.page-game-guides__game-category {
  margin-bottom: 60px;
}

.page-game-guides__category-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
}

.page-game-guides__category-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-guides__category-content--reverse {
  flex-direction: row-reverse;
}

.page-game-guides__category-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-game-guides__category-text-block {
  flex: 1;
  line-height: 1.6;
  color: inherit;
}

.page-game-guides__category-text-block h4 {
  font-size: 1.3em;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-game-guides__category-text-block ol,
.page-game-guides__category-text-block ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__category-text-block li {
  margin-bottom: 8px;
}

/* Tips Grid */
.page-game-guides__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-guides__tip-card {
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__tip-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-game-guides__tip-text {
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
  margin-bottom: 15px;
}

.page-game-guides__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #1f8ac7;
  text-decoration: underline;
}

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

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-game-guides__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  position: relative;
}

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

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

/* CTA Section */
.page-game-guides__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand color background for CTA */
  color: #ffffff;
}

.page-game-guides__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-game-guides__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 2em;
  }

  .page-game-guides__cta-title {
    font-size: 2em;
  }

  .page-game-guides__category-content {
    flex-direction: column;
    text-align: center;
  }

  .page-game-guides__category-content--reverse {
    flex-direction: column;
  }

  .page-game-guides__category-image {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

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

  .page-game-guides__main-title {
    font-size: 1.8em;
  }

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-game-guides__section-description {
    font-size: 0.95em;
  }

  .page-game-guides__feature-card,
  .page-game-guides__tip-card {
    padding: 20px;
  }

  .page-game-guides__category-title {
    font-size: 1.6em;
  }

  .page-game-guides__category-text-block h4 {
    font-size: 1.1em;
  }

  .page-game-guides__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-game-guides__cta-title {
    font-size: 1.8em;
  }

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

  /* Mobile image and video responsiveness */
  .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 {
    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-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure content area images are at least 200px wide, or scale down responsively */
  .page-game-guides__feature-icon,
  .page-game-guides__category-image {
    min-width: unset; /* Allow to scale down */
    min-height: unset; /* Allow to scale down */
  }

  .page-game-guides__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}