/* style/game-guides.css */
/* Custom Colors */
:root {
  --page-game-guides-bg-primary: #08160F;
  --page-game-guides-bg-card: #11271B;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --page-game-guides-border: #2E7A4E;
  --page-game-guides-glow: #57E38D;
  --page-game-guides-gold: #F2C14E;
  --page-game-guides-divider: #1E3A2A;
  --page-game-guides-deep-green: #0A4B2C;
  --page-game-guides-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page */
.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-bg-primary); /* Page 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;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--page-game-guides-bg-primary);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
}

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

.page-game-guides__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-game-guides__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-game-guides-text-main);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.page-game-guides__description {
  font-size: 1.1em;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
}

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

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

.page-game-guides__btn-primary {
  background: var(--page-game-guides-btn-gradient);
  color: var(--page-game-guides-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--page-game-guides-glow);
  border: 2px solid var(--page-game-guides-glow);
}

.page-game-guides__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
}

/* Section Titles */
.page-game-guides__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--page-game-guides-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

/* General Section Styling */
.page-game-guides__intro-section,
.page-game-guides__game-types-section,
.page-game-guides__advanced-tips-section,
.page-game-guides__optimize-experience-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 80px 0;
}

.page-game-guides__intro-section p,
.page-game-guides__game-types-section p,
.page-game-guides__advanced-tips-section p,
.page-game-guides__optimize-experience-section p,
.page-game-guides__conclusion-section p {
  color: var(--page-game-guides-text-secondary);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.05em;
}

/* Dark background sections */
.page-game-guides__dark-section {
  background-color: var(--page-game-guides-bg-card);
}

/* Light background sections */
.page-game-guides__light-bg {
  background-color: #f0f0f0;
  color: #333333;
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg h3 {
  color: #333333;
}

.page-game-guides__light-bg p,
.page-game-guides__light-bg li {
  color: #555555;
}

/* Guide Cards */
.page-game-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-guides__guide-card {
  background-color: var(--page-game-guides-bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

.page-game-guides__card-title {
  font-size: 1.4em;
  color: var(--page-game-guides-gold);
  margin: 25px 15px 15px 15px;
  min-height: 60px;
}

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

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

.page-game-guides__guide-card p {
  font-size: 0.95em;
  color: var(--page-game-guides-text-secondary);
  padding: 0 20px 25px;
  text-align: left;
}

/* Game Category Sections */
.page-game-guides__game-category {
  margin-bottom: 60px;
  background-color: var(--page-game-guides-bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--page-game-guides-divider);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-game-guides__category-title {
  font-size: 1.8em;
  color: var(--page-game-guides-glow);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-game-guides__category-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--page-game-guides-gold);
  border-radius: 1.5px;
}

.page-game-guides__category-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__game-category p {
  text-align: left;
  font-size: 1.05em;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-secondary);
}

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

.page-game-guides__tips-list li {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-game-guides__tips-list li h3 {
  font-size: 1.6em;
  color: var(--page-game-guides-deep-green);
  margin-bottom: 15px;
  text-align: left;
}

.page-game-guides__tips-list li p {
  text-align: left;
  color: #555555;
  font-size: 1em;
}

/* Optimize Experience List */
.page-game-guides__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-game-guides__benefits-list li {
  background-color: var(--page-game-guides-bg-primary);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__benefits-list li h3 {
  font-size: 1.6em;
  color: var(--page-game-guides-gold);
  margin-bottom: 15px;
  text-align: left;
}

.page-game-guides__benefits-list li p {
  text-align: left;
  color: var(--page-game-guides-text-secondary);
  font-size: 1em;
}

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

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-bg-card);
  border: 1px solid var(--page-game-guides-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--page-game-guides-text-main);
  cursor: pointer;
  background-color: var(--page-game-guides-bg-card);
  border-bottom: 1px solid var(--page-game-guides-divider);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom: 1px solid var(--page-game-guides-divider);
}

.page-game-guides__faq-question:hover {
  background-color: var(--page-game-guides-deep-green);
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-game-guides-glow);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--page-game-guides-text-secondary);
  background-color: var(--page-game-guides-bg-primary);
}

/* Hide default details marker */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Conclusion Section */
.page-game-guides__conclusion-section .page-game-guides__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
  }

  .page-game-guides__guide-card p {
    font-size: 0.9em;
  }
}

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

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

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

  .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: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__intro-section,
  .page-game-guides__game-types-section,
  .page-game-guides__advanced-tips-section,
  .page-game-guides__optimize-experience-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 40px 0;
  }

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

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

  .page-game-guides__grid {
    grid-template-columns: 1fr;
  }

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

  .page-game-guides__game-category {
    padding: 25px;
  }

  .page-game-guides__category-title {
    font-size: 1.5em;
  }

  .page-game-guides__tips-list li,
  .page-game-guides__benefits-list li {
    padding: 20px;
  }

  .page-game-guides__tips-list li h3,
  .page-game-guides__benefits-list li h3 {
    font-size: 1.4em;
  }

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

  .page-game-guides__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all images are responsive and do not overflow */
  .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__guide-card,
  .page-game-guides__game-category,
  .page-game-guides__tips-list li,
  .page-game-guides__benefits-list li,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-game-guides__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__intro-section .page-game-guides__container,
  .page-game-guides__game-types-section .page-game-guides__container,
  .page-game-guides__advanced-tips-section .page-game-guides__container,
  .page-game-guides__optimize-experience-section .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container,
  .page-game-guides__conclusion-section .page-game-guides__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__section-title {
    font-size: 1.4em;
  }

  .page-game-guides__game-category {
    padding: 20px;
  }
}