/* style/game-guides.css */

/* Variables for colors */
:root {
  --page-game-guides-primary-color: #113B7A;
  --page-game-guides-secondary-color: #1D5FD1;
  --page-game-guides-btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --page-game-guides-card-bg: #10233F;
  --page-game-guides-text-main: #F3F8FF;
  --page-game-guides-text-secondary: #AFC4E8;
  --page-game-guides-border-color: #244D84;
  --page-game-guides-glow-color: #4FA8FF;
  --page-game-guides-gold-color: #F2C14E;
  --page-game-guides-divider-color: #1B3357;
  --page-game-guides-deep-navy: #08162B;
}

/* Base styles for the page content */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-game-guides-text-main); /* Default text color for the page */
  background-color: var(--page-game-guides-deep-navy); /* Matches shared body background */
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: 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 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.15rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
}

/* General Section Styling */
.page-game-guides__content-area,
.page-game-guides__call-to-action {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

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

.page-game-guides__light-bg {
  background-color: var(--page-game-guides-deep-navy); /* Using deep navy as light-bg for text contrast, as it's the body background */
  color: var(--page-game-guides-text-main);
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--page-game-guides-gold-color);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-game-guides__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-game-guides-text-secondary);
}

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

.page-game-guides__cta-buttons--center {
  justify-content: center;
}

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

.page-game-guides__btn-primary {
  background: var(--page-game-guides-btn-gradient);
  color: var(--page-game-guides-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(43, 115, 246, 0.6);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--page-game-guides-gold-color);
  border: 2px solid var(--page-game-guides-gold-color);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--page-game-guides-gold-color);
  color: var(--page-game-guides-primary-color);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

.page-game-guides__game-card {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: var(--page-game-guides-text-secondary); /* Text color for card content */
}

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

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 15px 20px 10px;
  color: var(--page-game-guides-gold-color);
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-game-guides__card-description {
  font-size: 0.95rem;
  padding: 0 20px 15px;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__card-link {
  display: inline-block;
  padding: 10px 20px 20px;
  color: var(--page-game-guides-gold-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-game-guides__card-link:hover {
  color: var(--page-game-guides-glow-color);
}

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

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

.page-game-guides__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-game-guides-text-main);
  position: relative;
  user-select: none; /* Prevent text selection on click */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

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

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

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-game-guides-text-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__content-area,
  .page-game-guides__call-to-action {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-game-guides__text-block {
    font-size: 0.95rem;
  }

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

  .page-game-guides__card-image {
    height: 180px;
  }

  .page-game-guides__card-title {
    font-size: 1.2rem;
    padding: 10px 15px 5px;
  }

  .page-game-guides__card-description {
    font-size: 0.9rem;
    padding: 0 15px 10px;
  }

  .page-game-guides__card-link {
    padding: 5px 15px 15px;
  }

  .page-game-guides__faq-item {
    margin-bottom: 10px;
  }

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

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

  /* Image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__hero-image-wrapper,
  .page-game-guides__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure all containers with images also adapt */
  .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;
  }
}

/* Color contrast safety for deep-navy body background */
.page-game-guides__dark-bg {
  color: var(--page-game-guides-text-main); /* #F3F8FF */
  background-color: var(--page-game-guides-primary-color); /* #113B7A */
}

.page-game-guides__light-bg {
  color: var(--page-game-guides-text-main); /* #F3F8FF */
  background-color: var(--page-game-guides-deep-navy); /* #08162B */
}

/* Ensure text on card background is visible */
.page-game-guides__card {
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__card-title a {
  color: var(--page-game-guides-gold-color);
}

.page-game-guides__faq-item summary {
  color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-answer {
  color: var(--page-game-guides-text-secondary);
}

/* No filter on images */
.page-game-guides img {
  filter: none; /* Ensure no CSS filters are applied */
}