/* style/game-guides.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --dark-bg-1: #0d0d0d; /* Assuming shared.css defines this as a dark background */
  --login-color: #EA7C07;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text as body background is dark */
  background-color: var(--dark-bg-1); /* Inherited from shared.css body */
}

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

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

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

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

.page-game-guides__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-game-guides__dark-bg .page-game-guides__section-title {
  color: var(--secondary-color);
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  padding: 100px 0 60px;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
}

.page-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.2;
  font-weight: bold;
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 40px;
  max-width: 900px;
  line-height: 1.5;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 20px;
}

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

.page-game-guides__btn-center {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-game-guides__feature-card:hover {
  transform: translateY(-10px);
}

.page-game-guides__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

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

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

/* Step-by-Step Guide */
.page-game-guides__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-game-guides__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  position: relative;
  padding-top: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-game-guides__step-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-game-guides__step-item p {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-game-guides__game-card {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--secondary-color);
  color: var(--text-dark);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-game-guides__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides__game-card .page-game-guides__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

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

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

.page-game-guides__game-card p {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* Video Section */
.page-game-guides__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-game-guides__video-intro {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 30px;
  background-color: #000;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

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

/* Tip List */
.page-game-guides__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-game-guides__tip-item {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-guides__tip-item strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  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);
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important;
  padding: 20px;
}

/* CTA Section */
.page-game-guides__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-game-guides__cta-content {
  max-width: 900px;
}

.page-game-guides__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-game-guides__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 3em;
  }
  .page-game-guides__hero-description {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__cta-title {
    font-size: 2.2em;
  }
}

@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 header offset on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-title {
    font-size: 2.2em;
  }

  .page-game-guides__hero-description {
    font-size: 1em;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding: 12px 20px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__feature-grid,
  .page-game-guides__step-by-step,
  .page-game-guides__game-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides__feature-card,
  .page-game-guides__game-card,
  .page-game-guides__step-item {
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .page-game-guides__step-item {
    padding-top: 60px;
  }

  .page-game-guides__step-number {
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
  }

  .page-game-guides__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure 16:9 aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Ensure video fills wrapper */
  }

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

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

  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-game-guides__cta-title {
    font-size: 1.8em;
  }

  .page-game-guides__cta-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-game-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__hero-section .page-game-guides__container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure images are not filtered */
.page-game-guides img {
  filter: none !important;
}

/* Content area image size enforcement */
.page-game-guides__feature-icon,
.page-game-guides__game-image {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-game-guides__feature-icon,
  .page-game-guides__game-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}