/* style/slot-games.css */

/* Base styles for the page */
.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color); /* Inherited from shared.css */
}

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

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-slot-games__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555555;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0; /* Fallback if image not loaded */
}

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

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

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

.page-slot-games__main-title {
  font-size: clamp(36px, 5vw, 58px); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-slot-games__intro-text {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-slot-games__btn-primary:hover {
  background-color: #d46f06;
  transform: translateY(-2px);
}

.page-slot-games__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-slot-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-slot-games__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-small:hover {
  background-color: #1f8ec4;
  transform: translateY(-1px);
}

/* About Slots Section */
.page-slot-games__about-slots .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-slot-games__text-block {
  max-width: 900px;
  text-align: left;
  font-size: 17px;
  color: #333333;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
}

.page-slot-games__image-inline {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
  object-fit: cover;
}

/* Features Section */
.page-slot-games__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title {
  color: #ffffff;
}

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

.page-slot-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-slot-games__feature-card p {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* How to Play Section */
.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.page-slot-games__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-slot-games__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-slot-games__step-card p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Popular Games Section */
.page-slot-games__light-bg {
  background-color: #f5f5f5;
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__section-description {
  color: #333333;
}

.page-slot-games__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-slot-games__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-slot-games__game-name {
  font-size: 20px;
  font-weight: 700;
  padding: 15px 20px 10px 20px;
  color: #26A9E0;
}

.page-slot-games__game-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-slot-games__cta-buttons--centered {
  margin-top: 50px;
}

/* Why Choose Section */
.page-slot-games__reason-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-slot-games__reason-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-slot-games__reason-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-slot-games__reason-item p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

/* FAQ Section */
.page-slot-games__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-slot-games__faq-section .page-slot-games__section-title {
  color: #ffffff;
}

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

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: none;
}

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

.page-slot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  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: 15px 25px 20px 25px;
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Final CTA Section */
.page-slot-games__cta-final-content {
  max-width: 800px;
}

.page-slot-games__cta-final .page-slot-games__section-title {
  color: #26A9E0;
}

.page-slot-games__cta-final p {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    padding: 15px;
  }

  .page-slot-games__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }

  .page-slot-games__intro-text {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

@media (max-width: 768px) {
  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  /* Images responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games__hero-image-wrapper,
  .page-slot-games__content-wrapper,
  .page-slot-games__feature-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__game-list,
  .page-slot-games__reason-list,
  .page-slot-games__faq-list,
  .page-slot-games__cta-buttons,
  .page-slot-games__container,
  .page-slot-games__hero-section,
  .page-slot-games__about-slots,
  .page-slot-games__features,
  .page-slot-games__how-to-play,
  .page-slot-games__popular-games,
  .page-slot-games__why-choose,
  .page-slot-games__faq-section,
  .page-slot-games__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons responsiveness */
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-small,
  .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;
  }

  /* FAQ toggle for details element */
  .page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg);
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-slot-games__intro-text {
    font-size: clamp(15px, 3vw, 18px);
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
}

/* Ensure content area images are not too small */
.page-slot-games__text-block img,
.page-slot-games__card-icon,
.page-slot-games__game-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-slot-games img {
  filter: none; /* Ensure no CSS filter is applied to change image color */
}

/* Specific filter for hero image for readability */
.page-slot-games__hero-image {
  filter: brightness(0.6); /* This is allowed for readability, not changing color */
}

/* Contrast fixes for light body background */
.page-slot-games p, .page-slot-games li, .page-slot-games__section-description {
  color: #333333;
}

.page-slot-games__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-slot-games__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-slot-games__btn-primary {
  background: #EA7C07;
  color: #ffffff;
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games__btn-small {
  background: #26A9E0;
  color: #ffffff;
}

.page-slot-games__faq-question {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-answer {
  color: #f0f0f0;
}