/* style/live.css */

/* Base Styles & Typography */
.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  /* body already handles padding-top: var(--header-offset) */
}

.page-live__main-title,
.page-live__section-title,
.page-live__game-title,
.page-live__card-title,
.page-live__feature-heading,
.page-live__step-title {
  color: #FFF6D6; /* Text Main */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-live__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp as per instructions */
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__game-title,
.page-live__card-title,
.page-live__feature-heading,
.page-live__step-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 15px;
}

.page-live__hero-description,
.page-live__section-description,
.page-live__game-description,
.page-live__card-text,
.page-live__feature-item p,
.page-live__step-text {
  font-size: 1rem;
  margin-bottom: 15px;
}

/* General Layout */
.page-live__hero-section,
.page-live__introduction-section,
.page-live__games-section,
.page-live__why-choose-section,
.page-live__mobile-section,
.page-live__bonuses-section,
.page-live__how-to-start-section,
.page-live__partners-section,
.page-live__faq-section,
.page-live__final-cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Video Hero Section */
.page-live__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  background-color: #0A0A0A; /* Ensure background matches body */
}

.page-live__video-container {
  width: 100%;
  max-width: 1200px; /* Desktop max width */
  margin: 0 auto 30px auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  aspect-ratio: 16 / 9; /* Maintain aspect ratio */
}

.page-live__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.page-live__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-live__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-live__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping initially */
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-live__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-live__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-live__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color */
  border: 2px solid #FFD36B; /* Glow color for border */
}

.page-live__btn-secondary:hover {
  background: #FFD36B;
  color: #111111; /* Dark text on hover */
  transform: translateY(-2px);
}

.page-live__btn-link {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 1px solid #F2C14E;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.page-live__btn-link:hover {
  background: #F2C14E;
  color: #111111;
}

.page-live__btn-primary--center,
.page-live__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-live__introduction-section {
  text-align: center;
}

.page-live__introduction-section p {
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Games Section */
.page-live__games-section {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  margin-top: 40px;
  padding: 60px 20px;
}

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

.page-live__game-card {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-live__game-icon {
  width: 80px; /* Specific size for category icons, allowed exception */
  height: 80px; /* Specific size for category icons, allowed exception */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.page-live__game-card .page-live__btn-link {
  margin-top: auto; /* Push button to bottom */
}

/* Why Choose Section & Mobile Section (Two-column layout) */
.page-live__dark-section {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  margin-top: 40px;
}

.page-live__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-live__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-live__text-content,
.page-live__image-content {
  flex: 1;
}

.page-live__feature-list {
  list-style: none;
  padding: 0;
}

.page-live__feature-item {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-live__feature-item:hover {
  transform: translateX(5px);
}

.page-live__feature-item:last-child {
  margin-bottom: 0;
}

.page-live__feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Bonuses Section */
.page-live__bonuses-section {
  text-align: center;
}

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

.page-live__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-live__card .page-live__btn-link {
  margin-top: auto;
  align-self: flex-start;
}

/* How to Start Section */
.page-live__how-to-start-section {
  text-align: center;
}

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

.page-live__step-item {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live__step-number {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Partners Section */
.page-live__partners-section {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  margin-top: 40px;
  padding: 60px 20px;
  text-align: center;
}

.page-live__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
  align-items: center;
}

.page-live__partner-item {
  width: 167px; /* Fixed width for partner game images */
  height: 127px; /* Fixed height for partner game images */
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-live__partner-item:hover {
  transform: scale(1.05);
}

.page-live__partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* FAQ Section */
.page-live__faq-section {
  margin-top: 40px;
}

.page-live__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0A0A0A; /* Background */
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: #1a1a1a;
}

.page-live__faq-question h3 {
  margin: 0;
  color: #FFF6D6; /* Text Main */
  font-size: 1.1rem;
}

.page-live__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-live__faq-item.active .page-live__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #111111; /* Card BG */
}

.page-live__faq-item.active .page-live__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-live__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some padding to the bottom of the paragraph */
  color: #FFF6D6; /* Text Main */
}


/* Final CTA Section */
.page-live__final-cta-section {
  text-align: center;
  margin-top: 60px;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__content-wrapper {
    flex-direction: column;
  }

  .page-live__content-wrapper--reverse {
    flex-direction: column; /* Keep consistent for smaller screens */
  }

  .page-live__partners-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet */
  }
}

@media (max-width: 768px) {
  .page-live {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-live__hero-section,
  .page-live__introduction-section,
  .page-live__games-section,
  .page-live__why-choose-section,
  .page-live__mobile-section,
  .page-live__bonuses-section,
  .page-live__how-to-start-section,
  .page-live__partners-section,
  .page-live__faq-section,
  .page-live__final-cta-section {
    padding: 30px 15px; /* Adjust padding for mobile */
  }

  /* Video Hero Section - Mobile */
  .page-live__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-live__video-container {
    margin-bottom: 20px;
  }

  .page-live__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-live__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-live__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding to buttons container */
  }

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-link {
    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;
  }

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

  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__content-wrapper,
  .page-live__game-categories,
  .page-live__bonus-cards,
  .page-live__steps,
  .page-live__partners-grid,
  .page-live__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-live__game-categories,
  .page-live__bonus-cards,
  .page-live__steps {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .page-live__partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    padding: 0 15px;
  }

  .page-live__partner-item {
    width: 100%; /* Make partner items take full width of grid column */
    height: auto;
    max-width: 167px; /* Maintain original aspect ratio/max size */
  }

  .page-live__game-icon {
    width: 60px; /* Adjust icon size for mobile */
    height: 60px;
  }

  .page-live__faq-question h3 {
    font-size: 1rem;
  }
  .page-live__faq-toggle {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-live__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-live__section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
}