/* style/slot-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Deep Sky Blue */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #121212;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.2);
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css, confirmed dark */
}

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

/* 🚨 Desktop Video Section Styles (Must strictly comply) */
.page-slot-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust based on actual navigation bar height */
  background: linear-gradient(135deg, var(--background-dark) 0%, #000000 100%);
  box-shadow: inset 0 -50px 100px rgba(0,0,0,0.5);
}

.page-slot-games__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 🚨 Video Click Link Styles (Must strictly comply) */
.page-slot-games__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__video-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio - 🚨 PageSpeed optimization: Fixed aspect ratio to avoid CLS */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: #000;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

/* 🚨 Video Click Hint Overlay Styles (Optional, enhances user experience) */
.page-slot-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
  opacity: 1;
}

.page-slot-games__video-click-hint {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 30px;
  white-space: nowrap;
  border: 2px solid var(--primary-color);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* 🚨 Play Now Button Styles (Must strictly comply, centered below video) */
.page-slot-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-slot-games__play-now-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: #000000; /* Ensure high contrast with gold */
  text-decoration: none;
  border-radius: 30px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.page-slot-games__play-now-button:hover {
  background: #FFC400; /* Slightly darker gold on hover */
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.page-slot-games__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-slot-games__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: radial-gradient(circle at top center, #1a1a1a 0%, var(--background-dark) 100%);
  padding-top: 120px; /* Adjust for fixed header */
}

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

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: var(--text-color-dark-bg);
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-slot-games__cta-button--primary {
  background: var(--primary-color);
  color: #000000; /* Ensure high contrast */
  border: 2px solid var(--primary-color);
}

.page-slot-games__cta-button--primary:hover {
  background: #FFC400;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

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

.page-slot-games__cta-button--secondary:hover {
  background: #1A7DD8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

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

.page-slot-games__section-description {
  font-size: 1.1em;
  color: var(--text-color-dark-bg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.page-slot-games__about-nổhũ-section, 
.page-slot-games__top-games-section, 
.page-slot-games__how-to-play-section, 
.page-slot-games__promotions-section, 
.page-slot-games__faq-section, 
.page-slot-games__why-choose-section {
  padding: 80px 20px;
  background-color: var(--background-dark);
}

.page-slot-games__about-nổhũ-section {
  background: linear-gradient(180deg, var(--background-dark) 0%, #0d0d0d 100%);
}

.page-slot-games__content-block p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

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

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

.page-slot-games__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); /* Gold glow for icons */
}

.page-slot-games__feature-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games__feature-item p {
  font-size: 0.95em;
  color: var(--text-color-dark-bg);
  line-height: 1.6;
}

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

.page-slot-games__game-card {
  background: var(--card-background-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
}

.page-slot-games__game-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color-dark);
}

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

.page-slot-games__game-provider {
  font-size: 0.9em;
  color: #bbb;
  padding: 0 20px 10px;
  margin: 0;
}

.page-slot-games__game-play-button {
  display: block;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-align: center;
  padding: 12px 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-card:hover .page-slot-games__game-play-button {
  background: #1A7DD8;
}

.page-slot-games__view-all-cta {
  text-align: center;
  margin-top: 60px;
}

.page-slot-games__how-to-play-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-slot-games__how-to-play-list li {
  background: var(--card-background-dark);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color-dark);
}

.page-slot-games__how-to-play-list li h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-slot-games__how-to-play-list li p {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-color-dark-bg);
}

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

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

.page-slot-games__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.page-slot-games__promo-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color-dark);
}

.page-slot-games__promo-title {
  font-size: 1.5em;
  color: var(--primary-color);
  padding: 15px 20px 5px;
  margin: 0;
}

.page-slot-games__promo-description {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  padding: 0 20px 15px;
  flex-grow: 1;
  line-height: 1.6;
}

.page-slot-games__promo-button {
  display: block;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-align: center;
  padding: 12px 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-top: 1px solid var(--border-color-dark);
}

.page-slot-games__promo-card:hover .page-slot-games__promo-button {
  background: #1A7DD8;
}

/* FAQ Section */
.page-slot-games__faq-section {
  background: linear-gradient(0deg, #0d0d0d 0%, var(--background-dark) 100%);
}

.page-slot-games__faq-list {
  margin-top: 50px;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color-dark);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Ensure it expands */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 12px 12px;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--card-background-dark);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(255, 215, 0, 0.1); /* Active question background */
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark-bg);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Plus to X effect */
  color: var(--secondary-color);
}

