/* style/slot-games.css */

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

/* Base styles for the page content */
.page-slot-games {
  background-color: var(--page-bg-color); /* Body background handled by shared.css */
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Enforce image on top, text below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-slot-games__hero-content {
  position: relative; /* Ensure content is not absolutely positioned over image */
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

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

.page-slot-games__lead-text {
  font-size: 1.15rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  justify-content: center;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-slot-games__btn-primary {
  background: var(--btn-gradient-start);
  background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
  color: #ffffff;
  border: 2px solid var(--glow-color);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

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

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--deep-green-color);
  transform: translateY(-3px);
}

/* Section Titles and Paragraphs */
.page-slot-games__section {
  padding: 60px 0;
}

.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-slot-games__paragraph {
  font-size: 1.05rem;
  color: var(--text-main-color);
  text-align: justify;
  margin-bottom: 20px;
}

.page-slot-games__brand-highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-slot-games__keyword-highlight {
  color: var(--glow-color);
  font-weight: bold;
}

/* Features Section */
.page-slot-games__features-section {
  background-color: var(--card-bg-color);
}

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

.page-slot-games__feature-card {
  background-color: var(--deep-green-color); /* Using deep green for contrast */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  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;
  align-items: center;
  color: var(--text-main-color);
}

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

.page-slot-games__feature-icon {
  width: 100%;
  max-width: 150px; /* Adjust size for feature icons if they are smaller content images */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-slot-games__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-games__card-text {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

/* Game Types Section */
.page-slot-games__game-card {
  background-color: var(--card-bg-color); /* Light background for card */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__game-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure content images are not too small */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Promo Section */
.page-slot-games__promo-section {
  background-color: var(--deep-green-color); /* Dark section background */
  color: var(--text-main-color);
}

.page-slot-games__text-main {
  color: var(--text-main-color);
}

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

.page-slot-games__promo-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-slot-games__promo-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-slot-games__promo-text {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

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

/* Guide Section */
.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-slot-games__guide-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-slot-games__guide-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: var(--gold-color);
  color: var(--deep-green-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.page-slot-games__guide-step-title {
  font-size: 1.4rem;
  color: var(--glow-color);
  margin-bottom: 10px;
}

.page-slot-games__guide-step-text {
  font-size: 1rem;
  color: var(--text-main-color);
}

/* Tips Section */
.page-slot-games__tips-section {
  background-color: var(--deep-green-color); /* Dark section background */
  color: var(--text-main-color);
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
}

.page-slot-games__tips-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-slot-games__tips-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-slot-games__tips-text {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

/* FAQ Section */
.page-slot-games__faq-section {
  background-color: var(--page-bg-color);
}

.page-slot-games__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color);
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  text-align: center;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-slot-games__hero-section {
    padding-bottom: 30px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem); /* Adjust H1 for smaller screens */
  }

  .page-slot-games__lead-text {
    font-size: 1rem;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 20px;
  }

  .page-slot-games__paragraph {
    font-size: 0.95rem;
  }

  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-item,
  .page-slot-games__guide-item,
  .page-slot-games__tips-item,
  .page-slot-games__faq-item {
    padding: 20px;
  }

  .page-slot-games__feature-icon {
    max-width: 100px;
  }

  .page-slot-games__card-title,
  .page-slot-games__promo-title,
  .page-slot-games__guide-step-title,
  .page-slot-games__tips-title {
    font-size: 1.2rem;
  }

  .page-slot-games__card-text,
  .page-slot-games__promo-text,
  .page-slot-games__guide-step-text,
  .page-slot-games__tips-text,
  .page-slot-games__faq-answer p {
    font-size: 0.9rem;
  }

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

  /* Image responsive rules */
  .page-slot-games 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__hero-image-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__game-card,
  .page-slot-games__feature-card,
  .page-slot-games__promo-item,
  .page-slot-games__guide-item,
  .page-slot-games__tips-item,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-slot-games__grid {
    gap: 20px;
  }

  .page-slot-games__guide-item {
    padding-left: 60px;
  }

  .page-slot-games__guide-item::before {
    left: 15px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}