/* style/game-guides.css */

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

/* Base styles for the page content */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--kimsa-text-main); /* Default text color for dark background */
  background-color: var(--kimsa-background); /* Ensure consistency with body background */
}

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

/* Section Styling */
.page-game-guides__section-title {
  font-size: clamp(1.8em, 2.5vw, 2.8em);
  color: var(--kimsa-gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-game-guides__sub-title {
  font-size: clamp(1.3em, 2vw, 1.8em);
  color: var(--kimsa-text-main);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__description,
.page-game-guides__text-block {
  font-size: 1.1em;
  color: var(--kimsa-text-secondary);
  margin-bottom: 20px;
}

.page-game-guides__dark-bg {
  background-color: var(--kimsa-background);
  color: var(--kimsa-text-main);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top, use small top padding here */
  overflow: hidden;
}

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

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

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-game-guides__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Use clamp for H1 */
  color: var(--kimsa-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto; /* Default to auto width for desktop */
}

.page-game-guides__btn-primary {
  background: var(--kimsa-button-gradient);
  color: var(--kimsa-text-main);
  border: 2px solid var(--kimsa-primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  width: 100%; /* Desktop width for video wrapper */
  max-width: 100%;
  box-sizing: border-box;
}

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

/* Game Types Section */
.page-game-guides__game-types-section {
  padding: 60px 0;
  background-color: var(--kimsa-background);
}

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

.page-game-guides__card {
  background-color: var(--kimsa-card-bg);
  border: 1px solid var(--kimsa-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--kimsa-text-secondary);
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--kimsa-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-description {
  font-size: 1em;
  color: var(--kimsa-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Account Management Section */
.page-game-guides__account-management-section {
  padding: 60px 0;
}

.page-game-guides__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

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

.page-game-guides__text-content {
  flex: 1;
}

.page-game-guides__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-game-guides__list-item {
  background-color: var(--kimsa-card-bg);
  border-left: 4px solid var(--kimsa-primary-color);
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--kimsa-text-main);
  font-size: 1.05em;
}

.page-game-guides__list-item strong {
  color: var(--kimsa-gold);
}

.page-game-guides__list-item a {
  color: var(--kimsa-secondary-color);
  text-decoration: none;
}

.page-game-guides__list-item a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 0;
  background-color: var(--kimsa-background);
}

.page-game-guides__faq-list {
  margin-top: 40px;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--kimsa-gold);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: rgba(var(--kimsa-primary-color), 0.1);
}

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

.page-game-guides__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1.05em;
  color: var(--kimsa-text-secondary);
}

.page-game-guides__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--kimsa-text-secondary);
}

.page-game-guides__faq-answer a {
  color: var(--kimsa-secondary-color);
  text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-game-guides__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--kimsa-deep-green);
  border-top: 1px solid var(--kimsa-divider);
}

.page-game-guides__cta-button {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 15px 35px;
  border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

  .page-game-guides__hero-content {
    max-width: 700px;
  }

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

  .page-game-guides__content-flex {
    flex-direction: column;
    gap: 30px;
  }

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

  .page-game-guides__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
}

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

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

  .page-game-guides__description,
  .page-game-guides__text-block {
    font-size: 1em;
  }

  .page-game-guides__hero-section,
  .page-game-guides__video-section,
  .page-game-guides__game-types-section,
  .page-game-guides__account-management-section,
  .page-game-guides__mobile-app-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body has padding-top for header */
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 300px;
  }

  .page-game-guides__game-card-grid {
    grid-template-columns: 1fr;
  }

  /* Images responsive */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Video responsive */
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Handled by section padding */
    padding-right: 0 !important; /* Handled by section padding */
  }

  /* Buttons responsive */
  .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; /* Full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

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

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

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

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

  .page-game-guides__hero-image-wrapper {
    max-height: 200px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 1em;
    padding: 10px 20px;
  }

  .page-game-guides__cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }
}