/* style/game-guides.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-game-guides {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Shared container styling */
.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-game-guides__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-game-guides__hero-content {
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive H1 font size */
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* CTA Buttons */
.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: 700;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

.page-game-guides__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Introduction Section */
.page-game-guides__introduction-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Explicit background for content area */
}

.page-game-guides__introduction-section p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Game Types Section */
.page-game-guides__game-types-section {
  padding: 80px 0;
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color background */
}

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

.page-game-guides__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Darker card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-game-guides__game-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__game-card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__game-card-title a:hover {
  color: #ffffff;
}

.page-game-guides__game-card-description {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

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

.page-game-guides__btn-text:hover {
  color: #ffffff;
}

/* Strategy Section */
.page-game-guides__strategy-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Explicit background for content area */
}

.page-game-guides__strategy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  text-align: center;
}

.page-game-guides__strategy-item:nth-child(even) {
  flex-direction: column-reverse;
}

.page-game-guides__strategy-title {
  font-size: 28px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-game-guides__strategy-item p {
  font-size: 16px;
  color: #f0f0f0;
  max-width: 800px;
  margin-bottom: 25px;
}

.page-game-guides__strategy-item p a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

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

.page-game-guides__strategy-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color background */
}

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

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(38, 169, 224, 0.2); /* Brand color highlight */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.3);
}

.page-game-guides__faq-item[open] > .page-game-guides__faq-question {
  background-color: #26A9E0;
  border-bottom: 1px solid #1e87c0;
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on entire summary */
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  line-height: 1;
  pointer-events: none; /* Allow click on entire summary */
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-game-guides__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-game-guides__faq-answer a:hover {
  color: #ffffff;
}

/* Details element specific styling for native toggle behavior */
.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-game-guides__faq-item summary {
  list-style: none;
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Explicit background for content area */
  text-align: center;
}

.page-game-guides__conclusion-section p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-buttons--bottom {
  margin-top: 40px;
}

/* Dark background general class for contrast */
.page-game-guides__dark-section {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__game-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-game-guides__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-game-guides__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .page-game-guides__hero-description {
    font-size: 16px;
  }
  .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; /* Enforce full width for mobile buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 15px;
  }
  .page-game-guides__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
  }
  .page-game-guides__introduction-section,
  .page-game-guides__game-types-section,
  .page-game-guides__strategy-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 50px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }
  .page-game-guides__game-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__game-card-image {
    height: 180px;
  }
  .page-game-guides__game-card-title {
    font-size: 20px;
  }
  .page-game-guides__strategy-item {
    margin-bottom: 40px;
  }
  .page-game-guides__strategy-title {
    font-size: 24px;
  }
  .page-game-guides__strategy-item p {
    font-size: 15px;
  }
  .page-game-guides__strategy-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-game-guides__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 15px;
  }
  /* 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__hero-section {
    padding-top: 10px !important;
  }
}