/* style/slot-games.css */

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

/* General Page Styles */
.page-slot-games {
  background-color: var(--blue88-bg);
  color: var(--blue88-text-main); /* Ensure light text on dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.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: var(--blue88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-slot-games__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--blue88-text-secondary);
}

.page-slot-games__text-block p,
.page-slot-games__text-block li {
  color: var(--blue88-text-main);
  margin-bottom: 1em;
}

.page-slot-games__text-block ol,
.page-slot-games__text-block ul {
  margin-left: 20px;
  padding-left: 0;
}

.page-slot-games__text-block strong {
  color: var(--blue88-gold);
}

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

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  margin-top: -100px; /* Pull content up slightly over image for visual flow */
}

.page-slot-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--blue88-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: var(--blue88-button-gradient);
  color: #ffffff; /* White text on dark gradient */
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--blue88-glow);
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: var(--blue88-primary); /* Primary color text */
  border: 2px solid var(--blue88-primary);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--blue88-primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-slot-games__btn-play {
  background: var(--blue88-button-gradient);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

.page-slot-games__btn-play:hover {
  box-shadow: 0 0 10px var(--blue88-glow);
  transform: translateY(-1px);
}

/* Cards */
.page-slot-games__card {
  background-color: var(--blue88-card-bg);
  border: 1px solid var(--blue88-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--blue88-text-main); /* Light text on dark card background */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-slot-games__card-text {
  color: var(--blue88-text-secondary);
  font-size: 0.95em;
}

/* Sections */
.page-slot-games__intro-section,
.page-slot-games__how-to-play,
.page-slot-games__faq-section,
.page-slot-games__cta-final {
  padding: 80px 0;
  background-color: var(--blue88-bg);
}

.page-slot-games__advantages-section,
.page-slot-games__popular-games,
.page-slot-games__bonuses,
.page-slot-games__security-section {
  padding: 80px 0;
  background-color: var(--blue88-deep-green);
}

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

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

.page-slot-games__game-card .page-slot-games__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Content with Image */
.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-slot-games__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-slot-games__content-wrapper .page-slot-games__content-area,
.page-slot-games__content-wrapper .page-slot-games__image-wrapper {
  flex: 1;
}

.page-slot-games__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
  object-fit: cover;
}

/* Video Section */
.page-slot-games__video-section {
  position: relative;
  padding: 80px 0;
  padding-top: 10px; /* small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--blue88-bg);
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%; /* Ensure desktop width is 100% */
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  box-sizing: border-box;
}

.page-slot-games__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--blue88-text-main);
  text-align: left;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--blue88-card-bg);
  border-bottom: 1px solid var(--blue88-border);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--blue88-gold);
  list-style: none; /* For details/summary */
}

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

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

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

.page-slot-games__faq-answer {
  padding: 20px 25px;
  background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter card bg for answer */
  color: var(--blue88-text-secondary);
  font-size: 0.95em;
}

/* Details element specific styling */
details.page-slot-games__faq-item[open] > summary.page-slot-games__faq-question {
  border-bottom: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }

  .page-slot-games__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

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

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

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__intro-section,
  .page-slot-games__advantages-section,
  .page-slot-games__how-to-play,
  .page-slot-games__bonuses,
  .page-slot-games__security-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final {
    padding: 50px 0;
  }

  .page-slot-games__advantages-grid,
  .page-slot-games__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .page-slot-games__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-slot-games__image-wrapper img,
  .page-slot-games__game-card .page-slot-games__game-image,
  .page-slot-games__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important;
  }

  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers holding images/videos/buttons are responsive */
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__content-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Add horizontal padding to main content sections on mobile */
  .page-slot-games__intro-section .page-slot-games__container,
  .page-slot-games__advantages-section .page-slot-games__container,
  .page-slot-games__popular-games .page-slot-games__container,
  .page-slot-games__how-to-play .page-slot-games__container,
  .page-slot-games__bonuses .page-slot-games__container,
  .page-slot-games__security-section .page-slot-games__container,
  .page-slot-games__faq-section .page-slot-games__container,
  .page-slot-games__cta-final .page-slot-games__container {
    padding-left: 15px;
    padding-right: 15px;
  }

}