/* style/slots.css */

/* Base styles for the slots page, ensuring light text on dark background */
.page-slots {
  background-color: var(--background-color, #0A0A0A); /* Fallback if shared.css not loaded */
  color: var(--text-main-color, #FFF6D6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-slots__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color, #3A2A12);
}

.page-slots__section:last-of-type {
  border-bottom: none;
}

.page-slots__heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color, #FFF6D6);
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3); /* Subtle glow */
}

.page-slots__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color, #FFF6D6);
}

.page-slots__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-slots__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: radial-gradient(circle at center, rgba(242, 193, 78, 0.1) 0%, rgba(10, 10, 10, 0) 70%); /* Subtle radial gradient */
  overflow: hidden; /* Ensure no image overflow */
}

.page-slots__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-slots__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-slots__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-slots__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-slots__hero-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-main-color, #FFF6D6);
  text-shadow: 0 0 15px var(--glow-color, #FFD36B);
}

.page-slots__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main-color, #FFF6D6);
}

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

.page-slots__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%));
  color: #1a1a1a; /* Dark text for bright button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-slots__cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 25px var(--glow-color, #FFD36B);
  filter: brightness(1.1);
}

.page-slots__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--primary-color, #F2C14E);
  color: var(--text-main-color, #FFF6D6);
  box-shadow: none;
}

.page-slots__cta-button--secondary:hover {
  background: var(--primary-color, #F2C14E);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-color, #F2C14E);
}

/* Feature Grid */
.page-slots__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-slots__feature-item {
  background: var(--card-bg-color, #111111);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-slots__feature-icon {
  width: 100px; /* Display size, actual image will be 200x200 */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 211, 107, 0.5));
}

.page-slots__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color, #F2C14E);
}

