/* style/slot-games.css */

/* --- General Styles & Body Background (Assuming dark background from shared.css) --- */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: var(--dark-bg-1, #0d0d0d); /* Fallback if --dark-bg-1 is not defined */
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #333333; /* Auxiliary color for hero background */
  overflow: hidden; /* Ensure content doesn't overflow */
  padding-top: 0; /* Assuming shared.css handles body padding for header offset */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-slot-games__hero-title {
  font-size: 3.2em;
  color: #E44D26; /* Brand color for title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-slot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

/* --- Section Titles & Text --- */
.page-slot-games__section-title {
  font-size: 2.5em;
  color: #E44D26;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E44D26;
  border-radius: 2px;
}

.page-slot-games__section-title--light {
  color: #ffffff;
}

.page-slot-games__section-title--light::after {
  background-color: #ffffff;
}

.page-slot-games__section-text {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-slot-games__section-text--light {
  color: #f0f0f0;
}

/* --- Content Areas --- */
.page-slot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--dark-bg-1, #0d0d0d); /* Ensure consistency with body */
}

.page-slot-games__dark-section {
  background-color: #333333; /* Auxiliary dark background */
  padding: 60px 20px;
  color: #ffffff; /* Light text for dark section */
}

/* --- Buttons --- */
.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.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-slot-games__btn-primary {
  background-color: #E44D26;
  color: #ffffff;
  border: 2px solid #E44D26;
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #E44D26;
  border: 2px solid #E44D26;
}

.page-slot-games__btn-secondary:hover {
  background-color: #E44D26;
  color: #ffffff;
}

.page-slot-games__btn-primary--small,
.page-slot-games__btn-secondary--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-slot-games__btn-primary--large,
.page-slot-games__btn-secondary--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* --- Images --- */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
  border-radius: 8px;
  margin: 0 auto; /* Center images */
  /* NO filter property allowed */
}

.page-slot-games__image-full-width {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-slot-games__image-centered {
  margin-top: 30px;
  margin-bottom: 30px;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff; /* Light text for card content */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover,
.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-card-image,
.page-slot-games__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-slot-games__game-card-title,
.page-slot-games__promo-card-title {
  font-size: 1.5em;
  color: #E44D26; /* Brand color for card titles */
  margin-bottom: 10px;
}

.page-slot-games__game-card-description,
.page-slot-games__promo-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* --- Feature Grid --- */
.page-slot-games__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-slot-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-slot-games__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 15px auto;
}

.page-slot-games__feature-title {
  font-size: 1.4em;
  color: #E44D26;
  margin-bottom: 10px;
}

.page-slot-games__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

/* --- How to Play List --- */
.page-slot-games__how-to-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-slot-games__list-item-title {
  font-size: 1.6em;
  color: #E44D26;
  margin-bottom: 10px;
}

.page-slot-games__list-item-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- Promotions Section (uses promo-grid and promo-card, already defined) --- */

/* --- FAQ Section --- */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly lighter for question background */
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-slot-games__faq-title {
  font-size: 1.2em;
  color: #E44D26;
  margin: 0;
}

.page-slot-games__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #E44D26;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px; /* Adjust padding when open */
}

.page-slot-games__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}
.page-slot-games__faq-answer a {
  margin-top: 15px;
}

/* --- Call to Action Footer --- */
.page-slot-games__cta-footer-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #E44D26; /* Brand color for CTA footer */
  color: #ffffff;
}

.page-slot-games__cta-footer-section .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__cta-footer-section .page-slot-games__section-title::after {
  background-color: #ffffff;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 2.8em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* Ensure content area does not cause horizontal scroll */
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__hero-section {
    padding: 60px 15px;
    flex-direction: column;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="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__cta-buttons,
  .page-slot-games__hero-cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-slot-games__content-area,
  .page-slot-games__dark-section {
    padding: 40px 15px;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
  }

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

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important; /* Ensure minimum size */
  }

  .page-slot-games__game-card-image,
  .page-slot-games__promo-card-image {
    min-width: 200px !important;
    min-height: 200px !important;
    height: auto !important; /* Allow auto height on mobile */
  }

  .page-slot-games__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Make icons take full width of their container */
    height: auto !important;
  }

  .page-slot-games__faq-question {
    padding: 15px 20px;
  }

  .page-slot-games__faq-title {
    font-size: 1.1em;
  }

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

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

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__btn-primary--large,
  .page-slot-games__btn-secondary--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}