/* style/live.css */

/* Base styles for the live page */
.page-live {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

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

.page-live__section-title {
  font-size: 2.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.page-live__section-intro {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-live__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #ffffff;
  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 4px 15px rgba(255, 211, 107, 0.4);
}

.page-live__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-live__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-live__btn-secondary {
  background: #111111; /* Card B G */
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B; /* Glow */
}

.page-live__btn-secondary:hover {
  background: #FFD36B; /* Glow */
  color: #111111; /* Card B G */
}

/* Video Hero Section */
.page-live__video-hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-live__video-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-live__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly up over the video visual */
}

.page-live__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

/* Why Choose Us Section */
.page-live__why-choose-us {
  background-color: #111111; /* Card B G */
}

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

.page-live__feature-card {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 211, 107, 0.3);
}

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

.page-live__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-live__card-text {
  font-size: 1em;
  color: #FFF6D6;
}

/* How to Play Section */
.page-live__how-to-play {
  padding-bottom: 80px;
}

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

.page-live__step-card {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-live__cta-block {
    background-color: #111111; /* Card B G */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 12px;
    padding: 40px;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-live__cta-text {
    font-size: 1.3em;
    color: #FFD36B; /* Glow */
    font-weight: bold;
    margin: 0;
}

/* Explore Games Section */
.page-live__explore-games {
  background-color: #111111; /* Card B G */
}

.page-live__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-live__category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 25px;
  padding: 10px 20px;
  color: #FFF6D6;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-live__category-item:hover {
  background-color: #3A2A12; /* Border */
  border-color: #FFD36B; /* Glow */
  color: #FFD36B;
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.page-live__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Fixed width for game cards */
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.page-live__game-card {
  background-color: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 167px; /* Fixed width */
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-live__game-image {
  width: 167px;
  height: 127px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #3A2A12;
}

.page-live__game-title {
  font-size: 0.9em;
  color: #FFF6D6;
  padding: 10px;
  margin: 0;
  font-weight: bold;
}

/* Promotions Section */
.page-live__promotions {
  padding-bottom: 80px;
}

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

.page-live__promo-card {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 211, 107, 0.3);
}

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

/* FAQ Section */
.page-live__faq-section {
  background-color: #111111; /* Card B G */
  padding-bottom: 80px;
}

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

.page-live__faq-item {
  background-color: #0A0A0A; /* Background */
  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 */
  color: #FFD36B; /* Glow */
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: #3A2A12; /* Border */
}

.page-live__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
  font-weight: bold;
}

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

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

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  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 25px;
}

.page-live__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Join Us Section */
.page-live__join-us {
  padding-top: 80px;
  padding-bottom: 100px;
  background-color: #0A0A0A; /* Background */
}

.page-live__join-us-content {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 15px;
  padding: 60px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__section-title {
    font-size: 2em;
  }
  .page-live__hero-content {
    margin-top: -60px;
  }
}

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

  .page-live__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-live__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-live__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .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: 20px;
    padding-right: 20px;
  }
  
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-live__video-hero-section {
    padding-top: 10px !important; /* Ensure small padding for video hero */
    padding-bottom: 40px;
  }

  .page-live__hero-content {
    margin-top: -40px; /* Adjust for mobile */
    padding: 20px 15px;
  }

  .page-live__features-grid,
  .page-live__steps-grid,
  .page-live__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live__feature-card,
  .page-live__step-card,
  .page-live__promo-card,
  .page-live__join-us-content {
    padding: 20px;
  }

  .page-live__game-card {
    width: 100%; /* Make game cards full width on mobile */
    max-width: 250px; /* Cap max width to avoid stretching too much */
    margin: 0 auto;
  }

  .page-live__game-image {
    width: 100%;
    height: auto;
  }

  .page-live__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .page-live__categories {
    gap: 10px;
  }

  .page-live__faq-question,
  .page-live__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-live__section-title {
    font-size: 1.5em;
  }

  .page-live__hero-content {
    margin-top: -20px;
  }

  .page-live__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }

  .page-live__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .page-live__game-card {
    max-width: 100%;
  }

  .page-live__game-image {
    width: 100%;
    height: auto;
  }

  .page-live__category-item {
    padding: 8px 15px;
    font-size: 0.9em;
  }
}