/* style/live.css */
/* Base styles for the live page */
.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color, chosen for contrast with dark body background */
  background-color: #0A0A0A; /* Body background color */
}

.page-live__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-live__section-title {
  font-size: 2.5em;
  color: #FFD36B; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-live__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6; /* Main text color */
}

/* Hero Section */
.page-live__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop padding-top */
  background: #0A0A0A; /* Consistent with body background */
}

.page-live__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  overflow: hidden;
}

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

.page-live__hero-content {
  padding: 40px 20px;
  background-color: #111111; /* Card BG for hero content */
  width: 100%;
  max-width: 1200px; /* Constrain content width */
  box-sizing: border-box;
}

.page-live__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #FFD36B;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-live__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-live__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-live__btn-secondary:hover {
  background: #FFD36B; /* Auxiliary color for background */
  color: #111111; /* Dark text for light button */
  transform: translateY(-3px);
}

/* Game Categories Section */
.page-live__games-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Dark background */
}

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

.page-live__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  text-decoration: none;
  color: #FFF6D6;
}

.page-live__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-live__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px; /* Allowed small icon size */
  margin-bottom: 15px;
  object-fit: contain;
}

.page-live__category-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #FFD36B;
}

.page-live__category-text {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* Features Section */
.page-live__features-section {
  padding: 80px 0;
  background-color: #FFF6D6; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-live__features-section .page-live__section-title {
  color: #F2C14E; /* Main color for title on light bg */
}

.page-live__features-section .page-live__section-description {
  color: #333333; /* Dark text for light background */
}

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

.page-live__feature-item {
  background-color: #ffffff; /* White card for light section */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text */
}

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

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

.page-live__feature-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Main color for feature titles */
}

.page-live__feature-text {
  font-size: 1em;
  color: #333333;
}

/* Promo Section */
.page-live__promo-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Dark background */
}

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

.page-live__promo-card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #3A2A12; /* Border color */
  color: #FFF6D6;
}

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

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

.page-live__promo-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-live__promo-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #FFF6D6;
}

/* Guide Section */
.page-live__guide-section {
  padding: 80px 0;
  background-color: #FFF6D6; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-live__guide-section .page-live__section-title {
  color: #F2C14E; /* Main color for title on light bg */
}

.page-live__guide-section .page-live__section-description {
  color: #333333; /* Dark text for light background */
}

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

.page-live__step-item {
  background-color: #ffffff; /* White card for light section */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text */
}

.page-live__step-item:hover {
  transform: translateY(-5px);
}

.page-live__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Main color for step titles */
}

.page-live__step-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #333333;
}

/* FAQ Section */
.page-live__faq-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Dark background */
}

.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 color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #FFF6D6;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFD36B;
  background-color: #111111; /* Card BG */
  transition: background-color 0.3s ease;
}

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

.page-live__faq-question h3 {
  margin: 0;
  color: #FFD36B;
  font-size: 1em; /* Ensure consistent heading size */
}

.page-live__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

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

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

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

.page-live__faq-answer p {
  margin: 0;
  padding-bottom: 5px;
  color: #FFF6D6;
}

/* Partners Section */
.page-live__partners-section {
  padding: 60px 0;
  background-color: #FFF6D6; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-live__partners-section .page-live__section-title {
  color: #F2C14E; /* Main color for title on light bg */
}

.page-live__partners-section .page-live__section-description {
  color: #333333; /* Dark text for light background */
}

.page-live__partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-live__partner-logo {
  width: 167px; /* Fixed width for partner logos */
  height: 127px; /* Fixed height for partner logos */
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.page-live__partner-logo:hover {
  opacity: 1;
}

/* CTA Bottom Section */
.page-live__cta-bottom-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG color for this section */
}

/* --- Responsive Styles --- */

/* Mobile responsiveness for images */
.page-live img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness for buttons and containers */
.page-live__cta-button,
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live a[class*="button"],
.page-live a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-live__cta-buttons,
.page-live__button-group,
.page-live__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  /* Hero section padding-top for mobile - relies on shared's --header-offset */
  .page-live__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile: use shared's value */
  }

  .page-live__hero-title {
    font-size: 2em;
  }

  .page-live__section-title {
    font-size: 2em;
  }

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

  .page-live__hero-cta-buttons,
  .page-live__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* Force image responsiveness on mobile */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-live__section,
  .page-live__card,
  .page-live__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__game-categories,
  .page-live__feature-grid,
  .page-live__promo-cards,
  .page-live__steps-grid {
    grid-template-columns: 1fr; /* Single column layout for grids on mobile */
  }

  .page-live__feature-image,
  .page-live__promo-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-live__partner-logos {
    flex-direction: column; /* Stack partner logos vertically */
  }
}

/* Color Contrast Safeguards - Applied based on section background */
/* Dark background sections (e.g., hero, games, promo, faq, bottom cta) */
.page-live__dark-section {
  color: #FFF6D6; /* Light text for dark background */
  background-color: #0A0A0A; /* Default dark background */
}

/* Light background sections (e.g., features, guide, partners) */
.page-live__light-bg {
  color: #333333; /* Dark text for light background */
  background-color: #FFF6D6; /* Default light background */
}

/* Cards within dark sections */
.page-live__dark-section .page-live__card {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Main text color */
  border: 1px solid #3A2A12; /* Border color */
}

/* Cards within light sections */
.page-live__light-bg .page-live__card {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text */
  border: 1px solid #e0e0e0; /* Light border */
}

/* Specific text contrast fixes for light backgrounds */
.page-live__text-contrast-fix {
  color: #333333; /* Ensure dark text on light backgrounds */
}

/* Ensure all content images meet minimum size requirements */
.page-live__feature-image,
.page-live__promo-image,
.page-live__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Exceptions for small icons */
.page-live__category-icon {
  min-width: unset; /* Override min-width for category icons */
  min-height: unset; /* Override min-height for category icons */
}

.page-live__partner-logo {
  min-width: unset; /* Override min-width for partner logos */
  min-height: unset; /* Override min-height for partner logos */
}