/* style/slot-games.css */

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

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

/* Fixed header spacing - body already handles padding-top */
.page-slot-games__hero-section,
.page-slot-games__video-section {
  padding-top: 10px; /* Small decorative top padding */
}

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

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
  box-sizing: border-box;
}

.page-slot-games__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--mb66-gold); /* Gold color for main titles */
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--mb66-text-secondary); /* Secondary text color */
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mb66-text-main);
  overflow: hidden;
  padding: 0;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 80px; /* Adjust based on header height, ensuring no overlap */
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--mb66-gold); /* Gold color for H1 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  color: var(--mb66-text-main);
}

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

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

.page-slot-games__btn-primary {
  background: var(--mb66-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--mb66-glow);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--mb66-gold); /* Gold text for secondary button */
  border: 2px solid var(--mb66-gold);
}

.page-slot-games__btn-secondary:hover {
  background: var(--mb66-gold);
  color: var(--mb66-background);
  box-shadow: 0 0 15px var(--mb66-gold);
}

.page-slot-games__btn-play {
  background: var(--mb66-primary-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
}

.page-slot-games__btn-play:hover {
  background: var(--mb66-secondary-color);
}

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

.page-slot-games__card,
.page-slot-games__promo-card,
.page-slot-games__game-card {
  background-color: var(--mb66-card-bg); /* #11271B - Dark card background */
  border: 1px solid var(--mb66-border);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--mb66-text-main); /* Light text for dark card */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-slot-games__card-title,
.page-slot-games__promo-title,
.page-slot-games__game-title {
  font-size: 1.5rem;
  color: var(--mb66-gold); /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.page-slot-games__card-description,
.page-slot-games__promo-description {
  font-size: 1rem;
  color: var(--mb66-text-secondary);
  text-align: center;
  flex-grow: 1;
}

.page-slot-games__game-provider {
  font-size: 0.9rem;
  color: var(--mb66-text-secondary);
  margin-bottom: 15px;
  text-align: center;
}

.page-slot-games__game-card .page-slot-games__btn-play {
  margin-top: 20px;
  width: auto;
}

.page-slot-games__view-all-button-wrapper {
  margin-top: 40px;
  text-align: center;
}

/* How to Play Section */
.page-slot-games__how-to-play .page-slot-games__section-title,
.page-slot-games__conclusion .page-slot-games__section-title {
  color: var(--mb66-gold);
}

.page-slot-games__how-to-play .page-slot-games__text-block {
  color: var(--mb66-text-main);
}

.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
  text-align: left;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
  background-color: var(--mb66-card-bg);
  border: 1px solid var(--mb66-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--mb66-text-main);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-slot-games__list-title {
  font-size: 1.3rem;
  color: var(--mb66-gold);
  margin-bottom: 10px;
}

.page-slot-games__ordered-list li p,
.page-slot-games__unordered-list li p {
  font-size: 1rem;
  color: var(--mb66-text-secondary);
}

.page-slot-games__ordered-list li a,
.page-slot-games__unordered-list li a {
  color: var(--mb66-glow);
  text-decoration: underline;
}

.page-slot-games__ordered-list li a:hover,
.page-slot-games__unordered-list li a:hover {
  color: var(--mb66-gold);
}

/* Promotions Section */
.page-slot-games__promo-note {
  font-size: 0.95rem;
  color: var(--mb66-text-secondary);
  margin-top: 40px;
  text-align: center;
}

.page-slot-games__promo-note a {
  color: var(--mb66-glow);
  text-decoration: underline;
}

.page-slot-games__promo-note a:hover {
  color: var(--mb66-gold);
}

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

.page-slot-games__faq-item {
  background-color: var(--mb66-card-bg);
  border: 1px solid var(--mb66-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--mb66-gold);
  background-color: var(--mb66-deep-green); /* Darker green for summary background */
  border-bottom: 1px solid var(--mb66-divider);
}

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

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

.page-slot-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mb66-glow);
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--mb66-text-secondary);
  line-height: 1.7;
  background-color: var(--mb66-card-bg);
}

.page-slot-games__faq-answer p {
  margin-bottom: 0;
  color: var(--mb66-text-secondary);
}

/* Conclusion Section */
.page-slot-games__conclusion {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: 60px;
    padding: 30px;
  }
  .page-slot-games__section {
    padding: 50px 15px;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-slot-games__text-block {
    font-size: 1rem;
  }
  .page-slot-games__cta-buttons {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__hero-section {
    min-height: 500px;
  }
  .page-slot-games__hero-content {
    margin-top: 40px;
    padding: 20px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .page-slot-games__hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
  .page-slot-games__section {
    padding: 40px 10px;
  }
  .page-slot-games__container {
    padding: 0 10px;
  }
  .page-slot-games__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card,
  .page-slot-games__promo-card,
  .page-slot-games__game-card {
    padding: 20px;
  }
  .page-slot-games__card-image,
  .page-slot-games__promo-image,
  .page-slot-games__game-image {
    max-height: 200px;
  }
  .page-slot-games__card-title,
  .page-slot-games__promo-title,
  .page-slot-games__game-title {
    font-size: 1.3rem;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .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__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
    flex-direction: column !important;
    gap: 10px;
    overflow: hidden !important;
  }
  .page-slot-games__ordered-list,
  .page-slot-games__unordered-list {
    margin-top: 20px;
  }
  .page-slot-games__ordered-list li,
  .page-slot-games__unordered-list li,
  .page-slot-games__faq-item {
    padding: 15px;
  }
  .page-slot-games__list-title {
    font-size: 1.1rem;
  }
  .page-slot-games__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
  /* Mobile image and video 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__hero-image-wrapper,
  .page-slot-games__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-slot-games__video-section {
    padding-top: 10px !important;
  }
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}