/* style/slot-games.css */

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
}

/* Header spacing is handled by shared.css on the body, so no padding-top here */

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 20px 60px;
  text-align: center;
  overflow: hidden;
  color: var(--text-main); /* Light text for dark background */
  background: var(--background); /* Use the deep green background */
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image slightly for text readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text */
  border-radius: 10px;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-slot-games__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.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.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  border: 2px solid var(--deep-green);
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--glow);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-slot-games__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-slot-games__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color themes for sections */
.page-slot-games__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-slot-games__light-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-slot-games__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-title,
.page-slot-games__game-name,
.page-slot-games__step-title,
.page-slot-games__mobile-title,
.page-slot-games__promo-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold);
}

.page-slot-games__feature-description,
.page-slot-games__game-description,
.page-slot-games__step-description,
.page-slot-games__mobile-description,
.page-slot-games__promo-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-slot-games__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Game Types List */
.page-slot-games__game-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__game-item {
  text-align: left;
}

/* How To Play Steps */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-slot-games__step-item {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__step-item .page-slot-games__btn-primary {
  margin-top: 20px;
  align-self: flex-start;
}

/* Mobile Experience */
.page-slot-games__mobile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-slot-games__mobile-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__mobile-content {
  max-width: 500px;
  text-align: center;
}

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

.page-slot-games__promo-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__promo-card .page-slot-games__btn-primary {
  margin-top: 20px;
  align-self: flex-start;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  padding-right: 10px;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--glow);
  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-top: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-slot-games__faq-item:not([open]) .page-slot-games__faq-answer {
  display: none; /* Hide answer when not open for details tag */
}

/* Final CTA */
.page-slot-games__final-cta {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-slot-games__mobile-cta {
    flex-direction: row;
    justify-content: center;
  }
  .page-slot-games__mobile-content {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 10px 15px 40px;
    min-height: 400px;
  }

  .page-slot-games__hero-content {
    padding: 15px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-slot-games__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

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

  .page-slot-games__feature-title,
  .page-slot-games__game-name,
  .page-slot-games__step-title,
  .page-slot-games__mobile-title,
  .page-slot-games__promo-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .page-slot-games__feature-description,
  .page-slot-games__game-description,
  .page-slot-games__step-description,
  .page-slot-games__mobile-description,
  .page-slot-games__promo-description {
    font-size: 0.9rem;
  }

  .page-slot-games__content-image,
  .page-slot-games__mobile-image,
  .page-slot-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__container,
  .page-slot-games__feature-grid,
  .page-slot-games__game-list,
  .page-slot-games__step-list,
  .page-slot-games__promo-grid,
  .page-slot-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-slot-games__faq-answer {
    font-size: 0.9rem;
  }

  .page-slot-games__mobile-cta {
    gap: 25px;
  }

  .page-slot-games__mobile-content {
    padding: 20px;
  }
}

/* Ensure images don't use filters */
.page-slot-games img {
  filter: none; /* No color-changing filters allowed */
}

/* Specific color overrides for contrast */
.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__text-block {
  color: var(--text-main);
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__text-block {
  color: var(--text-main);
}

/* Ensure desktop video container has width: 100% */
.page-slot-games__video-container {
  width: 100%; /* Ensure full width on desktop as well */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}