/* style/slot-machines.css */

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

.page-slot-machines {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--uin88-text-main-color); /* Default text color for the page */
  background-color: var(--uin88-bg-color); /* Inherited from body, but explicitly set for clarity */
}

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

.page-slot-machines__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  color: var(--uin88-text-main-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-machines__sub-title {
  font-size: clamp(1.5em, 4vw, 2em);
  color: var(--uin88-text-main-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-machines__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--uin88-text-secondary-color);
}

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

.page-slot-machines__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--uin88-text-secondary-color);
}

.page-slot-machines__list-item::before {
  content: '•';
  color: var(--uin88-glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

/* Hero Section */
.page-slot-machines__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
}

.page-slot-machines__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit max height for image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-slot-machines__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 15px;
}

.page-slot-machines__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-50px); /* Lift content slightly over image */
  z-index: 10;
}

.page-slot-machines__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  color: var(--uin88-gold-color);
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-slot-machines__subtitle {
  font-size: clamp(1.1em, 2.5vw, 1.4em);
  color: var(--uin88-text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-machines__btn-primary,
.page-slot-machines__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-machines__btn-primary {
  background: var(--uin88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-machines__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-slot-machines__btn-secondary {
  background: transparent;
  color: var(--uin88-glow-color);
  border: 2px solid var(--uin88-glow-color);
}

.page-slot-machines__btn-secondary:hover {
  background: var(--uin88-glow-color);
  color: var(--uin88-bg-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-slot-machines__intro-section {
  padding: 60px 0;
  background-color: var(--uin88-bg-color);
}

/* Games Section */
.page-slot-machines__games-section {
  padding: 60px 0;
  background-color: var(--uin88-card-bg-color);
}

.page-slot-machines__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-slot-machines__game-card {
  background: var(--uin88-deep-green-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--uin88-border-color);
}

.page-slot-machines__game-card:hover {
  transform: translateY(-5px);
}

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

.page-slot-machines__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--uin88-gold-color);
}

.page-slot-machines__card-description {
  font-size: 0.95em;
  color: var(--uin88-text-secondary-color);
  margin-bottom: 20px;
  min-height: 80px;
}

.page-slot-machines__card-button {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 25px;
}

/* Features Section */
.page-slot-machines__features-section {
  padding: 60px 0;
  background-color: var(--uin88-bg-color);
}

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

.page-slot-machines__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background: var(--uin88-deep-green-color);
  border: 1px solid var(--uin88-border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-slot-machines__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-slot-machines__feature-title {
  font-size: 1.3em;
  color: var(--uin88-text-main-color);
  margin-bottom: 10px;
}

.page-slot-machines__feature-description {
  font-size: 0.9em;
  color: var(--uin88-text-secondary-color);
}

/* Guide Section */
.page-slot-machines__guide-section {
  padding: 60px 0;
  background-color: var(--uin88-card-bg-color);
}

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

.page-slot-machines__step-item {
  background: var(--uin88-deep-green-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--uin88-border-color);
  position: relative;
}

.page-slot-machines__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--uin88-button-gradient);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-slot-machines__step-item h3 {
  margin-top: 25px;
  font-size: 1.4em;
  color: var(--uin88-gold-color);
}

.page-slot-machines__step-item p {
  margin-bottom: 20px;
}

/* Promotions Section */
.page-slot-machines__promotions-section {
  padding: 60px 0;
  background-color: var(--uin88-bg-color);
}

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

.page-slot-machines__promo-card {
  background: var(--uin88-deep-green-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--uin88-border-color);
}

.page-slot-machines__promo-card:hover {
  transform: translateY(-5px);
}

/* Tips Section */
.page-slot-machines__tips-section {
  padding: 60px 0;
  background-color: var(--uin88-card-bg-color);
}

.page-slot-machines__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-slot-machines__tips-list .page-slot-machines__list-item {
  background: var(--uin88-deep-green-color);
  border-radius: 15px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid var(--uin88-border-color);
  padding-left: 60px; /* Adjust for icon */
}

.page-slot-machines__tips-list .page-slot-machines__list-item::before {
  content: '💡'; /* Custom icon */
  font-size: 1.5em;
  left: 20px;
  top: 25px;
  color: var(--uin88-gold-color);
}

.page-slot-machines__tips-list .page-slot-machines__list-item h3 {
  color: var(--uin88-gold-color);
  margin-top: 0;
  font-size: 1.4em;
}

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

/* Mobile Section */
.page-slot-machines__mobile-section {
  padding: 60px 0;
  background-color: var(--uin88-bg-color);
}

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

.page-slot-machines__mobile-item {
  background: var(--uin88-deep-green-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--uin88-border-color);
}

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

/* Security Section */
.page-slot-machines__security-section {
  padding: 60px 0;
  background-color: var(--uin88-card-bg-color);
}

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

.page-slot-machines__security-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background: var(--uin88-deep-green-color);
  border: 1px solid var(--uin88-border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* FAQ Section */
.page-slot-machines__faq-section {
  padding: 60px 0;
  background-color: var(--uin88-bg-color);
}

.page-slot-machines__faq-list {
  margin-top: 30px;
}

.page-slot-machines__faq-item {
  background: var(--uin88-deep-green-color);
  border: 1px solid var(--uin88-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-slot-machines__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--uin88-text-main-color);
  background: var(--uin88-deep-green-color);
  list-style: none; /* For details/summary */
}

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

.page-slot-machines__faq-qtext {
  flex-grow: 1;
}

.page-slot-machines__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--uin88-glow-color);
  transition: transform 0.3s ease;
}

.page-slot-machines__faq-item[open] .page-slot-machines__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-machines__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--uin88-text-secondary-color);
  border-top: 1px solid var(--uin88-divider-color);
}

.page-slot-machines__faq-item:not([open]) .page-slot-machines__faq-answer {
  display: none;
}

/* Conclusion Section */
.page-slot-machines__conclusion-section {
  padding: 60px 0;
  background-color: var(--uin88-card-bg-color);
  text-align: center;
}

/* General text colors based on background type */
.page-slot-machines__dark-bg {
  background-color: var(--uin88-card-bg-color);
  color: var(--uin88-text-main-color);
}

.page-slot-machines__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-machines__text-main {
  color: var(--uin88-text-main-color);
}

.page-slot-machines__text-secondary {
  color: var(--uin88-text-secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-machines__hero-content {
    transform: translateY(0);
  }
  .page-slot-machines__hero-section {
    padding-bottom: 30px;
  }
}

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

  .page-slot-machines__section-title {
    font-size: 2em;
  }

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

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

  .page-slot-machines__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to buttons container */
  }

  .page-slot-machines__btn-primary,
  .page-slot-machines__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-slot-machines img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-machines__hero-image-wrapper,
  .page-slot-machines__game-card,
  .page-slot-machines__feature-item,
  .page-slot-machines__step-item,
  .page-slot-machines__promo-card,
  .page-slot-machines__mobile-item,
  .page-slot-machines__security-item,
  .page-slot-machines__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-slot-machines__tips-list .page-slot-machines__list-item {
    padding-left: 50px;
  }

  .page-slot-machines__tips-list .page-slot-machines__list-item::before {
    left: 15px;
  }

  .page-slot-machines__hero-section,
  .page-slot-machines__intro-section,
  .page-slot-machines__games-section,
  .page-slot-machines__features-section,
  .page-slot-machines__guide-section,
  .page-slot-machines__promotions-section,
  .page-slot-machines__tips-section,
  .page-slot-machines__mobile-section,
  .page-slot-machines__security-section,
  .page-slot-machines__faq-section,
  .page-slot-machines__conclusion-section {
    padding: 30px 0;
  }

  .page-slot-machines__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile too */
  }
}

@media (max-width: 480px) {
  .page-slot-machines__main-title {
    font-size: 1.8em;
  }

  .page-slot-machines__subtitle {
    font-size: 0.9em;
  }

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

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

/* Ensure content images meet minimum size requirements */
.page-slot-machines__game-card .page-slot-machines__card-image,
.page-slot-machines__feature-item .page-slot-machines__feature-icon,
.page-slot-machines__promo-card .page-slot-machines__card-image,
.page-slot-machines__mobile-item img,
.page-slot-machines__security-item img {
  min-width: 200px;
  min-height: 200px;
}

/* CSS for video elements - Not used in this page, but included for completeness if video was present */
.page-slot-machines video,
.page-slot-machines__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-slot-machines__video-section,
.page-slot-machines__video-container,
.page-slot-machines__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-slot-machines video,
  .page-slot-machines__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-machines__video-section,
  .page-slot-machines__video-container,
  .page-slot-machines__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-slot-machines__video-section {
    padding-top: 10px !important;
  }
  
  .page-slot-machines__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}