/* style/slot-games.css */

/* Custom Colors from palette */
:root {
  --bi88-green-main: #11A84E;
  --bi88-green-secondary: #22C768;
  --bi88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --bi88-card-bg: #11271B;
  --bi88-background: #08160F;
  --bi88-text-main: #F2FFF6;
  --bi88-text-secondary: #A7D9B8;
  --bi88-border: #2E7A4E;
  --bi88-glow: #57E38D;
  --bi88-gold: #F2C14E;
  --bi88-divider: #1E3A2A;
  --bi88-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-slot-games {
  background-color: var(--bi88-background); /* #08160F */
  color: var(--bi88-text-main); /* #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section spacing and general container */
.page-slot-games__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

/* Background colors based on palette */
.page-slot-games__dark-bg {
  background-color: var(--bi88-background); /* #08160F */
  color: var(--bi88-text-main); /* #F2FFF6 */
}

.page-slot-games__card-bg {
  background-color: var(--bi88-card-bg); /* #11271B */
  color: var(--bi88-text-main); /* #F2FFF6 */
}

/* Headings */
.page-slot-games__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--bi88-text-main); /* #F2FFF6 */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-slot-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--bi88-gold); /* #F2C14E */
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--bi88-gold); /* #F2C14E */
}

.page-slot-games__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-slot-games__feature-title, .page-slot-games__step-title, .page-slot-games__tip-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--bi88-green-secondary); /* #22C768 */
}

/* Text colors */
.page-slot-games__text-block, .page-slot-games__description, .page-slot-games__card-description, .page-slot-games__feature-description, .page-slot-games__step-description, .page-slot-games__tip-description {
  color: var(--bi88-text-main); /* #F2FFF6 */
}

.page-slot-games__text-secondary {
  color: var(--bi88-text-secondary); /* #A7D9B8 */
}

.page-slot-games p {
  margin-bottom: 1em;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
  padding: 10px 0 80px 0; /* Small top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it spans full width */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--bi88-glow); /* #57E38D */
}

.page-slot-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--bi88-button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: #ffffff; /* Contrast with green gradient */
  box-shadow: 0 5px 20px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--bi88-green-secondary); /* #22C768 */
  border-color: var(--bi88-green-secondary); /* #22C768 */
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--bi88-green-secondary); /* #22C768 */
  color: var(--bi88-background); /* #08160F */
  transform: translateY(-3px);
}

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

.page-slot-games__game-card, .page-slot-games__promo-card {
  background-color: var(--bi88-card-bg); /* #11271B */
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bi88-border); /* #2E7A4E */
}

.page-slot-games__game-card:hover, .page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--bi88-glow); /* #57E38D */
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
}

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

.page-slot-games__feature-item {
  background-color: var(--bi88-card-bg); /* #11271B */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--bi88-border); /* #2E7A4E */
}

.page-slot-games__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--bi88-glow)); /* #57E38D */
}

/* How To Play Steps */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-slot-games__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px dashed var(--bi88-divider); /* #1E3A2A */
}

.page-slot-games__step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-slot-games__step-number {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--bi88-gold); /* #F2C14E */
  line-height: 1;
  flex-shrink: 0;
}

.page-slot-games__step-content {
  flex-grow: 1;
}

/* Tips List */
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games__tip-item {
  background-color: var(--bi88-card-bg); /* #11271B */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bi88-border); /* #2E7A4E */
}

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

.page-slot-games__faq-item {
  background-color: var(--bi88-card-bg); /* #11271B */
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--bi88-border); /* #2E7A4E */
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--bi88-green-secondary); /* #22C768 */
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
  background-color: var(--bi88-deep-green); /* #0A4B2C */
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--bi88-gold); /* #F2C14E */
}

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  color: var(--bi88-text-secondary); /* #A7D9B8 */
  line-height: 1.7;
}

/* Final CTA */
.page-slot-games__final-cta {
  padding-bottom: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__section {
    padding: 60px 0;
  }

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

  .page-slot-games__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }
}

@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: 60px;
  }

  .page-slot-games__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  
  .page-slot-games__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__game-grid, .page-slot-games__promo-grid, .page-slot-games__features-grid, .page-slot-games__tips-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__card-image {
    height: 180px;
  }

  .page-slot-games__feature-item, .page-slot-games__game-card, .page-slot-games__promo-card, .page-slot-games__tip-item {
    padding: 20px;
  }

  .page-slot-games__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .page-slot-games__step-number {
    margin-bottom: 10px;
  }

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

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

  /* Image responsiveness for all images */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers holding images */
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__feature-item,
  .page-slot-games__container,
  .page-slot-games__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-slot-games__intro-section .page-slot-games__container,
  .page-slot-games__why-choose-us .page-slot-games__container,
  .page-slot-games__how-to-play .page-slot-games__container,
  .page-slot-games__tips-section .page-slot-games__container,
  .page-slot-games__promotions-section .page-slot-games__container,
  .page-slot-games__faq-section .page-slot-games__container,
  .page-slot-games__final-cta .page-slot-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-slot-games__section-title {
    font-size: clamp(1.6em, 5.5vw, 2em);
  }

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