/* style/slot-games.css */

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

.page-slot-games {
  color: var(--af88-text-main);
  background-color: var(--af88-bg-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-slot-games__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--af88-divider);
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles header offset, small top padding for aesthetic */
  background-color: var(--af88-bg-dark);
  overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for content contrast */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly with image for visual flow */
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  color: var(--af88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__tagline {
  font-size: 1.2rem;
  color: var(--af88-text-secondary);
  margin-bottom: 30px;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--af88-gold);
  border: 2px solid var(--af88-gold);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* General Content Styles */
.page-slot-games__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--af88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__sub-title {
  font-size: 1.7rem;
  color: var(--af88-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-slot-games__list {
  list-style: disc;
  margin-left: 25px;
  color: var(--af88-text-secondary);
  margin-bottom: 20px;
}

.page-slot-games__list-item {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.page-slot-games__list-item strong {
  color: var(--af88-text-main);
}

/* Card Grid */
.page-slot-games__card-grid,
.page-slot-games__promo-grid,
.page-slot-games__feature-grid,
.page-slot-games__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-slot-games__card,
.page-slot-games__promo-card,
.page-slot-games__feature-item,
.page-slot-games__step-card {
  background-color: var(--af88-card-bg);
  border: 1px solid var(--af88-border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px; /* Minimum height for cards */
}

.page-slot-games__card:hover,
.page-slot-games__promo-card:hover,
.page-slot-games__feature-item:hover,
.page-slot-games__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--af88-glow);
}

.page-slot-games__card-image,
.page-slot-games__promo-image,
.page-slot-games__feature-icon,
.page-slot-games__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 150px; /* Enforce minimum image size */
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__card-title,
.page-slot-games__promo-title,
.page-slot-games__feature-title,
.page-slot-games__step-title {
  font-size: 1.4rem;
  color: var(--af88-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__card-text,
.page-slot-games__promo-text,
.page-slot-games__feature-description,
.page-slot-games__step-description {
  font-size: 1rem;
  color: var(--af88-text-secondary);
  line-height: 1.5;
}

/* Promotions Section */
.page-slot-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Security Section */
.page-slot-games__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-slot-games__security-image {
  flex-shrink: 0;
  width: 500px;
  height: 375px;
}

.page-slot-games__security-text-block {
  flex-grow: 1;
}

/* How To Play Section */
.page-slot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--af88-button-gradient);
  color: var(--af88-text-main);
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding-bottom: 80px;
}

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

.page-slot-games__faq-item {
  background-color: var(--af88-card-bg);
  border: 1px solid var(--af88-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-slot-games__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--af88-glow);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--af88-text-main);
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--af88-gold);
  transition: transform 0.3s ease;
}

.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: 1.05rem;
  color: var(--af88-text-secondary);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -100px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
  }
  .page-slot-games__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__security-image {
    width: 100%;
    height: auto;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-slot-games__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
  .page-slot-games__tagline {
    font-size: 1rem;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-slot-games__section {
    padding: 40px 0;
  }
  .page-slot-games__container {
    padding: 0 15px;
  }
  .page-slot-games__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 30px;
  }
  .page-slot-games__sub-title {
    font-size: 1.5rem;
  }
  .page-slot-games__text-block,
  .page-slot-games__list-item,
  .page-slot-games__card-text,
  .page-slot-games__promo-text,
  .page-slot-games__feature-description,
  .page-slot-games__step-description,
  .page-slot-games__faq-answer p {
    font-size: 15px;
  }
  .page-slot-games__card-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__feature-grid,
  .page-slot-games__step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__card,
  .page-slot-games__promo-card,
  .page-slot-games__feature-item,
  .page-slot-games__step-card {
    padding: 20px;
  }
  .page-slot-games__card-image,
  .page-slot-games__promo-image,
  .page-slot-games__feature-icon,
  .page-slot-games__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }
  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px 15px;
  }

  /* Ensure all containers handle overflow on mobile */
  .page-slot-games__section,
  .page-slot-games__container,
  .page-slot-games__card,
  .page-slot-games__promo-card,
  .page-slot-games__feature-item,
  .page-slot-games__step-card,
  .page-slot-games__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}