/* style/slot-games.css */

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure this matches body background from shared.css */
}

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

/* Section styling */
.page-slot-games__hero-section,
.page-slot-games__about-section,
.page-slot-games__how-to-play-section,
.page-slot-games__video-section,
.page-slot-games__features-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__dark-bg {
  background-color: #000080; /* Auxiliary color for dark sections */
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #f0f0f0; /* Light background for contrast */
  color: #333333;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Brand primary color for titles */
}

.page-slot-games__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background-color: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

.page-slot-games__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-slot-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-slot-games__btn-tertiary {
  background-color: #000080;
  color: #FFD700;
  border: 2px solid #000080;
}

.page-slot-games__btn-tertiary:hover {
  background-color: #00005a;
  border-color: #00005a;
}

/* Features Grid */
.page-slot-games__features-grid,
.page-slot-games__steps-grid,
.page-slot-games__highlight-grid,
.page-slot-games__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-item,
.page-slot-games__step-item,
.page-slot-games__highlight-item,
.page-slot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Light text for dark cards */
}

.page-slot-games__about-section .page-slot-games__feature-item {
  background-color: #ffffff; /* White background for cards on light bg */
  color: #333333; /* Dark text for light cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__promotions-section .page-slot-games__promo-card {
  background-color: #ffffff; /* White background for cards on light bg */
  color: #333333; /* Dark text for light cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-icon,
.page-slot-games__highlight-icon,
.page-slot-games__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__feature-title,
.page-slot-games__step-title,
.page-slot-games__highlight-title,
.page-slot-games__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-slot-games__feature-text,
.page-slot-games__step-text,
.page-slot-games__highlight-text,
.page-slot-games__promo-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How-to-Play Steps */
.page-slot-games__step-number {
  background-color: #FFD700;
  color: #000080;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Video Section */
.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* FAQ Section */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-slot-games__faq-item.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFD700;
  transition: color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  color: #e6c200;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  padding-bottom: 15px;
}

/* Conclusion Section */
.page-slot-games__conclusion-cta {
  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;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 500px;
  }

  .page-slot-games__hero-title {
    font-size: 2.5em;
  }

  .page-slot-games__hero-description {
    font-size: 1.1em;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

  .page-slot-games__feature-icon,
  .page-slot-games__highlight-icon,
  .page-slot-games__promo-image {
    height: 180px;
  }

  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }
  
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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__feature-item,
  .page-slot-games__step-item,
  .page-slot-games__highlight-item,
  .page-slot-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
}