/* style/game-guides.css */

:root {
  --page-game-guides-primary-color: #017439;
  --page-game-guides-secondary-color: #FFFFFF;
  --page-game-guides-text-on-dark: #FFFFFF;
  --page-game-guides-text-on-light: #333333;
  --page-game-guides-register-btn-bg: #C30808;
  --page-game-guides-register-btn-text: #FFFF00;
}

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

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--header-offset, 120px) 0 60px; /* Apply header offset */
  text-align: center;
  overflow: hidden;
  color: var(--page-game-guides-text-on-dark);
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-game-guides-text-on-dark);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--page-game-guides-text-on-dark);
}

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

/* Buttons */
.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, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: var(--page-game-guides-primary-color);
  color: var(--page-game-guides-text-on-dark);
  border: 2px solid var(--page-game-guides-primary-color);
}

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

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-game-guides-primary-color);
  color: var(--page-game-guides-text-on-dark);
}

/* Specific button colors for Register/Login */
.page-game-guides__btn-register,
.page-game-guides__btn-login {
  background-color: var(--page-game-guides-register-btn-bg);
  color: var(--page-game-guides-register-btn-text);
  border-color: var(--page-game-guides-register-btn-bg);
}

.page-game-guides__btn-register:hover,
.page-game-guides__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* Sections */
.page-game-guides__intro-section,
.page-game-guides__game-types-section,
.page-game-guides__tips-strategy-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 80px 0;
}

.page-game-guides__dark-bg {
  background-color: #017439;
  color: var(--page-game-guides-text-on-dark);
}

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

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

.page-game-guides__section-title--center {
  text-align: center;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-game-guides__text-block--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Section */
.page-game-guides__video-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 40px auto 0;
}

.page-game-guides__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Game Type Cards */
.page-game-guides__game-card {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 60px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for cards on dark body */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-game-guides-text-on-dark);
}

.page-game-guides__game-card:nth-child(even) {
  flex-direction: row-reverse;
}

.page-game-guides__game-card-image {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-game-guides__game-card-content {
  flex-grow: 1;
}

.page-game-guides__game-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-game-guides-primary-color);
}

.page-game-guides__game-card-title a {
  color: var(--page-game-guides-primary-color);
  text-decoration: none;
}

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

/* Tips & Strategy Grid */
.page-game-guides__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__tip-card {
  background: rgba(255, 255, 255, 0.1); /* Lighter background for cards on dark body */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-game-guides-text-on-dark);
}

.page-game-guides__tip-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-on-dark);
}

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

.page-game-guides__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Lighter background for cards on dark body */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--page-game-guides-text-on-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.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); /* Change + to X or - */
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

.page-game-guides__faq-answer a {
  color: var(--page-game-guides-primary-color);
  text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

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

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

/* Copyright */
.page-game-guides__copyright {
  text-align: center;
  padding: 30px 20px;
  background-color: #017439;
  color: var(--page-game-guides-text-on-dark);
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 3em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__game-card {
    flex-direction: column;
    align-items: center;
  }
  .page-game-guides__game-card:nth-child(even) {
    flex-direction: column;
  }
  .page-game-guides__game-card-image {
    width: 100%;
    max-width: 600px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 500px;
  }
  .page-game-guides__hero-title {
    font-size: 2.2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-game-guides__text-block {
    font-size: 1em;
  }
  .page-game-guides__game-card {
    padding: 20px;
  }
  .page-game-guides__game-card-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-game-guides__video-wrapper {
    padding-bottom: 56.25% !important;
    margin: 20px auto 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-guides__tips-grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__faq-question {
    font-size: 1.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;
  }
  /* Ensure all img elements are 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__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-game-guides__hero-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
  }
  .page-game-guides__faq-toggle {
    font-size: 1.2em;
  }
}