.page-slots__feature-description {
  font-size: 16px;
  color: var(--text-main-color, #FFF6D6);
}

/* Game Types Grid */
.page-slots__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slots__card {
  background: var(--card-bg-color, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slots__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(242, 193, 78, 0.3);
}

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

.page-slots__card-title {
  font-size: 22px;
  font-weight: bold;
  padding: 20px 20px 10px;
  color: var(--primary-color, #F2C14E);
}

.page-slots__card-description {
  font-size: 16px;
  padding: 0 20px 20px;
  color: var(--text-main-color, #FFF6D6);
  flex-grow: 1;
  text-align: left;
}

.page-slots__card-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%));
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.page-slots__card-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* How to Play / Tips List */
.page-slots__numbered-list,
.page-slots__bullet-list,
.page-slots__icon-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  counter-reset: step-counter;
}

.page-slots__numbered-list li,
.page-slots__bullet-list li,
.page-slots__icon-list li {
  background: var(--card-bg-color, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.page-slots__numbered-list li:last-child,
.page-slots__bullet-list li:last-child,
.page-slots__icon-list li:last-child {
  margin-bottom: 0;
}

.page-slots__numbered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color, #F2C14E);
  color: #1a1a1a;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}

.page-slots__bullet-list li::before {
  content: '★'; /* Star bullet point */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  color: var(--primary-color, #F2C14E);
  font-size: 24px;
  flex-shrink: 0;
}

.page-slots__list-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--primary-color, #F2C14E);
  flex-grow: 1;
}

.page-slots__list-description {
  font-size: 16px;
  color: var(--text-main-color, #FFF6D6);
}

.page-slots__numbered-list li .page-slots__list-title,
.page-slots__bullet-list li .page-slots__list-title {
  margin-top: 0;
}

.page-slots__numbered-list li > div,
.page-slots__bullet-list li > div {
  flex-grow: 1;
  text-align: left;
}

/* Specific styling for icon list items */
.page-slots__icon-list li {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-slots__list-icon {
  width: 100px; /* Display size, actual image will be 200x200 */
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 211, 107, 0.4));
}

.page-slots__icon-list .page-slots__list-title {
  font-size: 22px;
  margin-bottom: 10px;
}

/* Popular Games Grid */
.page-slots__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Promotions Grid */
.page-slots__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-slots__card--promo .page-slots__card-title {
  font-size: 22px;
  color: var(--primary-color, #F2C14E);
}

.page-slots__card--promo .page-slots__card-description {
  font-size: 16px;
  color: var(--text-main-color, #FFF6D6);
}

/* Mobile Slots Section */
.page-slots__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-slots__mobile-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-slots__mobile-text .page-slots__bullet-list {
  margin-top: 0;
}

.page-slots__mobile-text .page-slots__bullet-list li {
  background: none;
  border: none;
  box-shadow: none;
  padding: 10px 0;
  margin-bottom: 10px;
  align-items: flex-start;
}

.page-slots__mobile-text .page-slots__bullet-list li::before {
  margin-top: 5px; /* Adjust alignment for bullet */
}

.page-slots__mobile-text .page-slots__cta-button {
  margin-top: 30px;
  margin-left: 0;
}

.page-slots__mobile-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-slots__mobile-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-slots__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-slots__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #3A2A12);
  overflow: hidden;
  background: var(--card-bg-color, #111111);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
details.page-slots__faq-item summary.page-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color, #FFF6D6);
}
details.page-slots__faq-item summary.page-slots__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slots__faq-item summary.page-slots__faq-question:hover {
  background: rgba(242, 193, 78, 0.05); /* Subtle hover effect */
}
.page-slots__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color, #F2C14E);
}
.page-slots__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-slots__faq-item .page-slots__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-main-color, #FFF6D6);
  font-size: 16px;
}
details.page-slots__faq-item .page-slots__faq-answer p {
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slots__hero-image img {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-slots__container {
    padding: 20px 15px;
  }

  .page-slots__section {
    padding: 40px 0;
  }

  .page-slots__heading {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-slots__paragraph {
    font-size: 16px;
    text-align: left;
  }

  /* Hero Section Mobile */
  .page-slots__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-slots__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  
  .page-slots__hero-image img {
    border-radius: 8px;
  }

  .page-slots__hero-content h1 {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 15px;
  }

  .page-slots__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-slots__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Ensure buttons have padding on mobile */
    box-sizing: border-box;
  }

  .page-slots__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-slots__cta-button--secondary {
    border: 1px solid var(--primary-color, #F2C14E); /* Thinner border for mobile */
  }

  /* Feature Grid Mobile */
  .page-slots__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-slots__feature-item {
    padding: 25px;
  }
  .page-slots__feature-icon {
    width: 80px; /* Display size, actual image will be 200x200 */
    height: 80px;
  }
  .page-slots__feature-title {
    font-size: 20px;
  }
  .page-slots__feature-description {
    font-size: 15px;
  }

  /* Game Types Grid Mobile */
  .page-slots__game-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-slots__card-image {
    height: 180px;
  }
  .page-slots__card-title {
    font-size: 20px;
    padding: 15px 15px 8px;
  }
  .page-slots__card-description {
    font-size: 15px;
    padding: 0 15px 15px;
  }
  .page-slots__card-button {
    margin: 0 15px 15px;
  }

  /* How to Play / Tips List Mobile */
  .page-slots__numbered-list li,
  .page-slots__bullet-list li,
  .page-slots__icon-list li {
    padding: 20px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .page-slots__numbered-list li::before {
    min-width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .page-slots__bullet-list li::before {
    font-size: 20px;
    min-width: 25px;
    height: 25px;
  }
  .page-slots__list-title {
    font-size: 18px;
    text-align: center;
  }
  .page-slots__list-description {
    font-size: 15px;
    text-align: center;
  }
  .page-slots__numbered-list li > div,
  .page-slots__bullet-list li > div {
    text-align: center;
  }

  .page-slots__icon-list li .page-slots__list-icon {
    width: 80px;
    height: 80px;
  }

  /* Mobile Slots Section Mobile */
  .page-slots__mobile-content {
    flex-direction: column;
    margin-top: 30px;
  }
  .page-slots__mobile-text {
    min-width: unset;
    width: 100%;
  }
  .page-slots__mobile-text .page-slots__bullet-list li {
    text-align: left; /* Keep bullet list text left aligned */
    align-items: flex-start;
  }
  .page-slots__mobile-text .page-slots__list-title {
    text-align: left;
  }
  .page-slots__mobile-text .page-slots__cta-button {
    width: 100%;
    margin-top: 20px;
    margin-left: 0;
  }
  .page-slots__mobile-image {
    min-width: unset;
    width: 100%;
  }

  /* FAQ Section Mobile */
  details.page-slots__faq-item summary.page-slots__faq-question { padding: 15px; }
  .page-slots__faq-qtext { font-size: 16px; }
  .page-slots__faq-toggle { font-size: 24px; width: 25px; }
  details.page-slots__faq-item .page-slots__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* General mobile image/container rules */
  .page-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slots__section,
  .page-slots__card,
  .page-slots__container,
  .page-slots__cta-buttons,
  .page-slots__button-group,
  .page-slots__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slots__section--introduction .page-slots__container,
  .page-slots__section--types .page-slots__container,
  .page-slots__section--how-to-play .page-slots__container,
  .page-slots__section--tips .page-slots__container,
  .page-slots__section--popular-games .page-slots__container,
  .page-slots__section--promotions .page-slots__container,
  .page-slots__section--security .page-slots__container,
  .page-slots__section--mobile .page-slots__container,
  .page-slots__section--faq .page-slots__container,
  .page-slots__section--cta-final .page-slots__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}