/* style/slot-games.css */

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

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

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

.page-slot-games__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff; /* Auxiliary color for light sections */
  color: #333333;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-slot-games__inline-link {
  color: #FFFF00; /* Yellow for internal links for contrast */
  text-decoration: underline;
}

.page-slot-games__inline-link:hover {
  text-decoration: none;
}

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-slot-games__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-slot-games__hero-buttons,
.page-slot-games__cta-center,
.page-slot-games__download-buttons,
.page-slot-games__cta-final-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Card styles */
.page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-slot-games__light-bg .page-slot-games__card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__card-title {
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: inherit;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: inherit;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-content {
  flex: 1;
  max-width: 600px;
  padding: 0 20px;
  text-align: left;
  z-index: 2;
}

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

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-align: left;
}

.page-slot-games__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  z-index: 1;
}

.page-slot-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
}

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

.page-slot-games__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

.page-slot-games__game-card {
  padding: 20px;
}

.page-slot-games__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

/* How-to-play Steps */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__step-card {
  padding: 25px;
}

/* Promotions List */
.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-slot-games__list-item {
  background-color: rgba(1, 116, 57, 0.05); /* Very light brand green for list item background */
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
  text-align: left;
}

.page-slot-games__dark-bg .page-slot-games__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-left-color: #FFFF00;
}

/* Download App Section */
.page-slot-games__download-app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-slot-games__download-text {
  flex: 1;
  min-width: 300px;
}

.page-slot-games__download-app-section .page-slot-games__section-title,
.page-slot-games__download-app-section .page-slot-games__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-slot-games__app-benefits {
  list-style: disc;
  margin-left: 20px;
  margin-top: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-slot-games__app-benefits .page-slot-games__list-item {
  background: none;
  border: none;
  padding: 5px 0;
  margin-bottom: 5px;
  color: inherit;
  font-size: 1em;
}

.page-slot-games__download-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.page-slot-games__app-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Security Section */
.page-slot-games__security-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  text-align: left;
}

.page-slot-games__security-item .page-slot-games__card-title {
  font-size: 1.4em;
  margin-top: 0;
  text-align: left;
}

.page-slot-games__security-item .page-slot-games__card-description {
  text-align: left;
  font-size: 1em;
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question:hover {
  background-color: #005f2e;
}

.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;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

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

.page-slot-games__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  text-align: left;
}

/* Final CTA Section */
.page-slot-games__cta-final-content {
  text-align: center;
}

.page-slot-games__cta-final-content .page-slot-games__section-title {
  font-size: 2.8em;
}

.page-slot-games__cta-final-content .page-slot-games__text-block {
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.2em;
  }
  .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__section {
    padding: 40px 0;
  }

  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
  }

  .page-slot-games__hero-content {
    max-width: 100%;
    padding: 0 15px;
    text-align: center;
  }

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

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

  .page-slot-games__hero-image-wrapper {
    padding: 20px 15px 0;
  }

  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button responsiveness */
  .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__hero-buttons,
  .page-slot-games__cta-center,
  .page-slot-games__download-buttons,
  .page-slot-games__cta-final-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-slot-games__card {
    padding: 20px;
  }

  .page-slot-games__download-app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-slot-games__download-app-section .page-slot-games__section-title,
  .page-slot-games__download-app-section .page-slot-games__text-block {
    text-align: center;
  }

  .page-slot-games__app-benefits {
    margin-left: 0;
    padding-left: 20px;
    text-align: left;
  }

  .page-slot-games__security-item {
    text-align: center;
  }

  .page-slot-games__security-item .page-slot-games__card-title,
  .page-slot-games__security-item .page-slot-games__card-description {
    text-align: center;
  }
  
  /* Ensure all containers for images, videos, buttons are properly constrained */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-content,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__download-text,
  .page-slot-games__download-image,
  .page-slot-games__faq-list,
  .page-slot-games__faq-item,
  .page-slot-games__faq-question,
  .page-slot-games__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-slot-games__faq-question,
  .page-slot-games__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color contrast adjustments for specific elements */
.page-slot-games__light-bg .page-slot-games__inline-link {
  color: #017439; /* Brand primary for links on light background */
}

.page-slot-games__light-bg .page-slot-games__promo-list .page-slot-games__list-item {
  border-left-color: #C30808; /* Register/Login color for highlight */
}