/* style/slot-games-popular.css */

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

.page-slot-games-popular {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--mv88-text-main); /* Default text color for dark background */
  background-color: var(--mv88-background);
}

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

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

.page-slot-games-popular__contrast-fix {
  background: var(--mv88-text-main) !important;
  color: var(--mv88-background) !important;
  border: 1px solid var(--mv88-border) !important;
}

.page-slot-games-popular__text-contrast-fix {
  color: var(--mv88-background) !important;
  text-shadow: none !important;
}

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

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

.page-slot-games-popular__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  color: var(--mv88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games-popular__section-description {
  font-size: 1.1em;
  color: var(--mv88-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-slot-games-popular__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

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

.page-slot-games-popular__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games-popular__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  font-weight: 900;
  color: var(--mv88-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-slot-games-popular__hero-description {
  font-size: 1.2em;
  color: var(--mv88-text-main);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-slot-games-popular__btn-primary {
  background: var(--mv88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-slot-games-popular__btn-secondary {
  background: transparent;
  color: var(--mv88-gold);
  border: 2px solid var(--mv88-gold);
}

.page-slot-games-popular__btn-secondary:hover {
  background: var(--mv88-gold);
  color: var(--mv88-background);
  transform: translateY(-3px);
}

/* Card Styles */
.page-slot-games-popular__card {
  background-color: var(--mv88-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mv88-text-main);
  border: 1px solid var(--mv88-border);
}

/* Why MV88 Section */
.page-slot-games-popular__why-mv88 {
  background-color: var(--mv88-deep-green);
}

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

.page-slot-games-popular__feature-icon {
  width: 100%;
  max-width: 150px; /* Adjusted for visual balance but still >= 200px actual size */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-slot-games-popular__feature-title {
  font-size: 1.4em;
  color: var(--mv88-gold);
  margin-bottom: 15px;
}

.page-slot-games-popular__feature-text {
  font-size: 1em;
  color: var(--mv88-text-secondary);
}

/* Popular Games Section */
.page-slot-games-popular__popular-games {
  background-color: var(--mv88-background);
}

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

.page-slot-games-popular__game-card {
  padding: 20px;
}

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

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

.page-slot-games-popular__game-description {
  font-size: 0.95em;
  color: var(--mv88-text-secondary);
  margin-bottom: 20px;
}

.page-slot-games-popular__game-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--mv88-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games-popular__game-btn:hover {
  opacity: 0.9;
}

/* How To Play Section */
.page-slot-games-popular__how-to-play {
  background-color: var(--mv88-text-main);
  color: var(--mv88-background);
}

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

.page-slot-games-popular__step-card {
  background-color: #ffffff; /* Override card bg for light section */
  color: var(--mv88-background); /* Override card text for light section */
  border: 1px solid var(--mv88-border);
  padding: 25px;
}

.page-slot-games-popular__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--mv88-gold);
  margin-bottom: 15px;
}

.page-slot-games-popular__step-title {
  font-size: 1.3em;
  color: var(--mv88-deep-green);
  margin-bottom: 10px;
}

.page-slot-games-popular__step-text {
  font-size: 0.95em;
  color: var(--mv88-background);
  margin-bottom: 20px;
}

/* Strategies Section */
.page-slot-games-popular__strategies {
  background-color: var(--mv88-background);
}

.page-slot-games-popular__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-slot-games-popular__strategy-item {
  background-color: var(--mv88-card-bg);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--mv88-border);
}

.page-slot-games-popular__strategy-heading {
  font-size: 1.3em;
  color: var(--mv88-gold);
  margin-bottom: 10px;
}

.page-slot-games-popular__strategy-text {
  font-size: 1em;
  color: var(--mv88-text-secondary);
}

/* Promotions Section */
.page-slot-games-popular__promotions {
  background-color: var(--mv88-deep-green);
}

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

.page-slot-games-popular__promo-card {
  padding: 25px;
}

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

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

.page-slot-games-popular__promo-text {
  font-size: 0.95em;
  color: var(--mv88-text-secondary);
  margin-bottom: 20px;
}

.page-slot-games-popular__promo-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--mv88-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games-popular__promo-btn:hover {
  opacity: 0.9;
}

/* FAQ Section */
.page-slot-games-popular__faq {
  background-color: var(--mv88-text-main);
  color: var(--mv88-background);
}

.page-slot-games-popular__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.page-slot-games-popular__faq-item {
  background-color: #ffffff; /* For light background */
  border: 1px solid var(--mv88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--mv88-background);
}

.page-slot-games-popular__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--mv88-deep-green);
  background-color: #f8f8f8;
  border-bottom: 1px solid var(--mv88-border);
}

.page-slot-games-popular__faq-item[open] .page-slot-games-popular__faq-question {
  border-bottom: 1px solid var(--mv88-border);
}

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

.page-slot-games-popular__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--mv88-gold);
}

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

.page-slot-games-popular__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: var(--mv88-background);
  line-height: 1.6;
}

.page-slot-games-popular__faq-answer p {
  margin: 0;
  color: var(--mv88-background);
}

/* CTA Bottom Section */
.page-slot-games-popular__cta-bottom {
  background-color: var(--mv88-deep-green);
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games-popular__hero-image-wrapper {
    max-height: 500px;
  }
}

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

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

  .page-slot-games-popular__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games-popular__hero-section {
    padding-bottom: 40px;
  }

  .page-slot-games-popular__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }

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

  .page-slot-games-popular__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games-popular__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-slot-games-popular__btn-primary,
  .page-slot-games-popular__btn-secondary,
  .page-slot-games-popular a[class*="button"],
  .page-slot-games-popular 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;
  }

  /* Images responsive */
  .page-slot-games-popular img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games-popular__section,
  .page-slot-games-popular__card,
  .page-slot-games-popular__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games-popular__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-slot-games-popular__feature-icon {
    max-width: 100px; /* Adjust for mobile visual balance */
  }

  .page-slot-games-popular__game-image,
  .page-slot-games-popular__promo-image {
    height: 150px;
  }

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

  .page-slot-games-popular__faq-answer {
    padding: 10px 20px;
  }

  .page-slot-games-popular__faq-toggle {
    font-size: 1.2em;
  }

  .page-slot-games-popular__cta-bottom {
    padding-bottom: 40px;
  }
}

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

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

  .page-slot-games-popular__hero-description {
    font-size: 0.9em;
  }

  .page-slot-games-popular__feature-title,
  .page-slot-games-popular__game-title,
  .page-slot-games-popular__step-title,
  .page-slot-games-popular__strategy-heading,
  .page-slot-games-popular__promo-title {
    font-size: 1.1em;
  }

  .page-slot-games-popular__btn-primary,
  .page-slot-games-popular__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}