/* style/game-guides.css */

/* Custom Colors */
:root {
  --qgwin-primary: #11A84E;
  --qgwin-secondary: #22C768;
  --qgwin-card-bg: #11271B;
  --qgwin-bg: #08160F;
  --qgwin-text-main: #F2FFF6;
  --qgwin-text-secondary: #A7D9B8;
  --qgwin-border: #2E7A4E;
  --qgwin-glow: #57E38D;
  --qgwin-gold: #F2C14E;
  --qgwin-divider: #1E3A2A;
  --qgwin-deep-green: #0A4B2C;
  --qgwin-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* General Page Styles */
.page-game-guides {
  font-family: Arial, sans-serif;
  color: var(--qgwin-text-main); /* Default text color for dark body background */
  background-color: var(--qgwin-bg); /* Ensure contrast with text */
}

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

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

.page-game-guides__description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 30px;
  color: var(--qgwin-text-secondary);
}

/* 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 */
  min-height: 500px;
  overflow: hidden;
  background-color: var(--qgwin-bg);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-game-guides__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--qgwin-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--qgwin-btn-gradient);
  color: #ffffff;
  border: none;
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--qgwin-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Intro Section */
.page-game-guides__intro-section {
  padding: 80px 0;
  background-color: var(--qgwin-bg);
  color: var(--qgwin-text-main);
  border-bottom: 1px solid var(--qgwin-divider);
}

.page-game-guides__intro-section p {
  text-align: left;
  margin-bottom: 1.5em;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--qgwin-text-secondary);
}

/* Video Section */
.page-game-guides__video-section {
  padding: 80px 0;
  background-color: var(--qgwin-bg);
  color: var(--qgwin-text-main);
  text-align: center;
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  width: 100%; /* Ensure desktop width is 100% */
  box-sizing: border-box;
}

.page-game-guides__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Game Types Section */
.page-game-guides__game-types {
  padding: 80px 0;
  background-color: var(--qgwin-bg);
  color: var(--qgwin-text-main);
}

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

.page-game-guides__game-card {
  background-color: var(--qgwin-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--qgwin-border);
}

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

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.8em;
  color: var(--qgwin-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__game-card p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--qgwin-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-guides__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.page-game-guides__card-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  color: var(--qgwin-text-secondary);
}

.page-game-guides__card-list li::before {
  content: '✔';
  color: var(--qgwin-primary);
  position: absolute;
  left: 0;
  top: 0;
}

/* Strategies Section */
.page-game-guides__strategies-section {
  padding: 80px 0;
  background-color: var(--qgwin-bg);
  color: var(--qgwin-text-main);
  border-top: 1px solid var(--qgwin-divider);
}

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

.page-game-guides__strategy-item {
  background-color: var(--qgwin-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--qgwin-border);
}

.page-game-guides__item-title {
  font-size: 1.6em;
  color: var(--qgwin-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__strategy-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--qgwin-text-secondary);
}

.page-game-guides__strategy-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: var(--qgwin-bg);
  color: var(--qgwin-text-main);
  border-top: 1px solid var(--qgwin-divider);
}

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

.page-game-guides__faq-item {
  background-color: var(--qgwin-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--qgwin-border);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--qgwin-text-main);
  cursor: pointer;
  background-color: var(--qgwin-deep-green);
  border-bottom: 1px solid var(--qgwin-divider);
  list-style: none; /* For details/summary */
}

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

details.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom: 1px solid var(--qgwin-border);
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  color: var(--qgwin-gold);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--qgwin-gold);
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--qgwin-text-secondary);
}

/* CTA Bottom Section */
.page-game-guides__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--qgwin-bg);
  color: var(--qgwin-text-main);
  text-align: center;
  border-top: 1px solid var(--qgwin-divider);
}

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

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

  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-guides__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

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

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

  .page-game-guides__hero-section {
    padding: 30px 15px;
    min-height: unset;
  }

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

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

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

  .page-game-guides__intro-section,
  .page-game-guides__video-section,
  .page-game-guides__game-types,
  .page-game-guides__strategies-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom-section {
    padding: 40px 0;
  }

  /* Image Responsive Adaptation */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__hero-image-wrapper,
  .page-game-guides__video-wrapper,
  .page-game-guides__game-card,
  .page-game-guides__strategy-item,
  .page-game-guides__faq-item,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video Responsive Adaptation */
  .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 {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-game-guides__video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

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

@media (max-width: 480px) {
  .page-game-guides__section-title {
    font-size: 1.5em;
  }

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

  .page-game-guides__item-title {
    font-size: 1.3em;
  }
}