/* style/slot-games.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* General Page Styling - body background is handled by shared.css, which is dark. Text should be light. */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Light text for dark background */
  background-color: var(--color-background);
  line-height: 1.6;
}

.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;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  text-align: justify;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-background);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  position: relative;
  height: 500px; /* Fixed height for visual consistency on desktop */
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -150px; /* Overlap with image slightly for visual appeal, but text is below image */
  background-color: rgba(8, 22, 15, 0.8); /* Dark background with opacity for readability */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-slot-games__description {
  font-size: 1.2em;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--color-button-gradient-start);
  color: var(--color-text-main);
  transform: translateY(-3px);
}

/* Section Styling */
.page-slot-games__intro-section,
.page-slot-games__game-types-section,
.page-slot-games__benefits-section,
.page-slot-games__how-to-play-section,
.page-slot-games__tips-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
  padding: 80px 0;
}

.page-slot-games__dark-section {
  background-color: var(--color-card-bg);
}

.page-slot-games__image-container {
  margin: 40px auto;
  text-align: center;
}

.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
  min-width: 200px;
  min-height: 200px;
}

/* Game Types List */
.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__list-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.page-slot-games__list-item:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__list-description {
  font-size: 1em;
  color: var(--color-text-secondary);
}

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

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

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

.page-slot-games__benefit-description {
  color: var(--color-text-secondary);
}

/* How To Play Steps */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-slot-games__step-item {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  position: relative;
  text-align: center;
}

.page-slot-games__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-text-main);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-slot-games__step-description {
  color: var(--color-text-secondary);
}

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

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

.page-slot-games__faq-item {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--color-card-bg);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--color-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-slot-games__faq-item summary {
  list-style: none; /* Hide default marker for Firefox */
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-slot-games__faq-question:hover {
  background-color: var(--color-deep-green);
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--color-text-main);
}

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

.page-slot-games__faq-answer {
  padding: 20px;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-secondary);
  font-size: 1em;
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  text-align: center;
  background-color: var(--color-card-bg);
  padding: 60px 0;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
  color: var(--color-gold);
}

.page-slot-games__cta-final-section .page-slot-games__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    height: 400px;
  }

  .page-slot-games__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

  .page-slot-games__list,
  .page-slot-games__benefits-list,
  .page-slot-games__steps-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Images Responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__image-container,
  .page-slot-games__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons Responsive */
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .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: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important;
    min-height: auto;
  }

  .page-slot-games__hero-image-wrapper {
    height: 300px;
  }

  .page-slot-games__hero-content {
    margin-top: -80px;
    padding: 20px 10px;
  }

  .page-slot-games__main-title {
    font-size: 1.8em;
  }

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

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

  .page-slot-games__intro-section,
  .page-slot-games__game-types-section,
  .page-slot-games__benefits-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__tips-section,
  .page-slot-games__responsible-gaming-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding: 40px 0;
  }

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

  .page-slot-games__list,
  .page-slot-games__benefits-list,
  .page-slot-games__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-slot-games__text-block {
    font-size: 0.95em;
  }
}

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

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

  .page-slot-games__hero-content {
    margin-top: -60px;
  }
}

/* Color Contrast Fixes for specific elements if needed */
.page-slot-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}