/* style/live.css */

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

/* Base styles for the live page, assuming body has a dark background from shared.css */
.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--bingoplus-text-main); /* Light text for dark background */
  background-color: var(--bingoplus-background); /* Explicitly set background for page sections */
}

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

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

.page-live__dark-section {
  background-color: var(--bingoplus-background);
  color: var(--bingoplus-text-main);
}

.page-live__card-bg {
  background-color: var(--bingoplus-card-bg);
  color: var(--bingoplus-text-main);
}

.page-live__text-main {
  color: var(--bingoplus-text-main);
}

.page-live__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  margin-bottom: 30px;
  color: var(--bingoplus-primary-color);
  font-weight: bold;
}

.page-live__sub-title {
  font-size: clamp(1.5em, 3vw, 2em);
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--bingoplus-secondary-color);
}

.page-live__text-block {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* padding-top: 10px for small top margin, not --header-offset */
  overflow: hidden;
  min-height: 60vh;
}

.page-live__video-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Ensure full width on desktop too */
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #000;
}

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

.page-live__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-live__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--bingoplus-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-live__description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  margin-bottom: 30px;
  color: var(--bingoplus-text-main);
}

/* CTA Button Styles */
.page-live__cta-button {
  display: inline-block;
  background: var(--bingoplus-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-live__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 20px;
}

.page-live__cta-button--centered {
  margin-top: 40px;
}

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

.page-live__game-card {
  background-color: var(--bingoplus-background);
  border: 1px solid var(--bingoplus-border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-live__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensures no extra space below image */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  object-fit: cover;
}

.page-live__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--bingoplus-secondary-color);
}

.page-live__card-text {
  font-size: 1em;
  color: var(--bingoplus-text-main);
  flex-grow: 1;
}

/* Features Section */
.page-live__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-live__feature-item {
  background-color: var(--bingoplus-card-bg);
  border: 1px solid var(--bingoplus-border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Get Started Section */
.page-live__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-live__step-item {
  background-color: var(--bingoplus-background);
  border: 1px solid var(--bingoplus-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-live__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-live__faq-item {
  background-color: var(--bingoplus-background);
  border: 1px solid var(--bingoplus-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: var(--bingoplus-background);
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-live__faq-title {
  font-size: 1.2em;
  color: var(--bingoplus-secondary-color);
  margin: 0;
}

.page-live__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: var(--bingoplus-primary-color);
  transition: transform 0.3s ease;
}

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

.page-live__faq-answer {
  max-height: 0; /* Initial state: collapsed */
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--bingoplus-text-main);
}

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

.page-live__faq-answer p {
  margin-bottom: 0;
}

/* Join Community Section */
.page-live__join-community .page-live__cta-button {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__section {
    padding: 40px 0;
  }
  .page-live__section-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-live__sub-title {
    font-size: clamp(1.3em, 4vw, 1.8em);
  }
}

@media (max-width: 768px) {
  .page-live__section {
    padding: 30px 0;
  }
  .page-live__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 40px;
  }
  .page-live__hero-content {
    padding: 0 15px;
  }
  .page-live__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-live__description {
    font-size: clamp(1em, 3.5vw, 1.2em);
  }

  /* Image responsiveness */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__game-card,
  .page-live__feature-item,
  .page-live__step-item,
  .page-live__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video responsiveness */
  .page-live__video-container {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Button responsiveness */
  .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% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important; /* Add padding to prevent text touching edges */
  }
  
  .page-live__cta-buttons,
  .page-live__button-group,
  .page-live__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-live__game-grid,
  .page-live__feature-list,
  .page-live__step-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live__faq-question {
    padding: 15px 20px;
  }

  .page-live__faq-answer {
    padding: 0 20px;
  }

  .page-live__faq-item.active .page-live__faq-answer {
    padding: 15px 20px;
  }

  .page-live__faq-title {
    font-size: 1.1em;
  }

  .page-live__faq-toggle {
    font-size: 1.5em;
  }
}