/* style/slot-games.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --login-button-color: #EA7C07;
}

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  background: var(--background-dark);
  color: var(--text-light);
  padding: var(--header-offset, 120px) 0 80px 0; /* Fallback for header offset */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--login-button-color); /* Sử dụng màu cam cho nút chính */
  color: var(--text-light);
  border: 2px solid var(--login-button-color);
}

.page-slot-games__btn-primary:hover {
  background: darken(var(--login-button-color), 10%); /* Placeholder for darken, will be a slightly darker orange */
  border-color: darken(var(--login-button-color), 10%);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

/* General Section Styling */
.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 60px;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-slot-games__dark-section {
  background: var(--background-dark);
  color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__section-description {
  color: var(--text-light);
}

.page-slot-games__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

.page-slot-games__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-slot-games__dark-section .page-slot-games__text-link {
  color: var(--secondary-color);
}

/* Introduction Section */
.page-slot-games__introduction-section {
  padding: 80px 0;
}

.page-slot-games__introduction-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-slot-games__introduction-content img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
}

.page-slot-games__text-block {
  flex: 1;
  font-size: 1.1em;
}

/* Games Showcase */
.page-slot-games__games-showcase {
  padding: 80px 0;
}

.page-slot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-slot-games__game-title {
  font-size: 1.5em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-slot-games__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-slot-games__game-title a:hover {
  text-decoration: underline;
}

.page-slot-games__game-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__btn-play {
  background: var(--login-button-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-play:hover {
  background: darken(var(--login-button-color), 10%); /* Placeholder for darken */
}

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

/* Benefits Section */
.page-slot-games__benefits-section {
  padding: 80px 0;
}

.page-slot-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__benefit-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: var(--background-light);
  color: var(--text-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-slot-games__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size, but smaller for icons */
  min-height: 200px;
}

.page-slot-games__benefit-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games__benefit-card p {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
}

.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slot-games__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--text-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--login-button-color);
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-slot-games__step-title {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-slot-games__step-card p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__cta-buttons--centered {
  margin-top: 50px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-item {
  border-bottom: 1px solid #eee;
}

.page-slot-games__faq-item:last-child {
  border-bottom: none;
}

.page-slot-games__faq-question {
  background: var(--background-light);
  color: var(--primary-color);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background: #f9f9f9;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  background: #fcfcfc;
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 30px;
}

.page-slot-games__faq-answer p {
  margin: 0;
}

/* Image and general content responsiveness */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }

  .page-slot-games__hero-description {
    font-size: 1.1em;
  }

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

  .page-slot-games__introduction-content {
    flex-direction: column;
  }

  .page-slot-games__introduction-content img {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

  /* HERO 主图区域 */
  .page-slot-games__hero-section {
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    min-height: 350px;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* 按钮与按钮容器 */
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 其他内容模块 - Section padding */
  .page-slot-games__introduction-section,
  .page-slot-games__games-showcase,
  .page-slot-games__benefits-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__faq-section {
    padding: 40px 0;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-top: 0;
  }

  .page-slot-games__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 */
  .page-slot-games__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .page-slot-games__game-card {
    padding: 15px;
  }

  .page-slot-games__game-thumbnail {
    height: 180px;
  }

  .page-slot-games__game-title {
    font-size: 1.3em;
  }

  .page-slot-games__introduction-content img {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .page-slot-games__benefits-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-slot-games__benefit-icon {
    width: 60px; /* Adjusted icon size for mobile */
    height: 60px;
    min-width: 200px !important; /* Enforce min size for content images */
    min-height: 200px !important;
  }

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

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

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 10px 20px;
  }

  /* 通用图片与容器 */
  .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;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-slot-games__introduction-content .page-slot-games__text-block {
    padding: 0 15px;
  }

  .page-slot-games__benefit-card {
    padding: 20px;
  }

  .page-slot-games__step-card {
    padding: 20px;
  }
}