/* style/slot-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #008000; /* Green */
  --dark-bg-1: #0d0d0d; /* From shared.css */
  --dark-bg-2: #1a1a1a;
  --text-light: #ffffff;
  --text-dark: #333333;
  --accent-color: #FF4500; /* OrangeRed for strong CTA */
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from body */
  line-height: 1.6;
}

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

.page-slot-games__section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.page-slot-games__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:sun 52, nổ hũ, cá cược trực tuyến, jackpot, sòng bạc, điện thoại]') no-repeat center center/cover;
  padding-top: 120px; /* Adjust for fixed header */
  padding-bottom: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-slot-games__hero-container {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light);
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-slot-games__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  opacity: 0.8;
}

/* Advantages Section */
.page-slot-games__advantages-section {
  background-color: var(--dark-bg-2);
}

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

.page-slot-games__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__card-icon {
  width: 150px; /* Minimum 200px requirement, but this is an 'icon' style. Let's make it 200px. */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--primary-color));
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  flex-grow: 0;
}

.page-slot-games__card-text {
  font-size: 1em;
  opacity: 0.8;
  flex-grow: 1;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
  background-color: var(--dark-bg-1);
}

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

.page-slot-games__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

.page-slot-games__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-slot-games__game-title {
  font-size: 1.4em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-slot-games__game-text {
  font-size: 0.95em;
  padding: 0 20px 20px;
  opacity: 0.8;
  flex-grow: 1;
}

.page-slot-games__game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  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__game-button:hover {
  background: #006600;
}

.page-slot-games__full-game-cta {
  text-align: center;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  background-color: var(--dark-bg-2);
}

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

.page-slot-games__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-slot-games__step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__step-text {
  font-size: 1em;
  opacity: 0.8;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-slot-games__step-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  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__step-button:hover {
  background: #006600;
}

/* Tips Section */
.page-slot-games__tips-section {
  background-color: var(--dark-bg-1);
}

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

.page-slot-games__tip-card {
  text-align: left;
}

.page-slot-games__tip-card .page-slot-games__card-title {
  text-align: left;
}

.page-slot-games__tip-card .page-slot-games__card-text {
  text-align: left;
}

/* Promotion Section */
.page-slot-games__promotion-section {
  background-color: var(--dark-bg-2);
}

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

.page-slot-games__promotion-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promotion-image {
  width: 250px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-slot-games__promotion-text {
  font-size: 1em;
  opacity: 0.8;
  flex-grow: 1;
}

.page-slot-games__promotion-cta {
  text-align: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsible Gaming Section */
.page-slot-games__responsible-gaming-section {
  background-color: var(--dark-bg-1);
}

.page-slot-games__responsible-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 800px;
}

.page-slot-games__responsible-list li {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__responsible-list li strong {
  color: var(--primary-color);
  font-size: 1.1em;
}

.page-slot-games__responsible-list li p {
  margin: 0;
  padding-top: 5px;
  opacity: 0.9;
  color: var(--text-light);
}

.page-slot-games__responsible-closing {
  text-align: center;
  font-size: 1.1em;
  font-style: italic;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Final CTA Section */
.page-slot-games__final-cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('[GALLERY:final_cta_bg:sun 52, nổ hũ, đăng ký, nhận thưởng, sòng bạc trực tuyến]') no-repeat center center/cover;
  text-align: center;
  padding: 100px 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Mobile adjust for fixed header */
    padding-bottom: 60px;
    min-height: auto;
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-slot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-slot-games__grid, .page-slot-games__game-grid, .page-slot-games__steps-grid, .page-slot-games__tips-grid, .page-slot-games__promotion-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card-icon {
    width: 120px;
    height: 120px;
  }
  .page-slot-games__card-title {
    font-size: 1.3em;
  }
  .page-slot-games__game-image {
    height: 200px;
  }
  .page-slot-games__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-slot-games__promotion-image {
    width: 200px;
    height: 150px;
  }
  .page-slot-games__promotion-cta, .page-slot-games__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games img, .page-slot-games__card-icon, .page-slot-games__game-image, .page-slot-games__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .page-slot-games__responsible-list li {
    padding: 15px;
  }
  .page-slot-games__responsible-list li strong {
    font-size: 1em;
  }
  .page-slot-games__responsible-list li p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__cta-button {
    font-size: 0.95em;
    padding: 10px 15px;
  }
  .page-slot-games__card-title, .page-slot-games__game-title, .page-slot-games__step-title, .page-slot-games__promotion-title {
    font-size: 1.2em;
  }
}