/* style/game-guides.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #007bff; /* Slightly darker blue for hover */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #26A9E0;
  --border-color: #e0e0e0;
  --login-color: #EA7C07;
}

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

.page-game-guides h1, .page-game-guides h2, .page-game-guides h3, .page-game-guides h4, .page-game-guides h5, .page-game-guides h6 {
  color: var(--text-color-dark);
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-game-guides h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 25px;
}

.page-game-guides h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-game-guides h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-game-guides h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-game-guides p {
  margin-bottom: 15px;
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 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;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: var(--text-color-light);
}

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

.page-game-guides__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-game-guides__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-game-guides__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-game-guides__hero-content h1, .page-game-guides__hero-content p {
  color: var(--text-color-light);
}

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

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--login-color);
  color: var(--text-color-light);
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  background: #d66a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-game-guides__content-section,
.page-game-guides__image-section,
.page-game-guides__strategy-section,
.page-game-guides__promo-section,
.page-game-guides__safety-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 60px 0;
}

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

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

.page-game-guides__dark-bg h2, .page-game-guides__dark-bg h3, .page-game-guides__dark-bg p {
  color: var(--text-color-light);
}

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

.page-game-guides__image-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.page-game-guides__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-game-guides__strategy-content ul {
  list-style: none;
  padding-left: 0;
}

.page-game-guides__strategy-content ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-game-guides__strategy-content ul li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--text-color-light);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: #f5f5f5;
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}
.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

.page-game-guides__cta-section .page-game-guides__cta-content {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-game-guides h1 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-game-guides h2 {
    font-size: clamp(20px, 5vw, 30px);
    margin-bottom: 20px;
  }

  .page-game-guides h3 {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .page-game-guides__container {
    padding: 15px;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-image img {
    border-radius: 4px;
  }

  .page-game-guides__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__cta-button {
    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__content-section,
  .page-game-guides__image-section,
  .page-game-guides__strategy-section,
  .page-game-guides__promo-section,
  .page-game-guides__safety-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

  .page-game-guides__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px;
  }
  .page-game-guides__faq-qtext {
    font-size: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }
}