/* style/game-guides.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-yellow: #FFFF00;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
}

.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: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 500px;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.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-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background-color: var(--button-register-bg);
  color: var(--button-text-yellow);
  border: 2px solid var(--button-register-bg);
}

.page-game-guides__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--button-text-yellow);
  color: var(--button-register-bg);
}

.page-game-guides__section {
  padding: 80px 20px;
}

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

.page-game-guides__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
}

.page-game-guides__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-game-guides__why-choose .page-game-guides__section-title,
.page-game-guides__why-choose .page-game-guides__section-description,
.page-game-guides__game-types .page-game-guides__section-title,
.page-game-guides__game-types .page-game-guides__section-description,
.page-game-guides__faq-section .page-game-guides__section-title {
  color: var(--text-dark);
}

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

.page-game-guides__feature-item {
  text-align: center;
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-game-guides__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-game-guides__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-game-guides__feature-text {
  font-size: 1em;
  color: var(--text-dark);
}

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-game-guides__card--green {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-game-guides__card-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-game-guides__game-category {
  margin-bottom: 60px;
}

.page-game-guides__category-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-game-guides__category-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--text-dark);
}

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

.page-game-guides__category-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__category-text {
  flex: 2;
  min-width: 300px;
  font-size: 1.1em;
}

.page-game-guides__category-text p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-game-guides__btn-text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-game-guides__btn-text-link:hover {
  color: #005a2e;
  border-color: #005a2e;
}

.page-game-guides__tips-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-game-guides__tips-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.page-game-guides__tips-list li::before {
  content: '✓';
  color: var(--button-text-yellow);
  font-weight: bold;
  font-size: 1.5em;
  margin-right: 15px;
}

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

.page-game-guides__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border-bottom: 1px solid #eee;
}

.page-game-guides__faq-question:hover {
  background-color: #f5f5f5;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 25px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-question {
  border-bottom: none;
}

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

.page-game-guides__cta-bottom {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__cta-bottom .page-game-guides__section-title,
.page-game-guides__cta-bottom .page-game-guides__section-description {
  color: var(--text-light);
}

.page-game-guides__cta-bottom .page-game-guides__btn-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}

.page-game-guides__cta-bottom .page-game-guides__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.5em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__category-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile space for fixed header */
  }
  .page-game-guides__hero-title {
    font-size: 2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-game-guides__section {
    padding: 50px 15px;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-description {
    font-size: 0.95em;
  }
  .page-game-guides__features-grid,
  .page-game-guides__grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__feature-item,
  .page-game-guides__card {
    padding: 25px;
  }
  .page-game-guides__category-title {
    font-size: 1.6em;
  }
  .page-game-guides__category-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-game-guides__category-content--reverse {
    flex-direction: column;
  }
  .page-game-guides__category-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }
  .page-game-guides__category-text {
    min-width: unset;
  }
  .page-game-guides__tips-list li {
    font-size: 1em;
    padding: 15px;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 20px;
  }

  /* Image specific responsive rules */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__why-choose .page-game-guides__container,
  .page-game-guides__principles .page-game-guides__container,
  .page-game-guides__game-types .page-game-guides__container,
  .page-game-guides__tips-for-beginners .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container,
  .page-game-guides__cta-bottom .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-game-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-title {
    font-size: 1.6em;
  }
  .page-game-guides__category-title {
    font-size: 1.4em;
  }
  .page-game-guides__feature-title {
    font-size: 1.3em;
  }
  .page-game-guides__card-title {
    font-size: 1.5em;
  }
}