/* style/game-guides.css */

/* Body background is dark from shared.css: var(--background-color): #08160F */
/* Main text color should be light: #F2FFF6 */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--background-color, #08160F);
}

.page-game-guides__section {
  padding: 60px 20px;
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-game-guides__section.page-game-guides__dark-section {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, main offset handled by body padding-top */
  padding-bottom: 60px;
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
  overflow: hidden; /* Ensure no image overflow */
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly over image, but not overlapping text on image */
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0) 0%, var(--background-color, #08160F) 50%);
  padding-top: 100px;
}

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-game-guides__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-game-guides__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-game-guides__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__text-block a {
  color: var(--glow-color, #57E38D);
  text-decoration: none;
  font-weight: 600;
}

.page-game-guides__text-block a:hover {
  text-decoration: underline;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Light text for dark button */
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--glow-color, #57E38D); /* Brand color text */
  border: 2px solid var(--glow-color, #57E38D);
}

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

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

.page-game-guides__game-type-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-guides__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--divider-color, #1E3A2A);
  min-height: 200px; /* Minimum size requirement */
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-game-guides__card-title a {
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
}

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

.page-game-guides__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary-color, #A7D9B8);
  flex-grow: 1;
}

.page-game-guides__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-game-guides__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Darker hover for dark background */
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  margin-left: 15px;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-game-guides__conclusion {
  text-align: center;
}

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

  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }

  .page-game-guides__sub-title {
    font-size: clamp(1.2rem, 2.8vw, 2rem);
  }
}

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

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

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-guides__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-game-guides__text-block,
  .page-game-guides__card-description,
  .page-game-guides__faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 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__game-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-image {
    min-height: 180px; /* Adjust minimum height for mobile */
  }

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

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-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; /* body has padding-top, this is decorative */
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    margin-top: -20px;
    padding-top: 40px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-game-guides__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
}