/* style/game-guides.css */

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

.page-game-guides {
  background-color: var(--page-game-guides-background); /* Dark background */
  color: var(--page-game-guides-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-game-guides__text-main {
  color: var(--page-game-guides-text-main);
}

.page-game-guides__text-secondary {
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__dark-bg {
  background-color: var(--page-game-guides-background);
}

.page-game-guides__card-bg {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border-color);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  margin-top: -80px; /* Overlap slightly for visual flow */
  position: relative;
  z-index: 1;
  background-color: var(--page-game-guides-card-bg);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* General Containers and Sections */
.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-game-guides__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  opacity: 0.9;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--page-game-guides-glow-color);
  border: 2px solid var(--page-game-guides-glow-color);
  box-shadow: none;
  margin-left: 20px;
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-game-guides-glow-color);
  color: var(--page-game-guides-background);
  transform: translateY(-3px);
}

.page-game-guides__full-width-cta {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 40px auto 20px auto;
}

/* Game Categories Section */
.page-game-guides__overview-section {
  padding: 60px 0;
}

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

.page-game-guides__game-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
  height: 100%;
  box-sizing: border-box;
}

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

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

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
}

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

/* Detailed Guides Section */
.page-game-guides__detailed-guides {
  padding: 60px 0;
}

.page-game-guides__guide-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 60px;
  border-radius: 10px;
  overflow: hidden;
  padding: 30px;
}

.page-game-guides__guide-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-game-guides__guide-image {
  width: 40%;
  min-width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-game-guides__guide-content {
  width: 60%;
}

.page-game-guides__guide-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-game-guides__guide-text {
  margin-bottom: 20px;
}

.page-game-guides__guide-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__guide-list li {
  margin-bottom: 5px;
}

/* Video Section */
.page-game-guides__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* small decorative top padding */
  text-align: center;
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  width: 100%; /* Ensure desktop width is 100% */
  max-width: 1200px;
  box-sizing: border-box;
}

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

.page-game-guides__video-cta {
  margin-top: 20px;
}

/* Registration Guide Section */
.page-game-guides__registration-guide {
  padding: 60px 0;
}

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

.page-game-guides__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  border-radius: 10px;
}

.page-game-guides__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 200px; /* Ensure min height for display */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-game-guides__step-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-game-guides__step-text {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-game-guides__promotions-section {
  padding: 60px 0;
}

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

.page-game-guides__promo-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 20px;
  height: 100%;
  box-sizing: border-box;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 0;
}

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

.page-game-guides__faq-item {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  outline: none;
  border-bottom: 1px solid var(--page-game-guides-divider-color);
}

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

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-game-guides-glow-color);
}

.page-game-guides__faq-answer {
  padding: 15px 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
}

/* CTA Section */
.page-game-guides__cta-section {
  padding: 60px 0 80px 0;
  text-align: center;
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-guides__hero-content {
    margin-top: -60px;
  }

  .page-game-guides__detailed-guides .page-game-guides__guide-item {
    flex-direction: column;
    align-items: center;
  }

  .page-game-guides__guide-image,
  .page-game-guides__guide-content {
    width: 100%;
  }

  .page-game-guides__guide-image {
    margin-bottom: 20px;
  }

  .page-game-guides__guide-item:nth-child(even) {
    flex-direction: column;
  }
}

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

  .page-game-guides__hero-content {
    margin-top: -40px;
    padding: 30px 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__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    padding-top: 30px;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 0 10px 0 !important; /* Reset margin for stacked buttons */
  }

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

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

  .page-game-guides__game-card,
  .page-game-guides__step-card,
  .page-game-guides__promo-card {
    padding: 20px;
  }

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

  .page-game-guides__card-description {
    font-size: 0.9rem;
  }

  .page-game-guides__guide-item {
    padding: 20px;
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-game-guides__guide-title {
    font-size: 1.5rem;
  }

  /* Mobile image responsiveness */
  .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__container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__game-card,
  .page-game-guides__guide-item,
  .page-game-guides__step-card,
  .page-game-guides__promo-card,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-game-guides__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

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

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    padding: 20px 10px;
  }

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}