/* style/slot-games.css */
/* 
  Body background color from shared.css is var(--background-color).
  Custom colors provided suggest a dark theme:
  Background: #08160F
  Card B G: #11271B
  Text Main: #F2FFF6
  Text Secondary: #A7D9B8
*/

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default to light text for dark background */
  background-color: var(--background-color, #08160F); /* Default dark background */
}

.page-slot-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: var(--background-color, #08160F);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold, #F2C14E); /* Using gold for main title */
  margin-bottom: 20px;
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

.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;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-slot-games__btn-secondary:hover {
  background-color: var(--border, #2E7A4E);
  color: #ffffff;
}

/* General Section Styling */
.page-slot-games__intro-section,
.page-slot-games__why-choose-us,
.page-slot-games__types-section,
.page-slot-games__how-to-play,
.page-slot-games__tips-strategies,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-bottom {
  padding: 80px 0;
}

.page-slot-games__section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5em;
  color: var(--gold, #F2C14E);
  line-height: 1.3;
}

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

/* Dark Background Sections */
.page-slot-games__dark-section {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

/* Light Background Sections (using default values for now, as theme is dark) */
.page-slot-games__light-bg {
  background-color: var(--card-bg, #11271B); /* Using card bg for contrast */
  color: var(--text-main, #F2FFF6);
}

/* Feature Grid */
.page-slot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__feature-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
}

.page-slot-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 5px;
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

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

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

.page-slot-games__game-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

.page-slot-games__game-card:hover {
  transform: translateY(-10px);
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Enforce min size */
}

.page-slot-games__game-card .page-slot-games__card-title {
  padding: 20px 15px 0;
  font-size: 1.3em;
}

.page-slot-games__game-card .page-slot-games__card-description {
  padding: 0 15px 20px;
  font-size: 0.95em;
}

/* Step List / Bullet List */
.page-slot-games__step-list,
.page-slot-games__bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-slot-games__list-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--glow, #57E38D);
}

.page-slot-games__list-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

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

.page-slot-games__list-description a {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

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

/* Promotions Section */
.page-slot-games__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__promo-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__promo-card:hover {
  transform: translateY(-10px);
}

.page-slot-games__promo-card .page-slot-games__btn-primary {
  margin-top: 20px;
}

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-slot-games__faq-item summary {
  list-style: none;
}

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

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

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

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

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

.page-slot-games__faq-answer a {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 2.8em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

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

  .page-slot-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }

  .page-slot-games__hero-image-wrapper {
    max-height: 300px;
  }

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

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

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Limit button group width */
  }

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

  .page-slot-games__intro-section,
.page-slot-games__why-choose-us,
.page-slot-games__types-section,
.page-slot-games__how-to-play,
.page-slot-games__tips-strategies,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-bottom {
    padding: 50px 0;
  }

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

  .page-slot-games__text-block {
    font-size: 1em;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__game-grid,
  .page-slot-games__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-slot-games__feature-icon,
  .page-slot-games__game-thumbnail {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-slot-games__list-title {
    font-size: 1.2em;
  }

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

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

/* Images and Video Responsive (General for all content images/videos) */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games video,
  .page-slot-games__video {
    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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video container mobile adaptation */
  .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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Video section mobile top padding */
  .page-slot-games__video-section {
    padding-top: 10px !important;
  }

  /* Button mobile adaptation */
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button container mobile adaptation */
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-slot-games__cta-buttons {
    flex-direction: column;
  }
}