/* style/slot-games.css */

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

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

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

/* Section styling */
.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__why-choose-section,
.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

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

.page-slot-games__light-bg {
  background-color: #0d1e16; /* Slightly lighter than main bg for contrast */
  color: var(--color-text-main);
}

.page-slot-games__section-title {
  font-size: 2.8em;
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-slot-games__section-description,
.page-slot-games__section-text {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  position: relative; /* Changed from absolute to relative */
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
  margin-top: -100px; /* Pull up to overlap image slightly for visual flow */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.2em;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

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

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  margin: 10px;
}

.page-slot-games__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--color-glow);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin: 10px;
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--color-primary);
}

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

/* Content wrappers with image and text */
.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.page-slot-games__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-slot-games__text-block {
  flex: 1;
  min-width: 300px;
  color: var(--color-text-main);
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--color-text-secondary);
}

.page-slot-games__text-block h3 {
  color: var(--color-gold);
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.6em;
}

.page-slot-games__image-right,
.page-slot-games__image-left {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Feature list */
.page-slot-games__feature-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-slot-games__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.93"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--color-text-main);
  font-size: 1.05em;
}

.page-slot-games__feature-list li strong {
  color: var(--color-gold);
}

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

.page-slot-games__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-slot-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-slot-games__card-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-slot-games__card-text {
  font-size: 0.95em;
  color: var(--color-text-secondary);
  padding: 0 15px;
}

/* How to Play & Tips */
.page-slot-games__instruction-list,
.page-slot-games__tip-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-slot-games__instruction-list li,
.page-slot-games__tip-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: var(--color-text-main);
  padding-left: 25px;
  position: relative;
}

.page-slot-games__instruction-list li:before {
  content: counter(instruction-counter);
  counter-increment: instruction-counter;
  background-color: var(--color-primary);
  color: #ffffff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8em;
  font-weight: bold;
}

.page-slot-games__tip-list li:before {
  content: '💡'; /* Lightbulb emoji for tips */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--color-text-main);
  font-size: 1.15em;
  background-color: #1a3424; /* Slightly darker for question header */
  border-bottom: 1px solid var(--color-divider);
  list-style: none; /* For details/summary native styling */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  color: var(--color-gold);
  line-height: 1;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: 1px solid var(--color-divider);
}

.page-slot-games__faq-answer {
  padding: 15px 25px;
  color: var(--color-text-secondary);
  font-size: 1em;
  line-height: 1.6;
}

/* Call to Action Section */
.page-slot-games__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-slot-games__content-wrapper {
    flex-direction: column;
  }

  .page-slot-games__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-slot-games__image-right,
  .page-slot-games__image-left {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-slot-games__game-grid,
  .page-slot-games__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .page-slot-games__hero-description,
  .page-slot-games__section-description,
  .page-slot-games__section-text,
  .page-slot-games__text-block p,
  .page-slot-games__feature-list li,
  .page-slot-games__instruction-list li,
  .page-slot-games__tip-list li,
  .page-slot-games__card-text,
  .page-slot-games__faq-answer {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

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

  /* Container responsiveness for images, videos, buttons */
  .page-slot-games__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section,
  .page-slot-games__card,
  .page-slot-games__content-wrapper,
  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Adjust margins for full width buttons */
  }

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

  .page-slot-games__hero-content {
    margin-top: -50px; /* Adjust overlap for mobile */
    padding: 20px;
  }

  .page-slot-games__image-right,
  .page-slot-games__image-left {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-slot-games__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
  .page-slot-games__hero-content {
    padding: 15px;
  }
}