/* style/game-guides.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --dark-bg-text-color: #ffffff;
  --light-bg-text-color: #333333;
  --card-bg-dark-section: rgba(255, 255, 255, 0.1);
  --card-bg-light-section: #ffffff;
  --border-color: #e0e0e0;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-bg-text-color); /* Default text color for dark body background */
  background-color: #0a0a0a; /* Matches body background from shared.css */
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  padding-bottom: 60px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: left;
  overflow: hidden;
}

.page-game-guides__hero-content {
  flex: 1;
  max-width: 60%;
  padding-left: 20px;
  z-index: 1;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--register-login-font-color); /* Use specific color for emphasis */
}

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

.page-game-guides__hero-actions {
  display: flex;
  gap: 15px;
}

.page-game-guides__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 40%;
  padding-right: 20px;
}

.page-game-guides__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--register-login-font-color); /* Use specific color for emphasis */
}

.page-game-guides__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--dark-bg-text-color);
}

/* General Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background-color: var(--login-btn-color); /* Use specific color for primary action */
  color: var(--register-login-font-color); /* Specific font color for buttons */
  border: 2px solid var(--login-btn-color);
}

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

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--register-login-font-color); /* Specific font color for buttons */
  border: 2px solid var(--register-login-font-color);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--register-login-font-color);
  color: var(--primary-color);
}

/* Sections */
.page-game-guides__introduction-section,
.page-game-guides__general-tips-section,
.page-game-guides__access-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 80px 0;
}

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

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

.page-game-guides__introduction-section .page-game-guides__text-block,
.page-game-guides__general-tips-section .page-game-guides__text-block,
.page-game-guides__access-section .page-game-guides__text-block,
.page-game-guides__faq-section .page-game-guides__text-block,
.page-game-guides__cta-section .page-game-guides__text-block {
  color: var(--light-bg-text-color); /* Ensure text is readable on light background */
}

.page-game-guides__introduction-section .page-game-guides__section-title,
.page-game-guides__general-tips-section .page-game-guides__section-title,
.page-game-guides__access-section .page-game-guides__section-title,
.page-game-guides__faq-section .page-game-guides__section-title,
.page-game-guides__cta-section .page-game-guides__section-title {
  color: var(--primary-color);
}

/* Card Styles */
.page-game-guides__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-guides__card {
  background-color: var(--card-bg-dark-section);
  color: var(--dark-bg-text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-game-guides__card-title a {
  color: var(--register-login-font-color);
  text-decoration: none;
}

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

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

.page-game-guides__list {
  list-style: disc inside;
  padding-left: 0;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  color: var(--dark-bg-text-color);
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Game Card Grid */
.page-game-guides__game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__game-card {
  background-color: var(--card-bg-light-section);
  color: var(--light-bg-text-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.page-game-guides__game-card .page-game-guides__card-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  flex-grow: 0;
}

.page-game-guides__game-card .page-game-guides__card-text {
  font-size: 0.95em;
  color: var(--light-bg-text-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__game-card .page-game-guides__btn-secondary {
  margin-top: auto;
  align-self: center;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-game-guides__game-card .page-game-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* General Tips Section */
.page-game-guides__grid-columns-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__tip-card {
  background-color: var(--card-bg-dark-section);
  color: var(--dark-bg-text-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-game-guides__tip-card .page-game-guides__card-title {
  font-size: 1.4em;
  color: var(--register-login-font-color);
  margin-bottom: 10px;
}

.page-game-guides__tip-card .page-game-guides__card-text {
  font-size: 1em;
  color: var(--dark-bg-text-color);
}

/* Access Section */
.page-game-guides__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__step-item {
  background-color: var(--card-bg-light-section);
  color: var(--light-bg-text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

.page-game-guides__step-text {
  font-size: 1em;
  color: var(--light-bg-text-color);
  margin-bottom: 20px;
}

.page-game-guides__step-item .page-game-guides__btn-primary,
.page-game-guides__step-item .page-game-guides__btn-secondary {
  margin-top: 15px;
}

.page-game-guides__step-item a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-game-guides__step-item a:hover {
  color: var(--login-btn-color);
}

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

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

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

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

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

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

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

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-game-guides__faq-answer p {
  margin: 0;
  color: var(--dark-bg-text-color);
}

.page-game-guides__faq-answer a {
  color: var(--register-login-font-color);
  text-decoration: underline;
}

.page-game-guides__faq-answer a:hover {
  color: var(--secondary-color);
}

/* CTA Section */
.page-game-guides__cta-content {
  text-align: center;
}

.page-game-guides__cta-content .page-game-guides__section-title,
.page-game-guides__cta-content .page-game-guides__text-block {
  color: var(--dark-bg-text-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.8em;
  }
  .page-game-guides__hero-description {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__grid-two-columns,
  .page-game-guides__game-card-grid,
  .page-game-guides__grid-columns-3,
  .page-game-guides__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__hero-section {
    flex-direction: column;
    text-align: center;
  }
  .page-game-guides__hero-content,
  .page-game-guides__hero-image-wrapper {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 30px;
  }
  .page-game-guides__hero-image-wrapper {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }
  .page-game-guides__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-game-guides__hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .page-game-guides__btn-primary, .page-game-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-game-guides__introduction-section,
  .page-game-guides__general-tips-section,
  .page-game-guides__access-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 60px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }

  /* Image and Video Responsive */
  .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__game-card,
  .page-game-guides__tip-card,
  .page-game-guides__step-item,
  .page-game-guides__hero-content,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__faq-list,
  .page-game-guides__faq-item,
  .page-game-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__game-card .page-game-guides__card-image {
    height: auto !important; /* Allow height to adjust */
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-game-guides__hero-description {
    font-size: 0.9em;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 10px 20px;
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__card-title {
    font-size: 1.3em;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 15px;
  }
}