/* style/slot-games.css */

/* Custom Colors */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-background: #08160F;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border: #2E7A4E;
  --page-slot-games-glow: #57E38D;
  --page-slot-games-gold: #F2C14E;
  --page-slot-games-divider: #1E3A2A;
  --page-slot-games-deep-green: #0A4B2C;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--page-slot-games-text-main); /* Default text color for dark background */
  background-color: var(--page-slot-games-background); /* Body background from shared */
}

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

/* Sections */
.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--page-slot-games-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  /* No fixed font-size, rely on viewport scaling and responsiveness */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-slot-games__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__introduction-section,
.page-slot-games__benefits-section,
.page-slot-games__faq-section,
.page-slot-games__more-info-section {
  background-color: var(--page-slot-games-background);
  padding: 60px 0;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__games-showcase,
.page-slot-games__how-to-play-section,
.page-slot-games__cta-final-section {
  background-color: var(--page-slot-games-deep-green);
  padding: 60px 0;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-slot-games-gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-slot-games__paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-slot-games-text-secondary);
  text-align: justify;
}

.page-slot-games__paragraph a {
  color: var(--page-slot-games-gold);
  text-decoration: underline;
}

/* Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: var(--page-slot-games-text-main);
  border: none;
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--page-slot-games-gold);
  border: 2px solid var(--page-slot-games-gold);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-gold);
  color: var(--page-slot-games-background);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Cards */
.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--page-slot-games-text-main);
}

/* Games Showcase */
.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px solid var(--page-slot-games-gold);
}

.page-slot-games__game-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-slot-games-gold);
}

.page-slot-games__game-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--page-slot-games-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-slot-games__game-card .page-slot-games__btn-primary {
  margin-top: auto; /* Push button to bottom */
  width: 100%;
  max-width: 200px;
}

.page-slot-games__all-games-cta {
  text-align: center;
  margin-top: 50px;
}

/* Benefits Section */
.page-slot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__benefit-item {
  text-align: center;
}

.page-slot-games__benefit-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-slot-games-gold);
}

/* How To Play Section */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__list-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  counter-increment: step-counter;
  padding-top: 60px;
}

.page-slot-games__list-item::before {
  content: "0" counter(step-counter);
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--page-slot-games-gold);
  opacity: 0.6;
}

.page-slot-games__list-item:nth-child(n+10)::before {
  content: counter(step-counter);
}

.page-slot-games__list-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-slot-games-gold);
}

.page-slot-games__guide-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-slot-games-gold);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-question::marker {
  display: none;
}

.page-slot-games__faq-toggle {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1;
  color: var(--page-slot-games-text-secondary);
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-slot-games-text-secondary);
}

/* CTA Final Section */
.page-slot-games__cta-final-section .page-slot-games__section-title,
.page-slot-games__cta-final-section .page-slot-games__paragraph {
  color: var(--page-slot-games-text-main);
  text-shadow: none;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
  color: var(--page-slot-games-gold);
}

/* General Images */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-slot-games__section-title {
    font-size: 2rem;
  }

  .page-slot-games__paragraph {
    font-size: 1rem;
  }

  .page-slot-games__games-grid,
  .page-slot-games__benefits-grid,
  .page-slot-games__step-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-slot-games__hero-content {
    padding: 30px 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-slot-games__hero-content {
    padding: 20px 15px !important;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

  .page-slot-games__hero-description {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  /* 产品展示图区域 */
  .page-slot-games__games-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
    padding: 0 15px;
  }

  .page-slot-games__games-showcase .page-slot-games__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-slot-games__game-card {
    padding: 15px !important;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-slot-games__game-image {
    height: 180px !important; /* Adjust height for mobile */
  }

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

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games 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-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__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;
    flex-direction: column !important; /* Stack buttons vertically */
  }

  /* 其他内容模块 */
  .page-slot-games__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }

  .page-slot-games__paragraph,
  .page-slot-games__game-description,
  .page-slot-games__list-item p,
  .page-slot-games__faq-answer p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .page-slot-games__introduction-section,
  .page-slot-games__benefits-section,
  .page-slot-games__faq-section,
  .page-slot-games__more-info-section,
  .page-slot-games__games-showcase,
  .page-slot-games__how-to-play-section,
  .page-slot-games__cta-final-section {
    padding: 40px 0 !important;
  }

  .page-slot-games__benefits-grid,
  .page-slot-games__step-list,
  .page-slot-games__faq-list {
    gap: 15px !important;
  }

  .page-slot-games__list-item {
    padding-top: 50px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .page-slot-games__list-item::before {
    font-size: 2rem !important;
    top: 15px !important;
    left: 20px !important;
  }

  .page-slot-games__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1rem !important;
  }

  .page-slot-games__faq-answer {
    padding: 0 20px 15px !important;
  }
}