/* style/game-guides.css */

:root {
  --z8bet-primary-color: #C91F17;
  --z8bet-secondary-color: #E53935;
  --z8bet-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --z8bet-card-bg: #D32F2F;
  --z8bet-background-color: #B71C1C;
  --z8bet-text-main: #FFF5E1;
  --z8bet-border-color: #F2B544;
  --z8bet-glow-color: #FFCC66;
  --z8bet-gold-color: #F4D34D;
  --z8bet-deep-red-color: #7A0E0E;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default for light background */
  background-color: var(--background, #f5f5f5); /* Inherit from shared or fallback */
}

.page-game-guides__dark-bg {
  background-color: var(--z8bet-background-color);
  color: var(--z8bet-text-main);
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__background-color {
  background-color: var(--z8bet-background-color);
}

.page-game-guides__text-main {
  color: var(--z8bet-text-main);
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-game-guides__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

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

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--z8bet-text-main);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--z8bet-text-main);
}

.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: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: var(--z8bet-button-gradient);
  color: #333333; /* Dark text for gold button */
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-game-guides__btn-secondary {
  background-color: var(--z8bet-primary-color);
  color: var(--z8bet-text-main);
  border: 2px solid var(--z8bet-border-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  background-color: var(--z8bet-deep-red-color);
}

/* General Sections */
.page-game-guides__intro-section,
.page-game-guides__advanced-strategy-section,
.page-game-guides__faq-section,
.page-game-guides__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--z8bet-primary-color);
}

.page-game-guides__intro-section .page-game-guides__section-title,
.page-game-guides__advanced-strategy-section .page-game-guides__section-title,
.page-game-guides__faq-section .page-game-guides__section-title {
  color: var(--z8bet-primary-color);
}

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

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Categories Section */
.page-game-guides__categories-section {
  padding: 60px 0;
}

.page-game-guides__categories-section .page-game-guides__section-title {
  color: var(--z8bet-text-main);
}

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

.page-game-guides__card {
  background-color: var(--z8bet-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--z8bet-text-main);
  border: 1px solid var(--z8bet-border-color);
}

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

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--z8bet-text-main);
}

.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: 1rem;
  margin: 0 20px 20px;
  flex-grow: 1;
  color: var(--z8bet-text-main);
}

.page-game-guides__card .page-game-guides__btn-secondary {
  margin: 0 20px 20px;
  align-self: flex-start;
  width: auto; /* Override max-width for card buttons */
}

/* Tips Section */
.page-game-guides__tips-section {
  padding: 60px 0;
}

.page-game-guides__tip-item {
  padding: 30px;
  background-color: var(--z8bet-card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--z8bet-text-main);
  border: 1px solid var(--z8bet-border-color);
}

.page-game-guides__tip-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--z8bet-text-main);
}

.page-game-guides__tip-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--z8bet-text-main);
}

/* FAQ Section */
.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-game-guides__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--z8bet-primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
}

.page-game-guides__faq-item[open] > .page-game-guides__faq-question {
  border-bottom: 1px solid var(--z8bet-border-color);
  background-color: #f0f0f0;
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  margin-left: 10px;
  color: var(--z8bet-primary-color);
}

.page-game-guides__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

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

.page-game-guides__faq-answer .page-game-guides__btn-secondary {
  margin-top: 10px;
}

/* CTA Bottom Section */
.page-game-guides__cta-bottom-section {
  padding: 80px 0;
}

.page-game-guides__cta-bottom-section .page-game-guides__section-title {
  font-size: 2.8rem;
  color: var(--z8bet-text-main);
}

.page-game-guides__cta-bottom-section .page-game-guides__text-block {
  color: var(--z8bet-text-main);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* General image styling */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-image-wrapper {
    max-height: 500px;
  }

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

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

  .page-game-guides__section-title {
    font-size: 2rem;
  }

  .page-game-guides__cta-bottom-section .page-game-guides__section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-guides__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 300px;
  }

  .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;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    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;
    gap: 10px;
  }

  /* 产品展示图区域 (Categories Section) */
  .page-game-guides__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-game-guides__card {
    width: 100%;
  }

  .page-game-guides__card .page-game-guides__btn-secondary {
    width: calc(100% - 40px); /* Adjust for card padding */
    margin-left: 20px;
    margin-right: 20px;
  }

  /* 通用图片与容器 */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__content-image {
    max-width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Other content modules (FAQ, Tips) */
  .page-game-guides__intro-section,
  .page-game-guides__advanced-strategy-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom-section {
    padding: 40px 0;
  }

  .page-game-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-game-guides__text-block {
    font-size: 1rem;
    text-align: center;
  }

  .page-game-guides__tip-title {
    font-size: 1.5rem;
  }

  .page-game-guides__tip-description {
    font-size: 0.95rem;
  }

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

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

  .page-game-guides__cta-bottom-section .page-game-guides__section-title {
    font-size: 2rem;
  }

  .page-game-guides__cta-bottom-section .page-game-guides__text-block {
    font-size: 1rem;
  }
}