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

/* Variables for consistency */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content, body background is handled by shared.css */
.page-slot-games-popular-slots {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-slot-games-popular-slots__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games-popular-slots__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games-popular-slots__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games-popular-slots__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-slot-games-popular-slots__btn-primary,
.page-slot-games-popular-slots__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-slot-games-popular-slots__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-slot-games-popular-slots__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-slot-games-popular-slots__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: none;
}

.page-slot-games-popular-slots__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
}

/* Hero Section */
.page-slot-games-popular-slots__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
}

.page-slot-games-popular-slots__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-slot-games-popular-slots__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-slot-games-popular-slots__hero-content {
  max-width: 900px;
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games-popular-slots__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-slot-games-popular-slots__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-slot-games-popular-slots__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

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

.page-slot-games-popular-slots__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-slot-games-popular-slots__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-slot-games-popular-slots__feature-description {
  color: var(--text-secondary);
  font-size: 1em;
}

/* Top Slots Section */
.page-slot-games-popular-slots__top-slots-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

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

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

.page-slot-games-popular-slots__slot-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-slot-games-popular-slots__slot-description {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games-popular-slots__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* How to Play Section */
.page-slot-games-popular-slots__how-to-play-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.page-slot-games-popular-slots__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-slot-games-popular-slots__steps-list .page-slot-games-popular-slots__list-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  position: relative;
  counter-increment: step-counter;
  padding-left: 80px;
}

.page-slot-games-popular-slots__steps-list .page-slot-games-popular-slots__list-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 30px;
  background: var(--button-gradient);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-slot-games-popular-slots__list-title {
  font-size: 1.6em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-slot-games-popular-slots__list-item p {
  color: var(--text-secondary);
  font-size: 1em;
}

/* Tips Section */
.page-slot-games-popular-slots__tips-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-slot-games-popular-slots__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-slot-games-popular-slots__tips-list .page-slot-games-popular-slots__list-item {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
}

/* Promotions Section */
.page-slot-games-popular-slots__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.page-slot-games-popular-slots__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-slot-games-popular-slots__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games-popular-slots__promo-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-slot-games-popular-slots__promo-description {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-slot-games-popular-slots__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-slot-games-popular-slots__faq-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-slot-games-popular-slots__faq-item {
  text-align: left;
  padding: 0; /* Override card padding for details */
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.page-slot-games-popular-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

.page-slot-games-popular-slots__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-slot-games-popular-slots__faq-item summary {
  list-style: none; /* Hide default marker for Firefox */
}

.page-slot-games-popular-slots__faq-toggle {
  font-size: 1.5em;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

.page-slot-games-popular-slots__faq-answer {
  padding: 20px 30px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
  background-color: var(--card-bg);
}

/* Bottom CTA Section */
.page-slot-games-popular-slots__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--bg-color);
}

.page-slot-games-popular-slots__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Global image responsiveness */
.page-slot-games-popular-slots img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-slot-games-popular-slots__main-title {
    font-size: clamp(2em, 4.5vw, 3.2em);
  }

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

  .page-slot-games-popular-slots__hero-description {
    font-size: 1.1em;
  }

  .page-slot-games-popular-slots__promo-cards,
  .page-slot-games-popular-slots__features-grid,
  .page-slot-games-popular-slots__slot-grid,
  .page-slot-games-popular-slots__tips-list {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-slot-games-popular-slots {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games-popular-slots__container {
    padding: 0 15px;
  }

  .page-slot-games-popular-slots__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }

  .page-slot-games-popular-slots__hero-content {
    margin-top: 30px;
  }

  .page-slot-games-popular-slots__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-slot-games-popular-slots__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-slot-games-popular-slots__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games-popular-slots__features-grid,
  .page-slot-games-popular-slots__slot-grid,
  .page-slot-games-popular-slots__tips-list {
    grid-template-columns: 1fr;
  }

  .page-slot-games-popular-slots__promo-cards {
    grid-template-columns: 1fr;
  }

  .page-slot-games-popular-slots__card {
    padding: 20px;
  }

  .page-slot-games-popular-slots__btn-primary,
  .page-slot-games-popular-slots__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-slot-games-popular-slots__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-slot-games-popular-slots__steps-list .page-slot-games-popular-slots__list-item {
    padding-left: 60px;
    padding-right: 20px;
  }

  .page-slot-games-popular-slots__steps-list .page-slot-games-popular-slots__list-item::before {
    left: 15px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }

  .page-slot-games-popular-slots__list-title {
    font-size: 1.3em;
  }

  .page-slot-games-popular-slots__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-slot-games-popular-slots__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-slot-games-popular-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games-popular-slots__section,
  .page-slot-games-popular-slots__card,
  .page-slot-games-popular-slots__container,
  .page-slot-games-popular-slots__hero-image-wrapper,
  .page-slot-games-popular-slots__slot-image,
  .page-slot-games-popular-slots__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}