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

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the main content area */
  background-color: var(--background-dark); /* Assuming body background is dark from 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: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-slot-games__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-slot-games__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-slot-games a {
  color: var(--glow-color);
  text-decoration: none;
}

.page-slot-games a:hover {
  text-decoration: underline;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.page-slot-games__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  max-width: 250px;
}

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

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-dark);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-slot-games__introduction-section,
.page-slot-games__popular-games-section,
.page-slot-games__tips-section,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-slot-games__introduction-section .page-slot-games__section-title,
.page-slot-games__popular-games-section .page-slot-games__section-title,
.page-slot-games__tips-section .page-slot-games__section-title,
.page-slot-games__faq-section .page-slot-games__section-title {
  color: #000000;
}

.page-slot-games__introduction-section .page-slot-games__text-block,
.page-slot-games__popular-games-section .page-slot-games__text-block,
.page-slot-games__tips-section .page-slot-games__text-block,
.page-slot-games__faq-section .page-slot-games__text-block {
  color: #333333;
}

.page-slot-games__introduction-section a,
.page-slot-games__popular-games-section a,
.page-slot-games__tips-section a,
.page-slot-games__faq-section a {
  color: var(--primary-color);
}

.page-slot-games__features-section,
.page-slot-games__guide-section,
.page-slot-games__promotions-section,
.page-slot-games__video-section,
.page-slot-games__cta-final-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-slot-games__features-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__feature-card,
.page-slot-games__promo-card,
.page-slot-games__game-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
}

.page-slot-games__feature-card:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__feature-icon,
.page-slot-games__promo-thumbnail,
.page-slot-games__game-thumbnail {
  width: 100%; /* Ensure images take full width of card */
  max-width: 400px; /* Max width for consistency */
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

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

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

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

.page-slot-games__game-card .page-slot-games__btn-secondary {
  margin-top: 20px;
}

.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__guide-list li {
  background-color: var(--card-bg);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__guide-list li strong {
  color: var(--glow-color);
}

.page-slot-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-dark);
}

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

.page-slot-games__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

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

.page-slot-games__faq-list {
  margin-top: 30px;
}

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

.page-slot-games__faq-item[open] {
  background-color: var(--deep-green);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

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

.page-slot-games__cta-final-section {
  padding: 100px 20px;
  text-align: center;
  background-color: var(--background-dark);
}

/* Ensure images meet minimum size requirements */
.page-slot-games img {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-slot-games__description,
  .page-slot-games__text-block,
  .page-slot-games__card-text,
  .page-slot-games__guide-list li,
  .page-slot-games__faq-answer p {
    font-size: 0.95em;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  .page-slot-games__btn-center {
    max-width: 100%;
  }

  .page-slot-games__hero-section,
  .page-slot-games__introduction-section,
  .page-slot-games__features-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__guide-section,
  .page-slot-games__tips-section,
  .page-slot-games__promotions-section,
  .page-slot-games__video-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final-section {
    padding: 40px 0;
  }

  .page-slot-games__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__feature-icon,
  .page-slot-games__promo-thumbnail,
  .page-slot-games__game-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__feature-card,
  .page-slot-games__promo-card,
  .page-slot-games__game-card {
    padding: 20px;
  }

  .page-slot-games__features-grid,
  .page-slot-games__game-list,
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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