.page-slot-games__faq-answer p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-dark-bg);
  margin: 0;
}

.page-slot-games__why-choose-section {
  background: linear-gradient(180deg, #0d0d0d 0%, #000000 100%);
}

.page-slot-games__reason-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__reason-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--text-color-dark-bg);
  position: relative;
  padding-left: 30px;
}

.page-slot-games__reason-list li strong {
  color: var(--primary-color);
}

.page-slot-games__reason-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* General image responsiveness */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 🚨 Mobile Responsive Design (Must strictly comply) */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 2.8em;
  }
  .page-slot-games__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on mobile navigation bar height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-slot-games__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-slot-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px;
    overflow: hidden !important;
  }
  
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: contain; /* Use contain to ensure full video display without overflow */
  }
  
  .page-slot-games__video-overlay {
    border-radius: 8px;
  }

  .page-slot-games__video-click-hint {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-slot-games__video-cta {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-slot-games__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__hero-section {
    padding: 60px 15px;
    padding-top: 100px; /* Mobile: Adjust for fixed header */
  }

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

  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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__about-nổhũ-section, 
  .page-slot-games__top-games-section, 
  .page-slot-games__how-to-play-section, 
  .page-slot-games__promotions-section, 
  .page-slot-games__faq-section, 
  .page-slot-games__why-choose-section {
    padding: 50px 15px;
  }

  .page-slot-games__features-grid, 
  .page-slot-games__games-grid, 
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-item, 
  .page-slot-games__game-card, 
  .page-slot-games__promo-card, 
  .page-slot-games__how-to-play-list li, 
  .page-slot-games__faq-item {
    border-radius: 8px;
  }

  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-slot-games__feature-item h3 {
    font-size: 1.3em;
  }

  .page-slot-games__game-thumbnail, 
  .page-slot-games__promo-thumbnail {
    height: 180px;
  }

  .page-slot-games__game-title, 
  .page-slot-games__promo-title {
    font-size: 1.3em;
    padding: 12px 15px 5px;
  }

  .page-slot-games__game-provider, 
  .page-slot-games__promo-description {
    padding: 0 15px 10px;
    font-size: 0.9em;
  }

  .page-slot-games__game-play-button, 
  .page-slot-games__promo-button {
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .page-slot-games__how-to-play-list li h3 {
    font-size: 1.4em;
  }

  .page-slot-games__how-to-play-list li p {
    font-size: 0.95em;
  }

  .page-slot-games__faq-question {
    padding: 18px 20px;
  }

  .page-slot-games__faq-question h3 {
    font-size: 1.1em;
  }

  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }
  
  .page-slot-games p, .page-slot-games li {
    font-size: 15px;
    line-height: 1.6;
  }

  .page-slot-games__reason-list li {
    font-size: 1em;
    padding-left: 25px;
  }

  .page-slot-games__reason-list li::before {
    left: -5px; /* Adjust checkmark position */
  }
}

/* 🚨 General image and container responsiveness for mobile */
@media (max-width: 768px) {
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__container,
  .page-slot-games__hero-container,
  .page-slot-games__content-block,
  .page-slot-games__features-grid,
  .page-slot-games__games-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__how-to-play-list,
  .page-slot-games__faq-list,
  .page-slot-games__reason-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px !important; /* Remove container padding as sections have padding */
    padding-right: 0px !important;
    overflow: hidden !important;
  }
  .page-slot-games__feature-item,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__how-to-play-list li,
  .page-slot-games__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}