/* style/slot-games.css */

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--background-dark); /* Ensure this matches shared.css */
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  font-weight: bold;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__text-link {
  color: #FFFF00;
  text-decoration: underline;
}

.page-slot-games__text-link:hover {
  color: #f0f0f0;
}

/* Color contrast specific classes */
.page-slot-games__dark-section {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-slot-games__light-bg {
  background-color: #ffffff; /* Auxiliary brand color for light sections */
  color: #333333;
  padding: 60px 0;
}

.page-slot-games__light-bg .page-slot-games__section-title {
  color: #017439;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  overflow: hidden;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

.page-slot-games__hero-title {
  font-size: 3.5em;
  color: #FFFF00;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, not color change */
}

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

.page-slot-games__btn-register, .page-slot-games__btn-login {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom color for register font */
  border: 2px solid #C30808;
}

.page-slot-games__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-slot-games__btn-login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom color for login font */
  border: 2px solid #C30808;
}

.page-slot-games__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

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

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-slot-games__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
}

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

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

.page-slot-games__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-slot-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-slot-games__game-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__game-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
}

.page-slot-games__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-slot-games__game-title a:hover {
  text-decoration: underline;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-slot-games__btn-play {
  display: inline-block;
  padding: 10px 25px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__btn-play:hover {
  background-color: #005a2e;
}

/* How to Play Section */
.page-slot-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFFF00;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
}

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

.page-slot-games__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__btn-secondary:hover {
  background-color: #e0e0e0;
}

/* Tips Section */
.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__tip-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #333333;
}

.page-slot-games__tip-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-slot-games__tip-description {
  font-size: 1em;
  color: #555555;
}

/* Safety Section */
.page-slot-games__safety-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__safety-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #FFFF00;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 1.05em;
}

.page-slot-games__safety-item strong {
  color: #FFFF00;
}

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

.page-slot-games__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  color: #017439;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.page-slot-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #017439;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #555555;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
  text-align: center;
  padding: 80px 0;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
  margin-bottom: 20px;
}

.page-slot-games__cta-final-section .page-slot-games__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__hero-description {
    font-size: 1.1em;
  }
  .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__container,
  .page-slot-games__hero-content,
  .page-slot-games__features-grid,
  .page-slot-games__games-grid,
  .page-slot-games__step-list,
  .page-slot-games__tips-list,
  .page-slot-games__safety-list,
  .page-slot-games__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
  }

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

  .page-slot-games__btn-register,
  .page-slot-games__btn-login,
  .page-slot-games__btn-play,
  .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;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
  }

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

  /* Image responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__feature-image, .page-slot-games__game-image {
    height: auto !important; /* Allow auto height for mobile */
  }
  
  /* FAQ specific for mobile */
  .page-slot-games__faq-question,
  .page-slot-games__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1.1em;
  }
}

@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__btn-register, .page-slot-games__btn-login, .page-slot-games__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}