/* style/promo.css */

/* Root variables for colors */
:root {
  --spintime-primary-color: #F2C14E;
  --spintime-secondary-color: #FFD36B;
  --spintime-card-bg: #111111;
  --spintime-background: #0A0A0A;
  --spintime-text-main: #FFF6D6;
  --spintime-border: #3A2A12;
  --spintime-glow: #FFD36B;
  --spintime-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the page-promo scope */
.page-promo {
  background-color: var(--spintime-background); /* Dark background */
  color: var(--spintime-text-main); /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-promo__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--spintime-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-promo__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Rely on body for --header-offset, this is decorative */
  padding-bottom: 60px;
}

.page-promo__hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-promo__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video for text readability */
}

.page-promo__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 40px 20px;
}

.page-promo__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--spintime-primary-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promo__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-promo__btn-primary,
.page-promo__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promo__btn-primary {
  background: var(--spintime-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
  background: #ffffff;
  color: var(--spintime-primary-color);
  border: 2px solid var(--spintime-primary-color);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.page-promo__btn-secondary:hover {
  background: var(--spintime-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Intro Section */
.page-promo__intro-section {
  padding: 60px 0;
  background-color: var(--spintime-background);
}

/* Card Styles */
.page-promo__card {
  background-color: var(--spintime-card-bg);
  color: var(--spintime-text-main);
  border: 1px solid var(--spintime-border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promo__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

.page-promo__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--spintime-primary-color);
  margin-bottom: 15px;
}

.page-promo__card-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Dark Section */
.page-promo__dark-section {
  background-color: var(--spintime-primary-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-promo__dark-section .page-promo__section-title,
.page-promo__dark-section .page-promo__text-block,
.page-promo__dark-section .page-promo__card-title,
.page-promo__dark-section .page-promo__card-description {
  color: #ffffff; /* Ensure white text on primary color background */
}

.page-promo__dark-section .page-promo__card {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Image full width */
.page-promo__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

/* FAQ Section */
.page-promo__faq-section {
  padding: 60px 0;
  background-color: var(--spintime-background);
}

.page-promo__faq-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--spintime-border);
}

.page-promo__faq-item {
  border-bottom: 1px solid var(--spintime-border);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--spintime-text-main);
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-promo__faq-question:hover {
  color: var(--spintime-primary-color);
}

.page-promo__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 15px 20px 0;
}

.page-promo__faq-answer p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--spintime-text-main);
  text-align: left;
  margin-bottom: 0;
}

/* Conclusion Section */
.page-promo__conclusion-section {
  padding: 60px 0 80px 0;
  background-color: var(--spintime-background);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promo__section-title {
    font-size: 2em;
  }
  .page-promo__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-promo__section-title {
    font-size: 1.8em;
  }

  .page-promo__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }

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

  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-promo__btn-primary,
  .page-promo__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promo__card {
    padding: 20px;
  }

  .page-promo__card-image {
    min-height: 150px; /* Adjust min-height for mobile cards */
  }

  .page-promo__card-title {
    font-size: 1.3em;
  }

  .page-promo__text-block {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-promo__section,
  .page-promo__card,
  .page-promo__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video section specific mobile padding */
  .page-promo__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-promo__faq-question {
    font-size: 1.1em;
  }
  .page-promo__faq-answer {
    padding: 0 0 20px 0;
  }
  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px 0 20px 0;
  }
}

/* General responsive rule for containers */
.page-promo__hero-video-container {
  width: 100%; /* Ensure full width on desktop too for flex items */
  max-width: 100%;
}

/* Ensure content images are not too small */
.page-promo__welcome-bonuses .page-promo__card-image,
.page-promo__daily-rewards .page-promo__card-image,
.page-promo__event-promotions .page-promo__card-image,
.page-promo__fair-play .page-promo__image-full-width {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
}