/* style/slot-games.css */

/* Custom properties for colors from the prompt */
:root {
  --primary-color: #017439; /* Main brand green */
  --secondary-color: #FFFFFF; /* Auxiliary white */
  --register-button-color: #C30808; /* Red for register/login buttons */
  --register-login-font-color: #FFFF00; /* Yellow font for register/login */
  --background-color: #FFFFFF; /* Default body background */
  --text-color-dark: #333333; /* Dark text for light backgrounds */
  --text-color-light: #ffffff; /* Light text for dark backgrounds */
}

/* Base styles for the page content, ensuring contrast with default light body background */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default dark text for light background */
  background-color: var(--background-color); /* Inherit or explicitly set white background */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-slot-games__section-title--light {
  color: var(--text-color-light);
}

.page-slot-games__section-title--light::after {
  background-color: var(--text-color-light);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d22 100%); /* Darker gradient for hero background */
  color: var(--text-color-light);
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--register-login-font-color); /* Yellow for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-slot-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-button-color); /* Red for CTA buttons */
  color: var(--register-login-font-color); /* Yellow font */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--register-login-font-color); /* Yellow border */
  box-sizing: border-box; /* Crucial for button width */
}

.page-slot-games__cta-button:hover {
  background: #a80707; /* Darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__cta-button--secondary:hover {
  background: #004d22;
  border-color: #f0f0f0;
}

.page-slot-games__cta-button--small {
  padding: 10px 25px;
  font-size: 1em;
}

.page-slot-games__cta-buttons--center {
  justify-content: center;
}

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

.page-slot-games__image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-slot-games__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-slot-games__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__feature-icon {
  width: 100%; /* Ensure images fill card width */
  max-width: 250px; /* Limit max width of card images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--register-login-font-color); /* Yellow for feature titles */
}

.page-slot-games__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-slot-games__provider-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__provider-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-slot-games__provider-item img {
   /* Adjust logo size */
  height: auto;
  margin-bottom: 15px;
  filter: grayscale(10%); /* Subtle grayscale */
  transition: filter 0.3s ease;
}

.page-slot-games__provider-item:hover img {
  filter: grayscale(0%);
}

.page-slot-games__provider-name {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-slot-games__provider-description {
  font-size: 0.95em;
  color: #666;
}

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

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

.page-slot-games__guide-step {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.page-slot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--register-button-color); /* Red for step numbers */
  color: var(--register-login-font-color); /* Yellow font */
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  border: 3px solid var(--register-login-font-color);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.page-slot-games__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--register-login-font-color); /* Yellow for step titles */
}

.page-slot-games__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

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

.page-slot-games__tip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-slot-games__tip-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-slot-games__tip-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  padding: 20px 25px 10px;
}

.page-slot-games__tip-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 25px 25px;
}

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

.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 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter background for question */
  border: 1px solid rgba(255, 255, 255, 0.2);
  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.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--register-login-font-color); /* Yellow for FAQ questions */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--register-login-font-color); /* Yellow for toggle icon */
  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: 30px;
  height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
  color: var(--text-color-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); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure content fits */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

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

.page-slot-games__faq-answer .page-slot-games__cta-buttons {
  margin-top: 15px;
}

/* Contact CTA Section */
.page-slot-games__contact-cta-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  text-align: center;
}

.page-slot-games__contact-cta-content {
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-slot-games__contact-cta-content .page-slot-games__section-title {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-slot-games__contact-cta-content .page-slot-games__text-block {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #555;
}

.page-slot-games__cta-button--primary {
  background: var(--register-button-color); /* Red */
  color: var(--register-login-font-color); /* Yellow */
  border: 2px solid var(--register-login-font-color);
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.15em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-slot-games__cta-button {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 1.1em;
    padding: 12px 20px;
  }

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

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

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

  .page-slot-games__features-section,
  .page-slot-games__game-providers-section,
  .page-slot-games__guide-section,
  .page-slot-games__tips-section,
  .page-slot-games__faq-section,
  .page-slot-games__contact-cta-section {
    padding: 50px 0;
  }

  .page-slot-games__feature-grid,
  .page-slot-games__providers-grid,
  .page-slot-games__guide-steps,
  .page-slot-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-slot-games__feature-card,
  .page-slot-games__provider-item,
  .page-slot-games__guide-step,
  .page-slot-games__tip-card {
    padding: 25px;
  }

  .page-slot-games__feature-icon {
    max-width: 200px;
  }
  
  .page-slot-games__tip-image {
    height: 200px; /* Adjust height for mobile */
  }

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

  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1.1em;
  }
  .page-slot-games__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }

  /* All images must be responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
  
  .page-slot-games__contact-cta-content {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__hero-description {
    font-size: 0.9em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__cta-button {
    font-size: 1em;
    padding: 10px 15px;
  }
}