/* style/slot-games.css */

/* Custom Colors */
:root {
  --page-slot-games-primary-color: #11A84E;
  --page-slot-games-secondary-color: #22C768;
  --page-slot-games-bg-color: #08160F;
  --page-slot-games-card-bg: #11271B;
  --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: #0A4B2C;
  --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--page-slot-games-text-main);
  background-color: var(--page-slot-games-bg-color); /* Body background is dark, so page content default text is light */
}

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

.page-slot-games__light-bg {
  background-color: #11271B; /* Using card-bg for light sections on a dark body to maintain contrast */
  color: var(--page-slot-games-text-main);
}

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7); /* Slightly dim the image for text readability without changing color */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin-top: -300px; /* Adjust to move content over image without absolute positioning */
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--page-slot-games-text-main);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0,255,0,0.5);
}

.page-slot-games__description {
  font-size: 1.1rem;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,255,0,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: var(--page-slot-games-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,255,0,0.4);
}

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

.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--page-slot-games-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-slot-games__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--page-slot-games-text-secondary);
  text-align: justify;
  margin-bottom: 30px;
}

.page-slot-games__feature-cards,
.page-slot-games__game-grid,
.page-slot-games__promo-cards,
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,255,0,0.4);
}

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

.page-slot-games__card-title,
.page-slot-games__game-title,
.page-slot-games__promo-title,
.page-slot-games__step-title {
  font-size: 1.4rem;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-slot-games__card-description,
.page-slot-games__game-description,
.page-slot-games__promo-description,
.page-slot-games__step-description {
  font-size: 0.95rem;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.page-slot-games__step-card {
  position: relative;
  padding-top: 50px; /* Space for step number */
}

.page-slot-games__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--page-slot-games-gold-color);
  color: var(--page-slot-games-bg-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--page-slot-games-glow-color);
}

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

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

.page-slot-games__strategy-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: var(--page-slot-games-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__strategy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,255,0,0.3);
}

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

.page-slot-games__strategy-description {
  font-size: 0.95rem;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.6;
}

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

.page-slot-games__feature-item {
  background-color: var(--page-slot-games-card-bg);
  border: 1px solid var(--page-slot-games-border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: var(--page-slot-games-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,255,0,0.3);
}

.page-slot-games__feature-heading {
  font-size: 1.3rem;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__feature-description {
  font-size: 0.95rem;
  color: var(--page-slot-games-text-secondary);
  line-height: 1.6;
}

.page-slot-games__faq-list {
  margin-top: 30px;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-slot-games-primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-slot-games-gold-color);
  margin-left: 15px;
}

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

/* Ensure correct FAQ toggle for details tag */
details[open] .page-slot-games__faq-toggle {
  content: '−';
}

.page-slot-games__cta-final-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--page-slot-games-deep-green);
  color: var(--page-slot-games-text-main);
}

/* Global image reset for responsive, applies to all images within main content */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -200px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-content {
    margin-top: -150px;
  }
  
  .page-slot-games__main-title {
    font-size: 2.2rem;
  }

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

  .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;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__section-title {
    font-size: 2rem;
  }

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

  .page-slot-games__card,
  .page-slot-games__strategy-item,
  .page-slot-games__feature-item,
  .page-slot-games__faq-item {
    padding: 20px;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .page-slot-games__card-image,
  .page-slot-games__game-image,
  .page-slot-games__promo-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-slot-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  .page-slot-games__container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile image specific override */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure no horizontal scroll for containers */
  .page-slot-games__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__game-types-section,
  .page-slot-games__guide-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__features-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-content {
    margin-top: -100px;
  }
  .page-slot-games__main-title {
    font-size: 1.8rem;
  }
  .page-slot-games__section-title {
    font-size: 1.8rem;
  }
  .page-slot-games__card-title,
  .page-slot-games__game-title,
  .page-slot-games__promo-title,
  .page-slot-games__step-title,
  .page-slot-games__strategy-title,
  .page-slot-games__feature-heading {
    font-size: 1.2rem;
  }
}