/* style/slot-machines.css */

/* General Page Styles */
.page-slot-machines {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  line-height: 1.6;
  background-color: var(--body-bg-color);
}

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

.page-slot-machines__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px; /* Adjust for fixed header */
}

.page-slot-machines__subtitle {
  font-size: 20px;
  color: var(--text-color-medium);
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-machines__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-slot-machines__text-center {
  text-align: center;
}

/* Colors based on intelligent contrast */
.page-slot-machines__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-slot-machines__dark-section .page-slot-machines__section-title,
.page-slot-machines__dark-section .page-slot-machines__subtitle,
.page-slot-machines__dark-section .page-slot-machines__text-block {
  color: #ffffff;
}

.page-slot-machines__light-bg {
  background-color: #f9f9f9; /* Slightly off-white for contrast */
  color: var(--text-color-dark);
}

.page-slot-machines__light-bg .page-slot-machines__section-title {
  color: var(--primary-color);
}

/* Buttons */
.page-slot-machines__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-slot-machines__btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
}

.page-slot-machines__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-slot-machines__btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.page-slot-machines__btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-slot-machines__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

.page-slot-machines__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  border-radius: 10px;
}

/* Hero Banner Section */
.page-slot-machines__hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0 60px; /* Top padding for fixed header */
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.page-slot-machines__hero-content {
  flex: 1;
  padding-left: 20px;
  max-width: 600px;
  z-index: 1;
}

.page-slot-machines__main-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--accent-color);
}

.page-slot-machines__hero-content .page-slot-machines__subtitle {
  color: #f0f0f0;
  text-align: left;
  font-size: 22px;
  margin-bottom: 30px;
}

.page-slot-machines__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.page-slot-machines__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 20px;
}

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

/* Introduction Section */
.page-slot-machines__introduction {
  padding: 60px 0;
}

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

.page-slot-machines__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-slot-machines__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-machines__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-slot-machines__feature-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Game Showcase Section */
.page-slot-machines__game-showcase {
  padding: 60px 0;
}

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

.page-slot-machines__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--accent-color);
}

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

.page-slot-machines__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-slot-machines__game-info {
  padding: 25px;
  color: var(--text-color-dark);
}

.page-slot-machines__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-machines__game-description {
  font-size: 15px;
  margin-bottom: 20px;
}

/* Guide Section */
.page-slot-machines__guide {
  padding: 60px 0;
}

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

.page-slot-machines__guide-list li {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--accent-color);
  color: var(--text-color-dark);
}

.page-slot-machines__guide-step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-machines__guide-list p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color-dark);
}

/* Promotions Section */
.page-slot-machines__promotions {
  padding: 60px 0;
}

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

.page-slot-machines__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-slot-machines__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-slot-machines__promo-content {
  padding: 25px;
  color: var(--text-color-dark);
}

.page-slot-machines__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-machines__promo-description {
  font-size: 15px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-slot-machines__faq {
  padding: 60px 0;
}

.page-slot-machines__faq-list {
  margin-top: 40px;
}

.page-slot-machines__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-slot-machines__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-slot-machines__faq-item.active .page-slot-machines__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f0f0f0;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

.page-slot-machines__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-machines__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-slot-machines__faq-question:active {
  background: #eeeeee;
}

.page-slot-machines__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-slot-machines__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--accent-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-machines__faq-item.active .page-slot-machines__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Call to Action Section */
.page-slot-machines__cta {
  padding: 80px 0;
  text-align: center;
}

.page-slot-machines__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-slot-machines__cta .page-slot-machines__section-title {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.page-slot-machines__cta .page-slot-machines__subtitle {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-machines__hero-banner {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 80px;
    min-height: auto;
  }

  .page-slot-machines__hero-content {
    padding: 20px;
    max-width: 100%;
  }

  .page-slot-machines__main-title {
    font-size: 48px;
    text-align: center;
  }

  .page-slot-machines__hero-content .page-slot-machines__subtitle {
    text-align: center;
    font-size: 20px;
  }

  .page-slot-machines__hero-actions {
    justify-content: center;
  }

  .page-slot-machines__hero-image-wrapper {
    padding: 20px;
    justify-content: center;
  }

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

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

  .page-slot-machines__feature-title,
  .page-slot-machines__game-title,
  .page-slot-machines__promo-title {
    font-size: 20px;
  }

  .page-slot-machines__guide-step-title {
    font-size: 22px;
  }
}

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

  /* Mobile specific padding for fixed header */
  .page-slot-machines__hero-banner {
    padding-top: 60px; 
  }

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

  .page-slot-machines__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-slot-machines__main-title {
    font-size: 38px;
  }

  .page-slot-machines__hero-content .page-slot-machines__subtitle {
    font-size: 18px;
  }

  .page-slot-machines__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-machines__btn {
    width: 100%;
  }

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

  .page-slot-machines__features-grid,
  .page-slot-machines__games-grid,
  .page-slot-machines__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-slot-machines__feature-title,
  .page-slot-machines__game-title,
  .page-slot-machines__promo-title {
    font-size: 18px;
  }

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

  .page-slot-machines__game-image,
  .page-slot-machines__promo-image {
    height: 200px;
  }

  .page-slot-machines__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-slot-machines__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-slot-machines__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-slot-machines__faq-answer {
    padding: 0 15px;
  }
  
  .page-slot-machines__faq-item.active .page-slot-machines__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and their containers are responsive */
  .page-slot-machines img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-machines__section,
  .page-slot-machines__card,
  .page-slot-machines__container,
  .page-slot-machines__hero-banner,
  .page-slot-machines__introduction,
  .page-slot-machines__game-showcase,
  .page-slot-machines__guide,
  .page-slot-machines__promotions,
  .page-slot-machines__faq,
  .page-slot-machines__cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Global variables for color contrast */
:root {
  --primary-color: #1A202C; /* Dark background */
  --accent-color: #FFD700; /* Gold */
  --body-bg-color: #f0f2f5; /* Light grey for main body to ensure dark text contrast */
  --text-color-dark: #333333; /* Dark text for light backgrounds */
  --text-color-medium: #555555;
  --text-color-light: #ffffff; /* Light text for dark backgrounds */
}