/* style/game-guides.css */

/* Base styles for the game guides page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
  background-color: var(--bg-color, #08160F); /* Ensure body background is respected */
}

.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.5rem;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__subtitle {
  font-size: 1.8rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
}

.page-game-guides__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  text-align: center;
}

.page-game-guides__dark-section {
  background-color: var(--background-color, #08160F);
  padding: 60px 0;
}

.page-game-guides__light-bg {
  background-color: #11271B;
  color: var(--text-main-color, #F2FFF6);
}

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

.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: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0;
  background-color: var(--background-color, #08160F);
}

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

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

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

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.page-game-guides__description {
  font-size: 1.2rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

/* Introduction Section */
.page-game-guides__introduction-section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__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(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.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.5rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

.page-game-guides__card-text {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Getting Started Section */
.page-game-guides__getting-started-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

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

.page-game-guides__step-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-game-guides__step-title {
  font-size: 1.4rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

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

.page-game-guides__step-list li {
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-game-guides__step-list li::before {
  content: '✔';
  color: #2AD16F;
  position: absolute;
  left: 0;
  top: 0;
}

/* Game Types Section */
.page-game-guides__game-types-section {
  padding: 60px 0;
}

.page-game-guides__game-category {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__game-subtitle {
  font-size: 1.8rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

.page-game-guides__game-text {
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
}

.page-game-guides__game-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-game-guides__game-list li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.page-game-guides__game-list li::before {
  content: '•';
  color: var(--gold-color, #F2C14E);
  position: absolute;
  left: 0;
  top: 0;
}

/* Promotions Section */
.page-game-guides__promotions-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

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

.page-game-guides__promo-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-game-guides__promo-title {
  font-size: 1.4rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

.page-game-guides__promo-text {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
}

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

.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(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
}

.page-game-guides__strategy-subtitle {
  font-size: 1.4rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

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

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

.page-game-guides__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-game-guides__faq-question:hover {
  background-color: #1a3025; /* Slightly lighter hover for dark card */
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

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

.page-game-guides__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
  color: var(--glow-color, #57E38D);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  padding: 0 30px 20px 30px;
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

.page-game-guides__faq-btn {
  margin-top: 15px;
}

/* Remove default details marker */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

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

/* Image and Video responsive rules */
.page-game-guides img,
.page-game-guides video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 2rem;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .page-game-guides__description {
    font-size: 1.1rem;
  }
  .page-game-guides__card-grid,
  .page-game-guides__steps-wrapper,
  .page-game-guides__promo-grid,
  .page-game-guides__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 0 15px;
  }
  .page-game-guides__hero-section,
  .page-game-guides__introduction-section,
  .page-game-guides__getting-started-section,
  .page-game-guides__game-types-section,
  .page-game-guides__promotions-section,
  .page-game-guides__strategy-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-game-guides__description {
    font-size: 1rem;
  }
  .page-game-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-game-guides__text-block {
    font-size: 0.95rem;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
  }

  /* Images and Videos */
  .page-game-guides img,
  .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__hero-image-wrapper,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__promo-card,
  .page-game-guides__step-card,
  .page-game-guides__game-category,
  .page-game-guides__strategy-item,
  .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__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-game-guides__faq-toggle {
    font-size: 1.5rem;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }
}