/* style/game-guides.css */

/* Base styles for the page-game-guides scope */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

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

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

.page-game-guides__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-game-guides__section-title--light {
  color: #ffffff;
}

.page-game-guides__intro-text {
  text-align: center;
  max-width: 800px;
  margin: -20px auto 60px auto;
  font-size: 1.1em;
}

.page-game-guides__intro-text--light {
  color: #f0f0f0;
}

.page-game-guides__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__text-block--light .page-game-guides__sub-title {
  color: #ffffff;
}

.page-game-guides__description {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-game-guides__description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #FFFFFF;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

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

.page-game-guides__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-game-guides__hero-content .page-game-guides__description {
  color: #555555;
  font-size: 1.2em;
}

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  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: #1e87b6;
  border-color: #1e87b6;
}

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

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

.page-game-guides__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* Grid Layouts */
.page-game-guides__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-game-guides__grid-two-cols--reverse {
  grid-template-areas: "image text";
}

.page-game-guides__grid-two-cols--reverse .page-game-guides__text-block {
  grid-area: text;
}

.page-game-guides__grid-two-cols--reverse .page-game-guides__image-wrapper {
  grid-area: image;
}

.page-game-guides__image-wrapper {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-game-guides__text-block {
  padding: 20px 0;
}

.page-game-guides__text-block p {
  margin-bottom: 15px;
  color: #333333;
}

.page-game-guides__text-block--light p,
.page-game-guides__text-block--light .page-game-guides__list li {
  color: #f0f0f0;
}

/* Lists */
.page-game-guides__list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  padding: 0;
}

.page-game-guides__list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-game-guides__list--checkmarks {
  list-style-type: none;
  margin-left: 0;
}

.page-game-guides__list--checkmarks li {
  position: relative;
  padding-left: 30px;
}

.page-game-guides__list--checkmarks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.2em;
  top: 0;
}

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

.page-game-guides__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-game-guides__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  padding: 15px 20px 10px;
  font-weight: 700;
}

.page-game-guides__card-description {
  padding: 0 20px 15px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-game-guides__card-link {
  display: block;
  padding: 15px 20px;
  background-color: #f5f5f5;
  color: #26A9E0;
  font-weight: 600;
  text-align: right;
  border-top: 1px solid #eeeeee;
}

.page-game-guides__card-link:hover {
  background-color: #e0e0e0;
}

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

.page-game-guides__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #eeeeee;
}

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

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom-color: #d0d0d0;
}

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

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  animation: fadein 0.3s ease-out;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Conclusion CTA Section */
.page-game-guides__conclusion-cta {
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__conclusion-cta .page-game-guides__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-game-guides__conclusion-cta .page-game-guides__description {
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__grid-two-cols {
    grid-template-columns: 1fr;
  }

  .page-game-guides__grid-two-cols--reverse {
    grid-template-areas: none;
  }

  .page-game-guides__grid-two-cols--reverse .page-game-guides__text-block,
  .page-game-guides__grid-two-cols--reverse .page-game-guides__image-wrapper {
    grid-area: unset;
  }

  .page-game-guides__image-wrapper {
    margin-bottom: 30px;
  }
}

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

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

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

  .page-game-guides__main-title {
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: 0;
  }

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

  .page-game-guides__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
  }

  .page-game-guides__sub-title {
    font-size: clamp(20px, 6vw, 28px);
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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__game-card {
    min-height: auto;
  }

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

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

  .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__image-wrapper,
  .page-game-guides__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-section,
  .page-game-guides__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

/* Color Contrast Fixes (if needed, though design should prevent) */
.page-game-guides__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-game-guides__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}