/* style/slot-games.css */

/* Base styles for the page content, inherits from shared.css body background */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default light text for dark background */
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--background, #08160F);
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Image above text */
  flex-direction: column;
}

.page-slot-games__hero-content-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain content width */
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-slot-games__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-text-block {
  text-align: center;
  padding: 20px 0;
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-slot-games__hero-description {
  font-size: 1.15em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--border, #2E7A4E);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
  background-color: rgba(var(--main-color-rgb, 17, 168, 78), 0.1);
  color: var(--gold, #F2C14E);
  border-color: var(--gold, #F2C14E);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-slot-games__introduction-section,
.page-slot-games__why-choose-section,
.page-slot-games__how-to-play-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__dark-section {
  background-color: var(--card-bg, #11271B); /* Darker background for contrast */
}

.page-slot-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F2C14E);
  line-height: 1.3;
}

.page-slot-games__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

.page-slot-games__highlight {
  color: var(--text-main, #F2FFF6);
  font-weight: 700;
}

.page-slot-games__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* 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.page-slot-games__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__feature-card.page-slot-games__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

.page-slot-games__card-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
}

/* Steps List */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__list-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__list-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

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

.page-slot-games__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary:hover {
  background-color: rgba(var(--main-color-rgb, 17, 168, 78), 0.1);
}

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

.page-slot-games__faq-qtext {
  flex-grow: 1;
  color: var(--gold, #F2C14E);
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--main-color, #11A84E);
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
  animation: fadein 0.3s ease-out;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Link styling */
.page-slot-games__link {
  color: var(--main-color, #11A84E);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-slot-games__link:hover {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-slot-games__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-slot-games__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-slot-games__introduction-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  /* Mobile image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (if any) */
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video/image/button containers mobile adaptation */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Specific mobile top padding for hero/video */
  .page-slot-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important; /* Full width buttons on mobile */
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-slot-games__feature-card.page-slot-games__card {
    padding: 25px;
  }

  .page-slot-games__list-item {
    padding: 25px;
  }

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

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

/* Color Contrast Enforcement (using custom colors) */
.page-slot-games {
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
}

.page-slot-games__section-title {
  color: var(--gold, #F2C14E); /* Title color */
}

.page-slot-games__paragraph,
.page-slot-games__card-description,
.page-slot-games__faq-answer p {
  color: var(--text-secondary, #A7D9B8); /* Secondary text color */
}

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

.page-slot-games__card,
.page-slot-games__list-item,
.page-slot-games__faq-item {
  background-color: var(--card-bg, #11271B); /* Card background for dark theme */
  border-color: var(--border, #2E7A4E); /* Card border color */
}

.page-slot-games__faq-qtext,
.page-slot-games__list-title,
.page-slot-games__card-title {
  color: var(--gold, #F2C14E); /* Question/Title color */
}

.page-slot-games__faq-toggle {
  color: var(--main-color, #11A84E); /* Toggle icon color */
}

.page-slot-games__btn-primary {
  color: #ffffff; /* Primary button text always white */
}

.page-slot-games__btn-secondary {
  color: var(--main-color, #11A84E); /* Secondary button text uses main color */
}

.page-slot-games__link {
  color: var(--main-color, #11A84E); /* Link color */
}
.page-slot-games__link:hover {
  color: var(--gold, #F2C14E); /* Link hover color */
}