/* style/slot-games.css */

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

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-light); /* Default for dark body background */
  background-color: #000; /* Inherited from shared.css, explicitly set for consistency */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-slot-games-text-light);
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  color: var(--page-slot-games-text-light);
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

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

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: var(--page-slot-games-secondary-color);
  margin-bottom: 40px;
}

.page-slot-games__hero-buttons,
.page-slot-games__cta-buttons,
.page-slot-games__center-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.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.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

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

.page-slot-games__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

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

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

/* Login button color override */
a[href="login.html"].page-slot-games__btn-primary,
a[href="https://ads.win2026vn.com/redirect?plink_id=pl_1772764845703_pqu5xuc0q"].page-slot-games__btn-primary {
  background-color: var(--page-slot-games-login-color);
  border-color: var(--page-slot-games-login-color);
  color: var(--page-slot-games-secondary-color);
}

a[href="login.html"].page-slot-games__btn-primary:hover,
a[href="https://ads.win2026vn.com/redirect?plink_id=pl_1772764845703_pqu5xuc0q"].page-slot-games__btn-primary:hover {
  background-color: #c46806;
  border-color: #c46806;
}

/* Sections */
.page-slot-games__intro-section,
.page-slot-games__popular-games,
.page-slot-games__tips-strategies,
.page-slot-games__faq-section {
  padding: 80px 0;
  color: var(--page-slot-games-text-dark); /* For light background */
}

.page-slot-games__why-vn88,
.page-slot-games__how-to-play,
.page-slot-games__promotions,
.page-slot-games__cta-final {
  padding: 80px 0;
  color: var(--page-slot-games-text-light); /* For dark background */
}

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

.page-slot-games__dark-bg {
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-text-light);
}

.page-slot-games__dark-bg .page-slot-games__section-title {
  color: var(--page-slot-games-secondary-color);
}

.page-slot-games__dark-bg .page-slot-games__section-description {
  color: var(--page-slot-games-secondary-color);
}

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

.page-slot-games__content-wrapper .page-slot-games__text-block,
.page-slot-games__content-wrapper .page-slot-games__image-wrapper {
  flex: 1;
}

.page-slot-games__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  display: block; /* Ensures no extra space below image */
}

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

.page-slot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-slot-games-secondary-color);
}

.page-slot-games__feature-item p {
  font-size: 1em;
  color: var(--page-slot-games-secondary-color);
}

/* Popular Games */
.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-slot-games__game-card {
  background-color: var(--page-slot-games-secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-slot-games__game-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
  display: block;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__game-description {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* How to Play */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
}

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__step-item p {
  color: var(--page-slot-games-secondary-color);
}

/* Tips and Strategies */
.page-slot-games__tips-strategies .page-slot-games__content-wrapper {
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-slot-games__tip-list {
  list-style: none;
  padding: 0;
}

.page-slot-games__tip-item {
  margin-bottom: 20px;
  padding-left: 30px;
  position: relative;
}

.page-slot-games__tip-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--page-slot-games-primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-slot-games__tip-title {
  font-size: 1.3em;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 5px;
}

.page-slot-games__tip-item p {
  color: var(--page-slot-games-text-dark);
}

/* Promotions */
.page-slot-games__promo-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-slot-games__promo-image {
  flex: 1;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  display: block;
}

.page-slot-games__promo-details {
  flex: 1;
}

.page-slot-games__promo-subtitle {
  font-size: 1.5em;
  color: var(--page-slot-games-secondary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-slot-games__promo-details p {
  color: var(--page-slot-games-secondary-color);
  margin-bottom: 15px;
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__faq-item[open] > .page-slot-games__faq-question {
  background-color: #eef;
  border-bottom: 1px solid var(--page-slot-games-primary-color);
}

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

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-slot-games-primary-color);
}

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

.page-slot-games__faq-answer {
  padding: 20px 25px;
  border-top: none;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__faq-answer p {
  margin: 0;
  color: var(--page-slot-games-text-dark);
}

/* Final CTA */
.page-slot-games__cta-final {
  padding: 100px 0;
  text-align: center;
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-secondary-color);
}

.page-slot-games__cta-final .page-slot-games__section-title {
  font-size: 3em;
}

.page-slot-games__cta-final .page-slot-games__section-description {
  font-size: 1.2em;
  margin-bottom: 50px;
}

/* Responsive Design */
@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__feature-item {
    padding: 25px;
  }

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

  .page-slot-games__content-wrapper .page-slot-games__image-wrapper {
    order: -1; /* Image appears first on smaller screens */
    margin-bottom: 30px;
  }

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

  .page-slot-games__promo-image {
    margin-bottom: 30px;
  }

  .page-slot-games__cta-final .page-slot-games__section-title {
    font-size: 2.5em;
  }
}

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

  .page-slot-games__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-slot-games__intro-section,
  .page-slot-games__why-vn88,
  .page-slot-games__popular-games,
  .page-slot-games__how-to-play,
  .page-slot-games__tips-strategies,
  .page-slot-games__promotions,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final {
    padding: 50px 0;
  }

  .page-slot-games__game-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__image,
  .page-slot-games__game-image,
  .page-slot-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }

  /* Ensure all image containers are responsive */
  .page-slot-games__image-wrapper,
  .page-slot-games__game-card,
  .page-slot-games__promo-content,
  .page-slot-games__content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-slot-games__cta-final .page-slot-games__section-description {
    font-size: 1em;
  }
}