/* style/slot-games.css */

/* Variables */
:root {
  --page-slot-games-primary-color: #26A9E0;
  --page-slot-games-secondary-color: #FFFFFF;
  --page-slot-games-login-color: #EA7C07;
  --page-slot-games-dark-text: #333333;
  --page-slot-games-light-text: #FFFFFF;
  --page-slot-games-background-light: #FFFFFF;
  --page-slot-games-background-dark: #000000; /* From body background */
}

/* Base styles for the page content, assuming body background is #000000 */
.page-slot-games {
  color: var(--page-slot-games-light-text); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3,
.page-slot-games h4,
.page-slot-games h5,
.page-slot-games h6 {
  color: var(--page-slot-games-light-text); /* Headings default to light text */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-slot-games__section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: clamp(2em, 4vw, 2.8em); /* H1 title size constraint */
}

.page-slot-games__text-block,
.page-slot-games p,
.page-slot-games li {
  color: var(--page-slot-games-light-text);
  margin-bottom: 15px;
}

/* Background color specific classes for contrast */
.page-slot-games__dark-bg {
  background-color: var(--page-slot-games-background-dark);
  color: var(--page-slot-games-light-text);
}

.page-slot-games__light-bg {
  background-color: var(--page-slot-games-background-light);
  color: var(--page-slot-games-dark-text);
}

.page-slot-games__text-contrast-fix {
  color: var(--page-slot-games-dark-text) !important; /* For light background sections */
}

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

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

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
  margin-top: 100px; /* Push content down to avoid image overlay */
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  color: var(--page-slot-games-secondary-color);
  margin-bottom: 20px;
}

.page-slot-games__intro-text {
  font-size: clamp(1em, 2vw, 1.2em);
  color: var(--page-slot-games-secondary-color);
  margin-bottom: 30px;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-slot-games__btn-secondary:hover {
  background-color: #c76505;
  border-color: #c76505;
}

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

.page-slot-games__btn-tertiary:hover {
  background-color: var(--page-slot-games-secondary-color);
  color: var(--page-slot-games-primary-color);
}

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

/* General Content Sections */
.page-slot-games__section {
  padding: 60px 0;
}

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

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

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

.page-slot-games__image-grid .page-slot-games__content-image {
  margin: 0;
}

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

.page-slot-games__card {
  background-color: var(--page-slot-games-background-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--page-slot-games-dark-text);
}

.page-slot-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-slot-games-dark-text); /* Ensure contrast on light card background */
}

.page-slot-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  flex-grow: 1;
  object-fit: cover;
}

.page-slot-games__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--page-slot-games-dark-text); /* Ensure contrast on light card background */
  margin-bottom: 20px;
}

.page-slot-games__card .page-slot-games__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

/* How to Play / Tips List */
.page-slot-games__steps-list,
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__list-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible on dark background */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--page-slot-games-light-text);
}

.page-slot-games__list-title {
  font-size: 1.3em;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 10px;
}

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

.page-slot-games__promo-cards .page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.08); /* Dark background with light card */
  color: var(--page-slot-games-light-text);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__promo-cards .page-slot-games__card-title {
  color: var(--page-slot-games-light-text);
}

.page-slot-games__promo-cards .page-slot-games__card-text {
  color: var(--page-slot-games-light-text);
}

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

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--page-slot-games-light-text);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--page-slot-games-light-text);
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-answer {
  padding: 0 25px 15px;
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--page-slot-games-light-text);
}

/* For details tag, hide default marker */
.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-slot-games__faq-item summary::marker {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games h1,
  .page-slot-games h2,
  .page-slot-games h3 {
    text-align: center;
  }

  .page-slot-games__hero-section {
    padding: 10px 15px 40px;
  }

  .page-slot-games__hero-content {
    padding: 20px 15px;
    margin-top: 80px; /* Adjust for smaller screens */
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-slot-games__intro-text {
    font-size: clamp(0.9em, 3vw, 1em);
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-slot-games__image-grid,
  .page-slot-games__game-types-grid,
  .page-slot-games__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-slot-games__faq-answer {
    padding: 0 20px 10px;
  }

  /* Ensure all content containers are responsive */
  .page-slot-games__hero-section,
  .page-slot-games__about-slots,
  .page-slot-games__how-to-play,
  .page-slot-games__promotions,
  .page-slot-games__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* Ensure images within any content area adhere to min size and responsiveness */
.page-slot-games img {
  min-width: 200px; /* Global minimum size */
  min-height: 200px;
}

/* Content area image CSS size lower bound */
.page-slot-games img:not(.page-slot-games__hero-image) {
  /* All content area images must be at least 200x200px */
  /* No specific width/height that makes them smaller than 200px */
  /* If a specific width/height is needed, it must be >= 200px */
  /* Otherwise, rely on max-width: 100% and height: auto */
}

/* No filter on images */
.page-slot-games img {
  filter: none !important;
}