/* style/slot-games.css */

/* Variables */
:root {
  --page-slot-games-primary-color: #2F6BFF;
  --page-slot-games-secondary-color: #6FA3FF;
  --page-slot-games-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --page-slot-games-card-bg: #FFFFFF;
  --page-slot-games-background: #F4F7FB;
  --page-slot-games-text-main: #1F2D3D;
  --page-slot-games-text-dark: #000000;
  --page-slot-games-border-color: #D6E2FF;
  --page-slot-games-glow-color: #A5C4FF;
}

/* Base styles for the page content */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-slot-games-text-main); /* Default text color for light backgrounds */
  background-color: var(--page-slot-games-background); /* Default light background */
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background-color: var(--page-slot-games-primary-color); /* Darker background for hero image */
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  width: 100%;
  background-color: var(--page-slot-games-card-bg); /* Light background for text */
  color: var(--page-slot-games-text-main);
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-slot-games__main-title {
  color: var(--page-slot-games-text-dark);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- General Section Styles --- */
.page-slot-games__section-title {
  font-size: 2.2em;
  color: var(--page-slot-games-text-dark);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-slot-games__content-area {
  padding: 60px 20px;
}

.page-slot-games__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--page-slot-games-text-main);
  text-align: justify;
}

/* --- Intro Section --- */
.page-slot-games__intro-section {
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main);
}

/* --- Why Choose Section --- */
.page-slot-games__why-choose-section {
  background-color: var(--page-slot-games-primary-color);
  color: #ffffff; /* White text on primary background */
  padding-bottom: 60px;
}

.page-slot-games__why-choose-section .page-slot-games__section-title {
  color: #ffffff;
}

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

.page-slot-games__card {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images in cards are not too small */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--page-slot-games-text-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 30px;
}

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

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

.page-slot-games__step-card {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-title {
  font-size: 1.6em;
  color: var(--page-slot-games-primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-slot-games__step-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__step-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--page-slot-games-text-main);
}

/* --- Popular Games Section --- */
.page-slot-games__popular-games-section {
  background-color: var(--page-slot-games-primary-color);
  color: #ffffff;
}

.page-slot-games__popular-games-section .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__game-card {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-text-main);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-slot-games__game-title {
  font-size: 1.4em;
  color: var(--page-slot-games-primary-color);
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  color: var(--page-slot-games-text-main);
  padding: 0 15px 20px;
}

/* --- Tips Section --- */
.page-slot-games__tips-section {
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__tips-list li {
  background-color: var(--page-slot-games-card-bg);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--page-slot-games-text-main);
}

.page-slot-games__tips-list li p {
  margin: 0;
  font-size: 1.05em;
  color: var(--page-slot-games-text-main);
}

.page-slot-games__tips-list li strong {
  color: var(--page-slot-games-primary-color);
  font-weight: 600;
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
  background-color: var(--page-slot-games-primary-color);
  color: #ffffff;
}

.page-slot-games__faq-section .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--page-slot-games-text-dark);
  background-color: #ffffff;
  border-bottom: 1px solid var(--page-slot-games-border-color);
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
  background-color: #f9f9f9;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--page-slot-games-text-dark);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-slot-games-primary-color);
}

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--page-slot-games-text-main);
  background-color: #fcfcfc;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: none;
}

/* --- Contact CTA Section --- */
.page-slot-games__contact-cta {
  background-color: var(--page-slot-games-background);
  color: var(--page-slot-games-text-main);
  text-align: center;
}

/* --- Buttons --- */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  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; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: var(--page-slot-games-card-bg);
  color: var(--page-slot-games-primary-color);
  border: 2px solid var(--page-slot-games-primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--page-slot-games-primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* --- Responsive Design --- */

/* Default image responsive */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-slot-games__hero-content {
    padding: 30px 15px;
  }

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

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-slot-games__content-area {
    padding: 40px 15px;
  }

  .page-slot-games__grid,
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card,
  .page-slot-games__step-card,
  .page-slot-games__game-card {
    padding: 20px;
  }

  .page-slot-games__card-title,
  .page-slot-games__step-title,
  .page-slot-games__game-title {
    font-size: 1.3em;
  }

  .page-slot-games__game-image {
    height: 180px; /* Adjust for mobile */
  }

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

  .page-slot-games__faq-answer {
    padding: 15px;
  }

  /* Mobile image specific styles */
  .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-section,
  .page-slot-games__hero-content,
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__intro-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-slot-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure content area images are not too small on mobile */
  .page-slot-games__card-image,
  .page-slot-games__step-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* Color contrast specific classes (intelligent choice based on background) */
.page-slot-games__dark-bg {
  background: var(--page-slot-games-primary-color);
  color: #ffffff;
}

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

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__card-title {
  color: #ffffff;
}

.page-slot-games__dark-bg .page-slot-games__text-block {
  color: rgba(255, 255, 255, 0.9);
}

/* Specific adjustment for FAQ question text on light background */
.page-slot-games__faq-question .page-slot-games__faq-qtext {
  color: var(--page-slot-games-text-dark);
}

/* Ensure all images maintain original color */
.page-slot-games img {
  filter: none; /* Absolutely no CSS filters to change image colors */
}