/* style/slot-games.css */

/* Biến CSS cho màu sắc */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --accent-color: #CC0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-slot-games {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure main content background matches body */
}

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

.page-slot-games__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__description {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

/* Hero Section */
.page-slot-games__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  padding-top: calc(80px + 120px); /* Adjust for fixed header */
}

.page-slot-games__main-title {
  font-size: 3.8em;
  font-weight: 900;
  margin-bottom: 25px;
  color: var(--secondary-color);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.page-slot-games__hero-section .page-slot-games__description {
  font-size: 1.3em;
  margin-bottom: 60px;
  color: #e0e0e0;
}

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

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

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

.page-slot-games__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Feature Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: var(--card-bg-light);
  color: var(--text-dark);
}

.page-slot-games__features-section .page-slot-games__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

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

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

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__feature-icon {
  width: 150px; /* Min size 200x200px, so 150px is too small. Adjusting. */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.page-slot-games__feature-card .page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-slot-games__feature-card .page-slot-games__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Games Showcase Section */
.page-slot-games__games-showcase {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__games-showcase .page-slot-games__section-title {
  color: var(--secondary-color);
}

.page-slot-games__games-showcase .page-slot-games__description {
  color: #e0e0e0;
}

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

.page-slot-games__game-card {
  background: var(--card-bg-dark);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  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 12px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__game-card .page-slot-games__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-slot-games__game-card .page-slot-games__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-slot-games__card-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-top: auto; /* Push button to bottom */
  background: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__card-button:hover {
  background: #a30000;
  transform: translateY(-2px);
}

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

/* Guide Section */
.page-slot-games__guide-section {
  padding: 80px 0;
  background-color: var(--card-bg-light);
  color: var(--text-dark);
}

.page-slot-games__guide-section .page-slot-games__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

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

.page-slot-games__guide-item {
  background: var(--card-bg-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

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

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

.page-slot-games__guide-item-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  flex-grow: 1;
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__tips-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

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

.page-slot-games__tip-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-slot-games__tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__tip-card .page-slot-games__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-slot-games__tip-card .page-slot-games__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg-light);
  color: var(--text-dark);
}

.page-slot-games__faq-section .page-slot-games__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-dark);
}

.page-slot-games__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  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); /* Change to X or rotate */
  color: var(--accent-color);
}

.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 25px;
  opacity: 0;
  background: #ffffff;
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-slot-games__faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: #555555;
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #001a33 0%, var(--primary-color) 100%);
  text-align: center;
  color: var(--text-light);
}

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

.page-slot-games__cta-final-section .page-slot-games__description {
  color: #e0e0e0;
  margin-bottom: 60px;
}


/* ========================================================================== *
 * Responsive Design
 * ========================================================================== */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2.2em;
  }
  .page-slot-games__description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    padding: 60px 0;
    padding-top: calc(60px + 100px) !important; /* Adjust for fixed header on mobile */
  }

  .page-slot-games__main-title {
    font-size: 2.5em;
    margin-bottom: 20px;
  }

  .page-slot-games__hero-section .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 40px;
  }

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

  .page-slot-games__description {
    margin-bottom: 40px;
  }

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

  .page-slot-games__cta-button {
    padding: 14px 30px;
    font-size: 1.1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-slot-games__cta-buttons, .page-slot-games__cta-center {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__features-section, 
  .page-slot-games__games-showcase, 
  .page-slot-games__guide-section, 
  .page-slot-games__tips-section, 
  .page-slot-games__faq-section, 
  .page-slot-games__cta-final-section {
    padding: 60px 0;
  }

  .page-slot-games__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__feature-grid, 
  .page-slot-games__game-grid, 
  .page-slot-games__guide-list, 
  .page-slot-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__feature-card, 
  .page-slot-games__game-card, 
  .page-slot-games__guide-item, 
  .page-slot-games__tip-card {
    padding: 25px;
    border-radius: 8px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__feature-icon {
    width: 120px; /* Adjusted to be > 200px or use a larger placeholder */
    height: 120px;
  }
  
  .page-slot-games__game-image {
    height: 180px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

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

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all images are responsive */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure all video elements are responsive */
  .page-slot-games video, .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .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: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 2em;
  }
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-slot-games__faq-question h3 {
    font-size: 0.95em;
  }
  .page-slot-games__feature-icon {
    width: 100px; /* Adjusted to be > 200px or use a larger placeholder */
    height: 100px;
  }
  .page-slot-games__game-image {
    height: 150px;
  }
}