/* style/slot-games.css */

/* Variables */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Dark Blue/Charcoal */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

/* Base styles for the page content */
.page-slot-games {
  background-color: var(--background-dark); /* Inherits from body if not set, but explicit for safety */
  color: var(--text-light);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slot-games__section-description {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-slot-games__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-slot-games__text-content {
  flex: 1;
}

.page-slot-games__text-content h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games__text-content p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-light);
}

.page-slot-games__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

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

/* Hero Section */
.page-slot-games__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0a0a0a 100%);
  padding: 80px 0 60px;
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-games__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-slot-games__hero-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* CTA Buttons */
.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-slot-games__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-slot-games__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* About Section */
.page-slot-games__about-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

/* Game Grid Section */
.page-slot-games__games-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.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: var(--card-background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__game-link {
  display: block;
  text-decoration: none;
  color: var(--text-light);
  padding-bottom: 20px;
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color-dark);
}

.page-slot-games__game-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-slot-games__game-excerpt {
  font-size: 15px;
  margin: 0 15px 15px;
  color: var(--text-light);
  opacity: 0.8;
}

.page-slot-games__game-play-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-link:hover .page-slot-games__game-play-button {
  background: #e6c200;
}

.page-slot-games__all-games-cta {
  text-align: center;
  margin-top: 60px;
}

/* Promotion Section */
.page-slot-games__promo-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

/* Guide Section */
.page-slot-games__guide-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

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

.page-slot-games__step-item {
  background: var(--card-background-dark);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-slot-games__step-item:hover {
  transform: translateY(-5px);
}

.page-slot-games__step-icon-wrapper {
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__step-icon {
  width: 100px; /* Larger icons as per requirement */
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-slot-games__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-games__step-item p {
  font-size: 15px;
  color: var(--text-light);
}

.page-slot-games__final-cta {
  text-align: center;
  margin-top: 60px;
}

/* Safety Section */
.page-slot-games__safety-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

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

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(180deg);
  color: var(--text-light);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color-dark);
  border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-slot-games__faq-answer p {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
}

/* Final CTA Section */
.page-slot-games__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(45deg, var(--secondary-color) 0%, #0a0a0a 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 40px;
  }

  .page-slot-games__section-title {
    font-size: 30px;
  }

  .page-slot-games__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    padding-top: 100px; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-slot-games__hero-title {
    font-size: 32px;
  }

  .page-slot-games__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-slot-games__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-slot-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-slot-games__content-wrapper {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .page-slot-games__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-slot-games__image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-slot-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__feature-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-slot-games__games-section, .page-slot-games__promo-section, .page-slot-games__guide-section, .page-slot-games__safety-section, .page-slot-games__faq-section, .page-slot-games__final-cta-section {
    padding: 60px 0;
  }

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

  .page-slot-games__game-image {
    height: 180px;
  }

  .page-slot-games__game-title {
    font-size: 20px;
  }

  .page-slot-games__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__step-icon {
    width: 80px;
    height: 80px;
  }

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

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

  .page-slot-games__faq-question h3 {
    font-size: 16px;
  }

  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all sections and their children are responsive */
  .page-slot-games__hero-section,
  .page-slot-games__about-section,
  .page-slot-games__games-section,
  .page-slot-games__promo-section,
  .page-slot-games__guide-section,
  .page-slot-games__safety-section,
  .page-slot-games__faq-section,
  .page-slot-games__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-slot-games__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__step-icon-wrapper img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}