/* style/slot-games.css */

/* Base styles for the slot-games page */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color, will be #F2FFF6 */
  background-color: var(--background-color); /* Default background color, will be #08160F */
}

/* Color contrast classes */
.page-slot-games__dark-bg {
  background-color: var(--background-color); /* #08160F */
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-slot-games__light-bg {
  background-color: #ffffff; /* Using a light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-slot-games__card {
  background-color: var(--card-bg-color); /* #11271B */
  color: var(--text-main-color); /* #F2FFF6 */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  text-align: center;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-slot-games__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary-color); /* #A7D9B8 */
}

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

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

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

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

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--text-main-color); /* #F2FFF6 */
  border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-slot-games__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* #2E7A4E with opacity */
  transform: translateY(-2px);
}

/* Video Section */
.page-slot-games__video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  text-align: center;
}

.page-slot-games__video-container {
  width: 100%; /* Desktop must have width: 100% */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #000;
  border-radius: 8px;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.page-slot-games__video-cta {
  margin-top: 20px;
}

/* Content Area */
.page-slot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-slot-games__text-main {
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-slot-games__text-secondary {
  color: var(--text-secondary-color); /* #A7D9B8 */
}

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

.page-slot-games__feature-card {
  text-align: center;
}

.page-slot-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Example size, ensuring >200px */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main-color); /* For dark card bg */
}

.page-slot-games__feature-description {
  color: var(--text-secondary-color); /* For dark card bg */
}

/* Game Types Grid */
.page-slot-games__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__type-card {
  text-align: center;
}

.page-slot-games__type-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-slot-games__type-description {
  color: var(--text-secondary-color);
}

/* Popular Games Grid */
.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__game-card {
  text-align: center;
  overflow: hidden;
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-slot-games__game-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-main-color); /* For light card bg */
}

.page-slot-games__game-provider {
  font-size: 0.9em;
  color: var(--text-secondary-color); /* For light card bg */
  margin-bottom: 15px;
}

.page-slot-games__play-button {
  width: auto;
  display: inline-block;
  padding: 10px 20px;
}

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

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

.page-slot-games__promo-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-slot-games__promo-description {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

/* Tips List */
.page-slot-games__tips-list,
.page-slot-games__responsibility-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-slot-games__list-item {
  background-color: var(--card-bg-color); /* #11271B */
  color: var(--text-main-color); /* #F2FFF6 */
  border-left: 5px solid var(--glow-color); /* #57E38D */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__list-item strong {
  color: var(--gold-color); /* #F2C14E */
}

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

.page-slot-games__step-card {
  text-align: center;
}

.page-slot-games__step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main-color); /* For light card bg */
}

.page-slot-games__step-description {
  color: var(--text-secondary-color); /* For light card bg */
  margin-bottom: 20px;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-slot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main-color); /* #F2FFF6 */
  background-color: var(--card-bg-color); /* #11271B */
  border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color); /* #57E38D */
}

.page-slot-games__faq-answer {
  padding: 15px 25px;
  background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter than card bg */
  color: var(--text-secondary-color); /* #A7D9B8 */
  font-size: 1em;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

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

  .page-slot-games__hero-section,
  .page-slot-games__video-section,
  .page-slot-games__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Images */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__feature-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__step-card,
  .page-slot-games__card,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Videos */
  .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 {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-slot-games__feature-icon {
    max-width: 150px; /* Adjust for smaller screens but still >200px */
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .page-slot-games__text-block {
    font-size: 0.95em;
  }

  .page-slot-games__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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