/* style/slot-games.css */

/* Biến màu sắc */
:root {
  --page-slot-games-primary-color: #26A9E0;
  --page-slot-games-secondary-color: #FFFFFF;
  --page-slot-games-dark-text: #333333;
  --page-slot-games-light-text: #ffffff;
  --page-slot-games-login-color: #EA7C07;
  --page-slot-games-background-color: #FFFFFF;
  --page-slot-games-black-color: #000000;
}

/* Base styles for the page content */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-light-text); /* Default text color for dark body bg */
  background-color: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-slot-games__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit; /* Inherit from section for contrast */
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--page-slot-games-primary-color);
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

.page-slot-games__hero-content-wrapper {
  position: relative;
  z-index: 2;
  color: var(--page-slot-games-light-text);
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

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

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

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

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

.page-slot-games__btn-primary:hover {
  background-color: darken(var(--page-slot-games-primary-color), 10%); /* Placeholder for darken */
  border-color: darken(var(--page-slot-games-primary-color), 10%); /* Placeholder for darken */
}

.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-light-text);
}

.page-slot-games__button-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Link text */
.page-slot-games__link-text {
  color: var(--page-slot-games-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__link-text:hover {
  text-decoration: underline;
}

/* Section specific colors */
.page-slot-games__dark-section {
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-light-text);
}

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

/* Card styles */
.page-slot-games__card {
  background-color: var(--page-slot-games-secondary-color);
  color: var(--page-slot-games-dark-text);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-slot-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-slot-games__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__card-description {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-slot-games__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.page-slot-games__card-list li {
  margin-bottom: 5px;
  font-size: 0.95em;
  color: var(--page-slot-games-dark-text);
}

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

/* Why Choose Section */
.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 .page-slot-games__card-image {
  height: 200px;
}

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

.page-slot-games__step-item .page-slot-games__card-image {
  height: 180px;
}

/* Tips Section */
.page-slot-games__tips-list {
  list-style-type: disc;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  padding-left: 20px;
  color: var(--page-slot-games-dark-text);
}

.page-slot-games__tips-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.5;
}

.page-slot-games__tips-list strong {
  color: var(--page-slot-games-primary-color);
}

/* Video Section */
.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--page-slot-games-black-color);
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__video-wrapper .page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-slot-games__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
  display: block;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-slot-games__faq-question h3 {
  margin: 0;
  color: inherit;
}

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

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

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

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
  background-color: var(--page-slot-games-primary-color);
  color: var(--page-slot-games-light-text);
}

.page-slot-games__conclusion-section .page-slot-games__text-block {
  font-size: 1.2em;
}

/* Responsive adjustments */
@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: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 500px;
  }
  .page-slot-games__hero-title {
    font-size: 2.5em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-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;
    box-sizing: border-box !important;
  }
  .page-slot-games__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games__section {
    padding: 40px 15px;
  }
  .page-slot-games__container {
    padding: 0 10px;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__text-block,
  .page-slot-games__tips-list li,
  .page-slot-games__faq-question {
    font-size: 1em;
  }
  .page-slot-games__card-image {
    height: 180px;
  }
  .page-slot-games__card-title {
    font-size: 1.5em;
  }
  .page-slot-games__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
  }
  .page-slot-games__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-slot-games__video-wrapper .page-slot-games__video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 2em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 10px 20px 20px;
  }
}