/* style/game-guides.css */

/* Base styles for the page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Rely on shared body background */
}

.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;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.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.6); /* Darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-game-guides__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-game-guides__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-game-guides__btn-primary:hover {
  background-color: #cc6d06;
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-secondary:hover {
  background-color: #26A9E0;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-game-guides__introduction-section,
.page-game-guides__game-category-section,
.page-game-guides__advanced-tips-section,
.page-game-guides__safety-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-game-guides__section-title {
  font-size: 2.2rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-game-guides__text-block {
  font-size: 1.05rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  text-align: justify;
}

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

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

.page-game-guides__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

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

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

.page-game-guides__card-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-game-guides__card-description {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__btn-text {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #ff9800;
  text-decoration: underline;
}

/* Advanced Tips */
.page-game-guides__tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-game-guides__tips-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1rem;
  border-left: 5px solid #26A9E0;
}

.page-game-guides__tips-list li strong {
  color: #26A9E0;
}

.page-game-guides__tips-list li a {
  color: #EA7C07;
  text-decoration: none;
}

.page-game-guides__tips-list li a:hover {
  text-decoration: underline;
}

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

.page-game-guides__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-game-guides__feature-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__feature-item p {
  font-size: 0.95rem;
  color: #e0e0e0;
}

.page-game-guides__feature-item a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__feature-item a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details */
}

.page-game-guides__faq-item[open] > .page-game-guides__faq-question {
  border-bottom: 1px solid transparent; /* Remove border when open */
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  color: #e0e0e0;
}

.page-game-guides__faq-answer p {
  margin-bottom: 0;
}

.page-game-guides__faq-answer a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-game-guides__description {
    font-size: 1rem;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__game-category-section,
  .page-game-guides__advanced-tips-section,
  .page-game-guides__safety-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

  .page-game-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-game-guides__text-block {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .page-game-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__game-grid,
  .page-game-guides__safety-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__game-card,
  .page-game-guides__feature-item {
    padding: 20px;
  }

  .page-game-guides__card-title {
    font-size: 1.2rem;
  }

  .page-game-guides__card-description,
  .page-game-guides__feature-item p,
  .page-game-guides__tips-list li {
    font-size: 0.9rem;
  }

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

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

  .page-game-guides__faq-answer {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Mobile image responsiveness */
  .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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Specific padding for sections to avoid content touching edges */
  .page-game-guides__introduction-section .page-game-guides__container,
  .page-game-guides__game-category-section .page-game-guides__container,
  .page-game-guides__advanced-tips-section .page-game-guides__container,
  .page-game-guides__safety-section .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container,
  .page-game-guides__cta-section .page-game-guides__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}