/* style/slot-games.css */

:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-bg: #08160F;
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border-color: #2E7A4E;
  --page-slot-games-glow-color: #57E38D;
  --page-slot-games-gold-color: #F2C14E;
  --page-slot-games-divider-color: #1E3A2A;
  --page-slot-games-deep-green-color: #0A4B2C;
}

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-main); /* Default text color for dark background */
  background-color: var(--page-slot-games-bg);
}

.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__dark-bg {
  background-color: var(--page-slot-games-bg);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--page-slot-games-gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-slot-games__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-slot-games-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  margin-top: -150px; /* Pull content up slightly over the image for better flow, without overlapping text on image */
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-slot-games__hero-content .page-slot-games__description {
  font-size: 1.2em;
  color: var(--page-slot-games-text-main);
  margin-bottom: 40px;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--page-slot-games-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

/* General Content Wrapper for text/image */
.page-slot-games__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-slot-games__text-block,
.page-slot-games__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  text-align: left;
}

.page-slot-games__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-slot-games__light-bg .page-slot-games__text-block p {
  color: #333333;
}

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

.page-slot-games__game-card.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-slot-games-border-color);
}

.page-slot-games__game-card.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.page-slot-games__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-slot-games__card-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 25px;
}

/* Feature List (Why Choose) */
.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-slot-games__feature-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #333333; /* For light background */
}

.page-slot-games__feature-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-slot-games__step-card.page-slot-games__card {
  background-color: var(--page-slot-games-deep-green-color);
  text-align: left;
}

.page-slot-games__step-title {
  font-size: 1.5em;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
  position: relative;
  padding-left: 40px;
}

.page-slot-games__step-title::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--page-slot-games-gold-color);
  color: var(--page-slot-games-bg);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: bold;
}

.page-slot-games__how-to-play .page-slot-games__image-block {
  max-width: 100%;
  margin-top: 40px;
}

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

.page-slot-games__promo-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #333333; /* For light background */
}

.page-slot-games__promo-item::before {
  content: '🎁';
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-slot-games__faq-item.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
  margin-bottom: 15px;
  padding: 0;
  border: 1px solid var(--page-slot-games-border-color);
}

.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: var(--page-slot-games-text-main);
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

/* For <details> native support */
.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  max-height: fit-content; /* Let content dictate height */
  overflow: visible;
  padding-top: 10px;
}

.page-slot-games__faq-item details > summary {
  list-style: none;
}
.page-slot-games__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-item details[open] .page-slot-games__faq-toggle {
  content: '−';
}

/* Final CTA Section */
.page-slot-games__final-cta .page-slot-games__description {
  color: #333333;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-slot-games__hero-content {
    margin-top: -100px;
  }
  .page-slot-games__section-title {
    font-size: 2.2em;
  }
  .page-slot-games__text-block, .page-slot-games__image-block {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 15px;
  }
  .page-slot-games__hero-content {
    margin-top: -80px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-slot-games__hero-content .page-slot-games__description {
    font-size: 1em;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
  }
  
  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__content-wrapper,
  .page-slot-games__game-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__faq-list,
  .page-slot-games__faq-item,
  .page-slot-games__promo-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__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__text-block, .page-slot-games__image-block {
    min-width: unset;
  }
  
  .page-slot-games__feature-item,
  .page-slot-games__promo-item {
    padding-left: 25px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__description {
    font-size: 0.95em;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-slot-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 15px;
  }
  .page-slot-games__step-title {
    font-size: 1.3em;
  }
}