/* style/game-guides.css */

/* Custom Colors */
:root {
  --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: #2E7A4E;
  --page-game-guides-glow: #57E38D;
  --page-game-guides-gold: #F2C14E;
  --page-game-guides-divider: #1E3A2A;
  --page-game-guides-deep-green: #0A4B2C;
  --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--page-game-guides-background); /* Deep Green Background */
  color: var(--page-game-guides-text-secondary);
}

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

/* Sections */
.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

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

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

/* 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;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  color: var(--page-game-guides-text-main);
  margin-top: -150px; /* Pull content up over image for visual effect, but not overlap text */
}

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

.page-game-guides__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-game-guides-border);
  color: #ffffff;
}

.page-game-guides__btn-text {
  display: inline-flex;
  align-items: center;
  color: var(--page-game-guides-glow);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
}

.page-game-guides__btn-text:hover {
  text-decoration: underline;
}

.page-game-guides__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-game-guides__btn-text:hover .page-game-guides__arrow {
  transform: translateX(5px);
}

/* Typography */
.page-game-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--page-game-guides-text-main);
  margin-bottom: 40px;
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: #000000;
}

.page-game-guides__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-game-guides__card {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__light-bg .page-game-guides__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}

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

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-game-guides-text-main);
  margin: 20px 20px 10px;
}

.page-game-guides__light-bg .page-game-guides__card-title {
  color: #000000;
}

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

/* Strategy Grid */
.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(--page-game-guides-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--page-game-guides-text-secondary);
  display: flex;
  flex-direction: column;
}

.page-game-guides__strategy-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--page-game-guides-text-main);
  margin-bottom: 15px;
}

.page-game-guides__strategy-text {
  font-size: 1rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-game-guides__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__feature-item {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--page-game-guides-text-secondary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-guides__feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-game-guides-text-main);
  margin-bottom: 15px;
}

.page-game-guides__feature-text {
  font-size: 1rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* FAQ Section */
.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

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

.page-game-guides__light-bg .page-game-guides__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-game-guides-text-main);
  cursor: pointer;
  background-color: var(--page-game-guides-card-bg);
  border-bottom: 1px solid var(--page-game-guides-divider);
}

.page-game-guides__light-bg .page-game-guides__faq-question {
  color: #000000;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-game-guides__light-bg .page-game-guides__faq-item[open] > .page-game-guides__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

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

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

.page-game-guides__light-bg .page-game-guides__faq-answer {
  color: #333333;
}

/* CTA Bottom Section */
.page-game-guides__cta-bottom {
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-guides__hero-content {
    margin-top: -100px;
  }
}

@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__hero-image-wrapper {
    max-height: 350px;
  }

  .page-game-guides__hero-content {
    margin-top: -80px;
    padding: 15px;
  }

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

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

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-game-guides__paragraph {
    font-size: 0.95rem;
  }

  .page-game-guides__grid,
  .page-game-guides__strategy-grid,
  .page-game-guides__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides__card,
  .page-game-guides__strategy-item,
  .page-game-guides__feature-item,
  .page-game-guides__faq-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__card-image {
    height: 200px;
  }

  .page-game-guides__card-title,
  .page-game-guides__strategy-title,
  .page-game-guides__feature-title {
    font-size: 1.3rem;
  }

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

  .page-game-guides__faq-question {
    font-size: 1rem;
  }

  .page-game-guides__faq-answer {
    font-size: 0.95rem;
  }

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

  /* Ensure all images are responsive */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers are responsive */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__hero-content,
  .page-game-guides__cta-buttons,
  .page-game-guides__grid,
  .page-game-guides__strategy-grid,
  .page-game-guides__feature-list,
  .page-game-guides__faq-list,
  .page-game-guides__faq-item,
  .page-game-guides__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  
  .page-game-guides__general-intro .page-game-guides__container,
  .page-game-guides__effective-strategies .page-game-guides__container,
  .page-game-guides__why-choose .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container,
  .page-game-guides__cta-bottom .page-game-guides__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}