/* style/game-guides.css */

:root {
  --page-game-guides-primary-color: #11A84E;
  --page-game-guides-secondary-color: #22C768;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --page-game-guides-bg-color: #08160F;
  --page-game-guides-card-bg: #11271B;
  --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 {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-guides-text-main); /* Default text color for dark background */
  background-color: var(--page-game-guides-bg-color);
  line-height: 1.6;
}

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

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

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: var(--page-game-guides-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--page-game-guides-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 */
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-game-guides__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--page-game-guides-gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.15rem;
  color: var(--page-game-guides-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__hero-cta-buttons,
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--page-game-guides-text-main);
  border: 2px solid var(--page-game-guides-glow-color);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-secondary {
  background: var(--page-game-guides-card-bg);
  color: var(--page-game-guides-gold-color);
  border: 2px solid var(--page-game-guides-gold-color);
}

.page-game-guides__btn-secondary:hover {
  background: var(--page-game-guides-gold-color);
  color: var(--page-game-guides-deep-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
.page-game-guides__intro-section,
.page-game-guides__game-types-section,
.page-game-guides__strategies-section,
.page-game-guides__download-cta-section {
  padding: 80px 0;
}

.page-game-guides__why-choose-section,
.page-game-guides__beginner-guide-section,
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: var(--page-game-guides-deep-green);
}

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

.page-game-guides__feature-item {
  background-color: var(--page-game-guides-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border-color);
  transition: transform 0.3s ease;
}

.page-game-guides__feature-item:hover {
  transform: translateY(-5px);
}

.page-game-guides__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-game-guides__feature-description {
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
}

/* Game Cards Grid */
.page-game-guides__game-card-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(--page-game-guides-card-bg);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
}

.page-game-guides__game-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 20px auto;
  object-fit: cover;
}

.page-game-guides__game-card-title {
  font-size: 1.4rem;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-game-guides__game-card-description {
  font-size: 0.95rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-game-guides__guide-item {
  background-color: var(--page-game-guides-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__guide-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-game-guides__guide-title {
  font-size: 1.6rem;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__guide-description {
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 20px;
}

/* 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);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__strategy-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-game-guides__strategy-title {
  font-size: 1.5rem;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__strategy-description {
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
}

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

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--page-game-guides-text-main);
  cursor: pointer;
  background-color: var(--page-game-guides-deep-green);
  border-bottom: 1px solid var(--page-game-guides-divider-color);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: var(--page-game-guides-primary-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  background-color: var(--page-game-guides-primary-color);
  border-bottom-color: transparent;
}

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

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

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

.page-game-guides__faq-item summary::marker {
  display: none;
}

/* Download CTA Section */
.page-game-guides__download-cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--page-game-guides-deep-green);
}

.page-game-guides__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-game-guides__download-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  .page-game-guides__hero-description {
    font-size: 1.05rem;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-game-guides__hero-image {
    margin-bottom: 30px;
  }
  .page-game-guides__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-game-guides__hero-description {
    font-size: 1rem;
  }
  .page-game-guides__hero-cta-buttons,
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-game-guides__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-game-guides__intro-section,
  .page-game-guides__why-choose-section,
  .page-game-guides__game-types-section,
  .page-game-guides__beginner-guide-section,
  .page-game-guides__strategies-section,
  .page-game-guides__faq-section,
  .page-game-guides__download-cta-section {
    padding: 40px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides img {
    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__feature-item,
  .page-game-guides__game-card,
  .page-game-guides__guide-item,
  .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;
  }

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

  .page-game-guides__download-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-game-guides__feature-title,
  .page-game-guides__game-card-title,
  .page-game-guides__guide-title,
  .page-game-guides__strategy-title {
    font-size: 1.3rem;
  }
  .page-game-guides__text-block,
  .page-game-guides__feature-description,
  .page-game-guides__game-card-description,
  .page-game-guides__guide-description,
  .page-game-guides__strategy-description,
  .page-game-guides__faq-answer {
    font-size: 0.9rem;
  }
}