/* style/slot-games.css */
/* Custom Colors */
: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: #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 {
  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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

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

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

/* Color contrast classes */
.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; /* Explicitly light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: var(--page-slot-games-primary-color); /* Brand color for titles on light bg */
}

.page-slot-games__light-bg .page-slot-games__section-description {
  color: #555555;
}

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
  border: 1px solid var(--page-slot-games-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-slot-games__light-bg .page-slot-games__card {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-slot-games__light-bg .page-slot-games__card-title {
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--page-slot-games-text-secondary);
  flex-grow: 1;
}

.page-slot-games__light-bg .page-slot-games__card-text {
  color: #555555;
}

.page-slot-games a {
  color: var(--page-slot-games-primary-color);
  text-decoration: none;
}

.page-slot-games a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.page-slot-games__button-group {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  padding: 0; /* Remove padding here, content will add it */
  overflow: hidden;
}

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

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

.page-slot-games__hero-content {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: var(--page-slot-games-bg); /* Match body bg */
  position: relative;
  z-index: 1;
}

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

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

/* Why Choose Section */
.page-slot-games__why-choose .page-slot-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__why-choose .page-slot-games__feature-card .page-slot-games__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Popular Games Section */
.page-slot-games__popular-games .page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-slot-games__popular-games .page-slot-games__game-card .page-slot-games__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__popular-games .page-slot-games__card-title {
  font-size: 1.4em;
  color: var(--page-slot-games-gold);
}

/* How to Play Section */
.page-slot-games__how-to-play .page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-games__how-to-play .page-slot-games__step-card {
  text-align: center;
  align-items: center;
}

.page-slot-games__how-to-play .page-slot-games__step-card .page-slot-games__card-title {
  color: var(--page-slot-games-primary-color);
}

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

.page-slot-games__promotions .page-slot-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Mobile App Section */
.page-slot-games__mobile-app .page-slot-games__app-download {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-slot-games__mobile-app .page-slot-games__app-info {
  flex: 1;
}

.page-slot-games__mobile-app .page-slot-games__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__mobile-app .page-slot-games__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-slot-games__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #555555;
  position: relative;
  padding-left: 25px;
}

.page-slot-games__list li::before {
  content: '✔';
  color: var(--page-slot-games-primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-slot-games__list-highlight {
  color: #333333;
}

/* Tips & Strategies Section */
.page-slot-games__tips-strategies .page-slot-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-slot-games__faq-item {
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.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;
  background-color: #e8e8e8;
  color: var(--page-slot-games-primary-color);
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-item summary::marker {
  display: none;
}

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #555555;
  line-height: 1.7;
  /* For div-based FAQ, these would be toggled with JS */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

/* For <details> native behavior, max-height is not needed for answer */
.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  max-height: none; /* Override for native details behavior */
}

/* Conclusion Section */
.page-slot-games__conclusion .page-slot-games__section-title {
  color: var(--page-slot-games-gold);
}

.page-slot-games__conclusion .page-slot-games__section-description {
  color: var(--page-slot-games-text-secondary);
}

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

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

  .page-slot-games__mobile-app .page-slot-games__app-download {
    flex-direction: column;
    gap: 30px;
  }

  .page-slot-games__mobile-app .page-slot-games__app-info,
  .page-slot-games__mobile-app .page-slot-games__app-image-wrapper {
    text-align: center;
    width: 100%;
  }

  .page-slot-games__mobile-app .page-slot-games__app-image {
    width: auto;
    max-height: 400px;
  }
}

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

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

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

  .page-slot-games__hero-content {
    padding: 30px 15px;
  }

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

  .page-slot-games__hero-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; /* Ensure full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

  /* Image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__app-download,
  .page-slot-games__app-info,
  .page-slot-games__app-image-wrapper {
    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-top: 10px !important; /* body already handles header offset */
  }

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

  .page-slot-games__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px 20px;
  }
  .page-slot-games__list li {
    font-size: 1em;
  }
  .page-slot-games__card-title {
    font-size: 1.3em;
  }
  .page-slot-games__card-text {
    font-size: 0.95em;
  }
}