/* 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-background: #08160F;
  --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 {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-main); /* Default text color for the page */
  background-color: var(--page-slot-games-background); /* Default page background */
}

.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body already handles padding-top from header */
  color: var(--page-slot-games-text-main);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

.page-slot-games__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--page-slot-games-text-secondary);
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--page-slot-games-button-gradient);
  color: var(--page-slot-games-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-slot-games-glow-color);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-primary-color);
  color: #fff;
  border-color: var(--page-slot-games-primary-color);
  transform: translateY(-2px);
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
}

.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-slot-games-gold-color);
}

.page-slot-games__subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--page-slot-games-text-main);
}

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

.page-slot-games__introduction-section,
.page-slot-games__guide-section,
.page-slot-games__features-section,
.page-slot-games__conclusion-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__game-types-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-slot-games__feature-item {
  background-color: var(--page-slot-games-deep-green);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--page-slot-games-text-main);
  font-size: 1.05rem;
  border-left: 4px solid var(--page-slot-games-primary-color);
}

.page-slot-games__feature-item strong {
  color: var(--page-slot-games-gold-color);
}

.page-slot-games__game-type-grid,
.page-slot-games__promo-grid,
.page-slot-games__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-type-card,
.page-slot-games__promo-card,
.page-slot-games__guide-step-card,
.page-slot-games__feature-card {
  background-color: var(--page-slot-games-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--page-slot-games-divider-color);
}

.page-slot-games__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-slot-games-gold-color);
  margin-bottom: 10px;
}

.page-slot-games__card-description {
  font-size: 1rem;
  color: var(--page-slot-games-text-secondary);
  text-align: center;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-slot-games__guide-step-card .page-slot-games__btn-primary {
  margin-top: auto; /* Push button to the bottom */
}

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

.page-slot-games__feature-card {
  background-color: var(--page-slot-games-deep-green);
  border-left: 4px solid var(--page-slot-games-gold-color);
}

.page-slot-games__feature-card .page-slot-games__card-image {
  max-height: 200px;
}

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

.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__faq-item {
  background-color: var(--page-slot-games-background);
  border: 1px solid var(--page-slot-games-divider-color);
  border-radius: 8px;
  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: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-slot-games-deep-green);
  color: var(--page-slot-games-text-main);
  user-select: none;
  position: relative;
  list-style: none;
}

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

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--page-slot-games-gold-color);
}

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

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

.page-slot-games__faq-answer {
  padding: 0 25px 15px 25px;
  font-size: 1.05rem;
  color: var(--page-slot-games-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding: 0 25px 25px 25px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-slot-games__description {
    font-size: 1.1rem;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-slot-games__hero-image-wrapper {
    margin-bottom: 10px;
  }
  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-slot-games__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__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__introduction-section,
  .page-slot-games__game-types-section,
  .page-slot-games__guide-section,
  .page-slot-games__promotions-section,
  .page-slot-games__features-section,
  .page-slot-games__faq-section,
  .page-slot-games__conclusion-section {
    padding: 40px 0;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 25px;
  }
  .page-slot-games__subsection-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 20px;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__text-block {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  .page-slot-games__feature-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-slot-games__game-type-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__feature-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }
  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__game-type-card,
  .page-slot-games__promo-card,
  .page-slot-games__guide-step-card,
  .page-slot-games__feature-card {
    padding: 20px;
  }
  .page-slot-games__card-title {
    font-size: 1.2rem;
  }
  .page-slot-games__card-description {
    font-size: 0.95rem;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
  }
  .page-slot-games__cta-center {
    margin-top: 30px;
  }
}

/* Ensure all content area images are at least 200px */
.page-slot-games img {
  min-width: 200px;
  min-height: 200px;
}

/* Overrides for specific image types if needed, ensuring min-size */
.page-slot-games__hero-image {
  min-width: auto;
  min-height: auto;
}

.page-slot-games__card-image {
  min-width: 200px;
  min-height: 150px; /* Example, adjust as needed but keep >= 200px for smallest dimension */
}

/* Color contrast safety for text on various backgrounds */
.page-slot-games__dark-bg {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
}

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

/* Specific contrast fixes */
.page-slot-games__text-block, .page-slot-games__feature-item {
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__main-title, .page-slot-games__section-title, .page-slot-games__card-title, .page-slot-games__faq-qtext {
  color: var(--page-slot-games-gold-color);
}

.page-slot-games__description {
  color: var(--page-slot-games-text-secondary);
}

.page-slot-games__btn-primary {
  color: var(--page-slot-games-text-main);
}

.page-slot-games__btn-secondary {
  color: var(--page-slot-games-text-main);
  border-color: var(--page-slot-games-border-color);
}

.page-slot-games__btn-secondary:hover {
  color: #fff;
}