/* style/slot-games.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

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

.page-slot-games {
  color: var(--color-text-main); /* Đảm bảo chữ sáng trên nền tối của body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-slot-games__section-spacing {
  padding: 60px 0;
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.page-slot-games__section-title--light {
  color: var(--color-gold);
}

.page-slot-games__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
}

.page-slot-games__description--light {
  color: var(--color-text-secondary);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-slot-games__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-width: 180px;
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: var(--color-text-main);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-slot-games__btn-secondary {
  background: var(--color-background-card);
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--color-gold);
  color: var(--color-background-body);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* Intro Section */
.page-slot-games__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  color: var(--color-text-secondary);
  text-align: justify;
}

.page-slot-games__image-content {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

/* Why Choose Section */
.page-slot-games__dark-section {
  background: var(--color-background-card);
  padding: 60px 0;
}

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

.page-slot-games__feature-card {
  background: var(--color-deep-green);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size, but icon should be larger */
  min-height: 200px;
}

.page-slot-games__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-slot-games__card-text {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* Popular Games Section */
.page-slot-games__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  background: var(--color-background-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

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

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

.page-slot-games__game-card .page-slot-games__card-title {
  font-size: 20px;
  margin: 0 15px 10px;
  text-align: left;
  color: var(--color-gold);
}

.page-slot-games__game-card .page-slot-games__card-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 15px 20px;
  flex-grow: 1;
  text-align: left;
}

.page-slot-games__btn-play {
  background: var(--button-gradient);
  color: var(--color-text-main);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 15px 15px;
  text-align: center;
  width: calc(100% - 30px);
}

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

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

.page-slot-games__promo-item {
  background: var(--color-deep-green);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  text-align: center;
}

.page-slot-games__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-slot-games__promo-text {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 25px;
}

.page-slot-games__btn-promo {
  background: var(--color-gold);
  color: var(--color-background-body);
  border: none;
}

.page-slot-games__btn-promo:hover {
  background: var(--color-glow);
  color: var(--color-background-body);
}

/* How to Play Section */
.page-slot-games__steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 600px;
}

.page-slot-games__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-slot-games__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--button-gradient);
  color: var(--color-text-main);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(34, 199, 104, 0.4);
}

.page-slot-games__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__step-text {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* Tips Section */
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__tip-item {
  background: var(--color-deep-green);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

.page-slot-games__tip-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.page-slot-games__tip-text {
  font-size: 16px;
  color: var(--color-text-secondary);
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gold);
  cursor: pointer;
  background: var(--color-deep-green);
  border-bottom: 1px solid var(--color-border);
  user-select: none;
  list-style: none; /* Remove default marker */
}

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-glow);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 15px;
  padding-bottom: 20px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom-color: transparent;
}

/* CTA Section */
.page-slot-games__cta-content {
  text-align: center;
  padding: 40px 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 500px;
  }
  .page-slot-games__feature-grid, .page-slot-games__game-list, .page-slot-games__promo-list, .page-slot-games__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-slot-games__section-spacing {
    padding: 40px 0;
  }

  .page-slot-games__container,
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__cta-buttons,
  .page-slot-games__feature-grid,
  .page-slot-games__game-list,
  .page-slot-games__promo-list,
  .page-slot-games__tips-list,
  .page-slot-games__faq-list,
  .page-slot-games__steps-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-slot-games__hero-image,
  .page-slot-games__image-content,
  .page-slot-games__feature-icon,
  .page-slot-games__game-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important;
  }

  .page-slot-games__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .page-slot-games__btn-promo,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    min-width: unset !important;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__section-title {
    font-size: 26px;
  }

  .page-slot-games__card-title,
  .page-slot-games__promo-title,
  .page-slot-games__step-title,
  .page-slot-games__tip-title {
    font-size: 20px;
  }

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

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

  .page-slot-games__steps-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 28px;
  }

  .page-slot-games__section-title {
    font-size: 24px;
  }

  .page-slot-games__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-slot-games__step-number {
    margin-bottom: 10px;
  }
}