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

/* Body background from shared.css: var(--background-color) which is #08160F (dark) */
/* Text colors will be light for contrast */

.page-slot-games-popular-titles {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-slot-games-popular-titles__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0A4B2C; /* Deep Green */
}

.page-slot-games-popular-titles__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

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

.page-slot-games-popular-titles__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal */
  position: relative;
  z-index: 2;
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E; /* Border */
}

.page-slot-games-popular-titles__main-title {
  color: #F2C14E; /* Gold */
  font-size: clamp(2em, 4vw, 3.5em); /* H1 font size constraint */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-slot-games-popular-titles__description {
  color: #F2FFF6; /* Text Main */
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-slot-games-popular-titles__btn-primary,
.page-slot-games-popular-titles__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  min-width: 180px;
}

.page-slot-games-popular-titles__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games-popular-titles__btn-secondary {
  background: #ffffff;
  color: #11A84E; /* Main color */
  border: 2px solid #11A84E; /* Main color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games-popular-titles__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-slot-games-popular-titles__btn-small {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 15px;
  box-sizing: border-box;
}

.page-slot-games-popular-titles__btn-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* General Section Styles */
.page-slot-games-popular-titles__intro-section,
.page-slot-games-popular-titles__featured-games-section,
.page-slot-games-popular-titles__why-choose-section,
.page-slot-games-popular-titles__new-games-section,
.page-slot-games-popular-titles__faq-section,
.page-slot-games-popular-titles__cta-bottom-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-slot-games-popular-titles__section-title {
  color: #F2C14E; /* Gold */
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-slot-games-popular-titles__text-block {
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-slot-games-popular-titles__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-slot-games-popular-titles__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-slot-games-popular-titles__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-slot-games-popular-titles__game-title {
  color: #F2C14E; /* Gold */
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  min-height: 3em;
}

.page-slot-games-popular-titles__game-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-slot-games-popular-titles__game-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-slot-games-popular-titles__view-all {
  text-align: center;
  margin-top: 50px;
}

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

.page-slot-games-popular-titles__feature-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-slot-games-popular-titles__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(87, 227, 141, 0.5)); /* Glow */
}

.page-slot-games-popular-titles__feature-title {
  color: #F2FFF6; /* Text Main */
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-slot-games-popular-titles__feature-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* FAQ Section */
.page-slot-games-popular-titles__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games-popular-titles__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular-titles__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-slot-games-popular-titles__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games-popular-titles__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-slot-games-popular-titles__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow */
}

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

.page-slot-games-popular-titles__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-slot-games-popular-titles__faq-answer p {
  margin: 0;
}

/* CTA Bottom Section */
.page-slot-games-popular-titles__cta-bottom-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games-popular-titles__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-slot-games-popular-titles__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games-popular-titles__hero-section {
    padding-bottom: 40px;
  }
  .page-slot-games-popular-titles__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-slot-games-popular-titles__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-slot-games-popular-titles__description {
    font-size: 1em;
  }
  .page-slot-games-popular-titles__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-slot-games-popular-titles__btn-primary,
  .page-slot-games-popular-titles__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games-popular-titles__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-slot-games-popular-titles__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-slot-games-popular-titles__intro-section,
  .page-slot-games-popular-titles__featured-games-section,
  .page-slot-games-popular-titles__why-choose-section,
  .page-slot-games-popular-titles__new-games-section,
  .page-slot-games-popular-titles__faq-section,
  .page-slot-games-popular-titles__cta-bottom-section {
    padding: 40px 0;
  }
  .page-slot-games-popular-titles img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games-popular-titles__container,
  .page-slot-games-popular-titles__game-grid,
  .page-slot-games-popular-titles__game-carousel,
  .page-slot-games-popular-titles__features-grid,
  .page-slot-games-popular-titles__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-slot-games-popular-titles__game-card,
  .page-slot-games-popular-titles__feature-item {
    width: 100%;
  }
  .page-slot-games-popular-titles__game-image {
    height: 180px; /* Adjust height for mobile cards */
  }
  .page-slot-games-popular-titles__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-slot-games-popular-titles__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-slot-games-popular-titles__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }
  .page-slot-games-popular-titles__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-slot-games-popular-titles__section-title {
    font-size: 1.5em;
  }
  .page-slot-games-popular-titles__btn-primary,
  .page-slot-games-popular-titles__btn-secondary {
    min-width: unset;
  }
  .page-slot-games-popular-titles__game-image {
    height: 150px;
  }
  .page-slot-games-popular-titles__feature-icon {
    width: 80px;
    height: 80px;
  }
}