/* style/slot-games.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.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;
  color: #ffffff; /* Ensure titles are visible on dark backgrounds */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439; /* Brand primary color */
  border-radius: 2px;
}

.page-slot-games__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-slot-games__text-block p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-slot-games__hero-section .page-slot-games__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding-top: 20px; /* Adjust as needed, after header offset */
  padding-bottom: 40px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-slot-games__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFFFF; /* Adjusted to white for WCAG AA contrast with #C30808 */
  border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Section specific styles */
.page-slot-games__intro-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: 80px 0;
}

/* Background color variants for sections */
.page-slot-games__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body background for contrast */
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #1a1a1a; /* Dark gray for contrast with dark-bg sections */
  color: #ffffff;
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__section-subtitle,
.page-slot-games__light-bg .page-slot-games__text-block p,
.page-slot-games__light-bg .page-slot-games__benefits-item p,
.page-slot-games__light-bg .page-slot-games__step-item p,
.page-slot-games__light-bg .page-slot-games__faq-answer {
  color: #ffffff;
}

/* Grid Layouts */
.page-slot-games__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

/* Image styles */
.page-slot-games__image-wrapper {
  text-align: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  /* No filter allowed */
}

/* Benefits List */
.page-slot-games__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__benefits-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-slot-games__benefits-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__benefits-title {
  font-size: 1.5em;
  color: #FFFFFF; /* Adjusted to white for WCAG AA contrast on dark background */
  margin-top: 0;
  margin-bottom: 10px;
}

/* Game Type Cards */
.page-slot-games__game-type-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-slot-games__game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__card-title {
  font-size: 1.4em;
  color: #FFFFFF; /* Adjusted to white for WCAG AA contrast on dark background */
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-slot-games__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* How To Play Steps */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
}

.page-slot-games__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #017439;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: #FFFFFF; /* Adjusted to white for WCAG AA contrast on dark background */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__step-item p {
  color: #f0f0f0;
}
.page-slot-games__step-item p a {
  color: #FFFF00; /* Custom link color for login/register, passes contrast */
  text-decoration: underline;
}
.page-slot-games__step-item p a:hover {
  color: #C30808;
}

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

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF; /* Adjusted to white for WCAG AA contrast on dark background */
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* For details/summary default marker */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-slot-games__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

/* Call To Action Section */
.page-slot-games__cta-section {
  text-align: center;
  padding: 60px 0;
}

.page-slot-games__section-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-slot-games__grid-2-cols .page-slot-games__image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 500px;
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-subtitle {
    font-size: 1em;
  }
  .page-slot-games__intro-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: 40px 0;
  }

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

  /* Mobile image/video/button responsive rules */
  .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__game-type-card,
  .page-slot-games__hero-section,
  .page-slot-games__cta-buttons,
  .page-slot-games__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__game-types-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure content area images are not too small */
.page-slot-games__content-area img,
.page-slot-games__text-block img,
.page-slot-games__grid-2-cols img,
.page-slot-games__game-type-card img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific button colors from custom palette */
.page-slot-games__btn-primary {
  background-color: #C30808;
  color: #FFFFFF; /* Adjusted to white for WCAG AA contrast with #C30808 */
  border-color: #C30808;
}

.page-slot-games__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #017439;
  border-color: #017439;
}

.page-slot-games__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Link colors in text */
.page-slot-games a {
  color: #017439; /* Default link color, ensure contrast */
  text-decoration: underline;
}
.page-slot-games a:hover {
  color: #02a052; /* Slightly brighter on hover */
}

/* Ensure image colors are not altered by CSS filter */
.page-slot-games img {
  filter: none !important; /* Absolutely no filter */
}