/* style/game-guides.css */

/* Base styles for the game guides page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background */
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  margin-top: 100px; /* Push content down from the top slightly */
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-guides__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-game-guides__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* 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;
}

.page-game-guides__game-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-game-guides__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-game-guides__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
}

/* Strategy Section */
.page-game-guides__strategy-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
}

.page-game-guides__strategy-section .page-game-guides__section-title,
.page-game-guides__strategy-section .page-game-guides__text-block {
  color: #ffffff;
}

.page-game-guides__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__strategy-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-game-guides__strategy-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__strategy-item p {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Get Started Section */
.page-game-guides__get-started-section {
  background-color: #f8f8f8;
  padding: 60px 20px;
}

.page-game-guides__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__step-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-game-guides__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__step-card p {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-game-guides__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-game-guides__faq-item[open] {
  background: #e9f7fe; /* Lighter background when open */
  border-color: #26A9E0;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none; /* Hide default marker for summary */
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  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: 1em;
  color: #555555;
}

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
  text-align: left; /* Ensure text alignment for FAQ answers */
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  background-color: #f0f7ff;
  padding: 60px 20px;
  text-align: center;
}

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

/* Buttons */
.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-game-guides__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(234, 124, 7, 0.4);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: #1f8ec4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(38, 169, 224, 0.4);
}

.page-game-guides__game-card .page-game-guides__cta-button,
.page-game-guides__step-card .page-game-guides__cta-button,
.page-game-guides__faq-answer .page-game-guides__cta-button {
  margin-top: auto; /* Push button to the bottom of the card */
  margin-left: auto;
  margin-right: auto;
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    margin-top: 80px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

  .page-game-guides__hero-content {
    margin-top: 60px;
    padding: 15px;
  }

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

  .page-game-guides__hero-description {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

  .page-game-guides__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-game-guides__text-block {
    font-size: 1em;
  }

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

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

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

  .page-game-guides__card-title,
  .page-game-guides__strategy-title,
  .page-game-guides__step-title {
    font-size: 1.3em;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  /* 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-section,
  .page-game-guides__introduction-section,
  .page-game-guides__game-types-section,
  .page-game-guides__strategy-section,
  .page-game-guides__get-started-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Mobile button responsiveness */
  .page-game-guides__cta-button,
  .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__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;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
  }

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