/* style/slot-games.css */

/* Custom Colors */
:root {
  --page-slot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-slot-games-card-bg: #11271B;
  --page-slot-games-bg: #08160F; /* This will be overridden by shared.css body background, but useful for internal components */
  --page-slot-games-text-main: #F2FFF6;
  --page-slot-games-text-secondary: #A7D9B8;
  --page-slot-games-border: #2E7A4E;
  --page-slot-games-glow: #57E38D;
  --page-slot-games-gold: #F2C14E;
  --page-slot-games-divider: #1E3A2A;
  --page-slot-games-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-slot-games {
  color: var(--page-slot-games-text-main); /* Light text for dark background */
  background-color: var(--page-slot-games-bg); /* This will be covered by shared.css body bg */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section padding and alignment */
.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__dark-section {
  background-color: var(--page-slot-games-card-bg); /* Darker background for contrast */
  color: var(--page-slot-games-text-main);
}

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

.page-slot-games__section-title {
  font-size: 2.8em;
  color: var(--page-slot-games-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  color: var(--page-slot-games-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Ensure content does not overflow */
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-slot-games__hero-content {
  position: relative; /* Ensure content is on top */
  z-index: 1;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
  text-align: center;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__main-title {
  font-weight: bold;
  color: var(--page-slot-games-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  max-width: 100%;
}

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

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__card-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-btn {
  background: var(--page-slot-games-btn-gradient);
  color: var(--page-slot-games-text-main);
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 15px;
}

.page-slot-games__card-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-slot-games__game-card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__game-card:hover {
  transform: translateY(-10px);
}

.page-slot-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-slot-games__game-title {
  font-size: 1.6em;
  color: var(--page-slot-games-gold);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-slot-games__game-title a {
  color: var(--page-slot-games-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__game-title a:hover {
  color: var(--page-slot-games-glow);
}

.page-slot-games__game-description {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

/* How To Play Section */
.page-slot-games__how-to-play {
  background-color: var(--page-slot-games-deep-green); /* Use deep green for this section */
}

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

.page-slot-games__step-item {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-color: var(--page-slot-games-glow);
  color: var(--page-slot-games-card-bg); /* Dark text on glow background */
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-slot-games__step-title {
  font-size: 1.5em;
  color: var(--page-slot-games-gold);
  margin-bottom: 15px;
}

.page-slot-games__step-description {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
}

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

/* Promotions Section */
.page-slot-games__promotions {
  background-color: var(--page-slot-games-bg);
}

.page-slot-games__promo-card {
  background-color: var(--page-slot-games-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  text-align: left;
}

.page-slot-games__promo-card:last-child {
  margin-bottom: 0;
}

.page-slot-games__promo-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-slot-games__promo-content {
  padding: 30px;
  width: 60%;
}

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

.page-slot-games__promo-title a {
  color: var(--page-slot-games-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__promo-title a:hover {
  color: var(--page-slot-games-glow);
}

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

/* FAQ Section */
.page-slot-games__faq {
  background-color: var(--page-slot-games-deep-green);
}

.page-slot-games__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: var(--page-slot-games-text-main);
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  color: var(--page-slot-games-gold);
}

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

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

.page-slot-games__faq-answer p {
  margin: 0;
}

/* CTA Banner */
.page-slot-games__cta-banner {
  padding: 80px 0;
  background-color: var(--page-slot-games-deep-green); /* Consistent dark background */
}

.page-slot-games__cta-content {
  max-width: 900px;
  text-align: center;
}

.page-slot-games__cta-title {
  font-size: 2.8em;
  color: var(--page-slot-games-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__cta-description {
  font-size: 1.2em;
  color: var(--page-slot-games-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-image-wrapper {
    max-height: 500px;
  }

  .page-slot-games__section-title,
  .page-slot-games__cta-title {
    font-size: 2.2em;
  }

  .page-slot-games__promo-card {
    flex-direction: column;
  }

  .page-slot-games__promo-image,
  .page-slot-games__promo-content {
    width: 100%;
  }

  .page-slot-games__promo-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px;
  }

  .page-slot-games__hero-image-wrapper {
    max-height: 300px;
  }

  .page-slot-games__hero-content {
    margin-top: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Smaller clamp for mobile */
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__card-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__game-grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__promo-card {
    margin-bottom: 20px;
  }

  .page-slot-games__promo-image {
    height: 200px;
  }

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

  .page-slot-games__promo-title {
    font-size: 1.4em;
  }

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

  .page-slot-games__cta-title {
    font-size: 2em;
  }

  /* Universal image responsive rule for content area */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Specific override for hero content area to ensure it's centered without extra padding */
  .page-slot-games__hero-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Ensure contrast for text on various backgrounds */
.page-slot-games p,
.page-slot-games li,
.page-slot-games__description,
.page-slot-games__game-description,
.page-slot-games__step-description,
.page-slot-games__promo-description,
.page-slot-games__faq-answer p,
.page-slot-games__cta-description {
  color: var(--page-slot-games-text-secondary); /* Ensure light color on dark backgrounds */
}

/* Specific contrast for step number */
.page-slot-games__step-number {
  color: var(--page-slot-games-card-bg); /* Dark text on glow background */
}

/* Link colors for contrast */
.page-slot-games__game-title a,
.page-slot-games__promo-title a {
  color: var(--page-slot-games-gold);
}
.page-slot-games__game-title a:hover,
.page-slot-games__promo-title a:hover {
  color: var(--page-slot-games-glow);
}

/* For elements with background colors, ensure text contrast */
.page-slot-games__card-btn {
  color: var(--page-slot-games-text-main); /* Light text on gradient button */
}

.page-slot-games__faq-question {
  color: var(--page-slot-games-text-main); /* Light text on dark background */
}

.page-slot-games__faq-toggle {
  color: var(--page-slot-games-gold); /* Gold color for toggle */
}