/* style/slot-games.css */

/* General styles for the slot-games page */
.page-slot-games {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Page background */
  line-height: 1.6;
  font-size: 16px;
}

/* Color variables based on custom colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient-start: #2AD16F;
  --button-gradient-end: #13994A;
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-top: 10px; /* Small decorative top padding */
}

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

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

.page-slot-games__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  background: var(--background); /* Use page background for hero content */
  color: var(--text-main);
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color); /* Highlight H1 with gold */
  line-height: 1.2;
}

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

/* CTA Buttons */
.page-slot-games__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.page-slot-games__cta-buttons--center {
  justify-content: center;
}

.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;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
  color: var(--text-main); /* White text on dark button */
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, var(--button-gradient-end) 0%, var(--button-gradient-start) 100%);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--button-gradient-start); /* Green text on transparent button */
  border: 2px solid var(--button-gradient-start);
}

.page-slot-games__btn-secondary:hover {
  background: var(--button-gradient-start);
  color: var(--text-main);
  box-shadow: 0 0 15px var(--glow-color);
}

/* Sections and Containers */
.page-slot-games__section {
  padding: 60px 0;
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

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

.page-slot-games__highlight {
  color: var(--gold-color);
  font-weight: bold;
}

.page-slot-games__highlight-dark { /* For light background sections */
  color: var(--deep-green);
  font-weight: bold;
}

.page-slot-games__image-content {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Card Grid */
.page-slot-games__card-section {
  padding-bottom: 80px;
}

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

.page-slot-games__card {
  background: var(--card-bg); /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-slot-games__light-bg-card { /* Card on light background sections */
  background: #ffffff;
  color: #333333; /* Dark text for light card */
  border: 1px solid var(--border-color);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--gold-color);
}

.page-slot-games__light-bg-card .page-slot-games__card-title {
  color: var(--deep-green); /* Dark title for light card */
}

.page-slot-games__card-text {
  font-size: 0.95em;
  margin: 0 20px 20px;
  flex-grow: 1; /* Allow text to take available space */
  color: var(--text-secondary);
}

.page-slot-games__light-bg-card .page-slot-games__card-text {
  color: #555555; /* Darker secondary text for light card */
}

.page-slot-games__card .page-slot-games__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Lists */
.page-slot-games__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-slot-games__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-slot-games__list li::before {
  content: '★'; /* Star bullet point */
  position: absolute;
  left: 0;
  color: var(--gold-color);
  font-size: 1.2em;
  line-height: 1;
}

/* Light background section styles */
.page-slot-games__light-bg {
  background-color: #f5f5f5; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: var(--deep-green); /* Dark title for light background */
  text-shadow: none;
}

.page-slot-games__text-contrast-fix {
  color: #333333; /* Ensure dark text on light backgrounds */
}

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

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

.page-slot-games__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--gold-color);
  background: var(--deep-green); /* Darker green for summary background */
  border-bottom: 1px solid var(--divider-color);
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-slot-games__faq-answer {
  padding: 20px;
  font-size: 0.95em;
  color: var(--text-secondary);
}

.page-slot-games__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-slot-games__cta-final {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--primary-color) 100%);
}

.page-slot-games__cta-container {
  max-width: 900px;
}

.page-slot-games__cta-final .page-slot-games__section-title {
  color: var(--text-main);
  text-shadow: none;
}

.page-slot-games__cta-final .page-slot-games__text-block {
  color: var(--text-main);
  font-size: 1.1em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    padding: 30px 15px;
  }

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

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

  .page-slot-games__section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 15px;
  }

  /* Mobile responsive images */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure image takes full width */
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive image containers */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Add padding to containers for mobile to prevent content touching edges */
  .page-slot-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Body handles --header-offset */
  }

  .page-slot-games__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-slot-games__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button group */
  }

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

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

  .page-slot-games__card-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
  }

  .page-slot-games__card-image {
    height: 180px; /* Adjust card image height */
  }

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

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

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

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

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.4em, 8vw, 2em);
  }

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