/* style/live.css */

/* Custom Color Variables */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A;
  --card-background: #111111;
  --text-light: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-live {
  font-family: Arial, sans-serif;
  color: var(--text-light); /* Assuming body background is dark from shared.css */
  background-color: var(--background-dark); /* Ensure consistency */
}

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

/* Hero Section */
.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Enforce image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--background-dark);
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-live__video-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px; /* Space between video and text */
}

.page-live__video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken video for text readability if needed */
}

.page-live__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-live__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, avoids fixed large size */
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-live__lead-text {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--text-light);
}

.page-live__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

.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.1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

.page-live__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-live__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-live__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

/* Section Titles & Descriptions */
.page-live__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-live__section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* General Section Styling */
.page-live__about-section,
.page-live__games-section,
.page-live__promotions-section,
.page-live__mobile-section,
.page-live__getting-started-section,
.page-live__responsible-gaming-section,
.page-live__faq-section,
.page-live__cta-final-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-live__dark-section {
  background-color: var(--background-dark);
}

.page-live__text-block {
  color: var(--text-light);
}

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

.page-live__card,
.page-live__promo-card,
.page-live__step-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Align content to top */
  min-height: 400px; /* Ensure cards have some height */
}

.page-live__card:hover,
.page-live__promo-card:hover,
.page-live__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-live__card-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-live__card-image,
.page-live__promo-image,
.page-live__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensures no extra space below image */
}

.page-live__card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  flex-grow: 1; /* Allows paragraph to take available space */
}

/* Game Categories */
.page-live__game-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.page-live__category-item {
  background-color: var(--card-background);
  border-radius: 50px;
  padding: 10px 25px;
  transition: background-color 0.3s ease;
}

.page-live__category-item:hover {
  background-color: var(--primary-color);
}

.page-live__category-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  font-weight: bold;
  font-size: 1rem;
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  filter: brightness(1.2); /* Make icons pop */
}

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

.page-live__game-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 380px;
}

.page-live__game-card .page-live__game-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-live__game-card .page-live__game-title {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-live__game-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-live__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-live__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Mobile Section */
.page-live__flex-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.page-live__content-block,
.page-live__image-block {
  flex: 1;
}

.page-live__image-block {
  text-align: center;
}

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

.page-live__feature-list li {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.page-live__list-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  display: inline-block;
  min-width: 30px; /* Ensure icon has space */
}

/* Steps Section */
.page-live__step-card {
  min-height: unset; /* Override min-height for step cards */
}

.page-live__step-number {
  background-color: var(--primary-color);
  color: var(--background-dark);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-live__responsible-gaming-section .page-live__flex-container {
  flex-direction: row-reverse; /* Image on right, text on left for this section */
}


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

.page-live__faq-item {
  background-color: var(--card-background);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-background);
  color: var(--text-light);
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect */
}

.page-live__faq-title {
  margin: 0;
  color: var(--text-light);
  font-size: 1.1rem;
}

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

.page-live__faq-item.active .page-live__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  background-color: var(--card-background);
  font-size: 1rem;
  line-height: 1.6;
}

.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-top: 0;
  margin-bottom: 15px;
}

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

.page-live__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-live__faq-answer a:hover {
  color: var(--primary-color);
}


/* Final CTA Section */
.page-live__cta-final-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--background-dark);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-live__flex-container {
    flex-direction: column;
    gap: 40px;
  }
  .page-live__responsible-gaming-section .page-live__flex-container {
    flex-direction: column; /* Reset to column for mobile */
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure small padding for mobile, body handles header */
  }

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

  .page-live__lead-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .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; /* Ensure inner padding is maintained */
    padding-right: 15px;
  }

  .page-live__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-live__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-live__about-section,
  .page-live__games-section,
  .page-live__promotions-section,
  .page-live__mobile-section,
  .page-live__getting-started-section,
  .page-live__responsible-gaming-section,
  .page-live__faq-section,
  .page-live__cta-final-section {
    padding: 40px 0;
  }

  .page-live__grid,
  .page-live__promo-grid,
  .page-live__steps-grid,
  .page-live__game-showcase {
    gap: 20px;
    margin-top: 20px;
  }

  .page-live__card,
  .page-live__promo-card,
  .page-live__step-card,
  .page-live__game-card {
    padding: 20px;
    min-height: unset; /* Allow height to be dynamic */
  }

  .page-live__card-title,
  .page-live__game-title {
    font-size: 1.3rem;
  }

  .page-live__card p,
  .page-live__game-card p {
    font-size: 0.9rem;
  }

  .page-live__game-categories {
    gap: 10px;
    margin-bottom: 30px;
    justify-content: flex-start; /* Align categories to left on mobile */
    overflow-x: auto; /* Allow horizontal scroll if many categories */
    padding: 0 10px;
  }

  .page-live__category-item {
    flex-shrink: 0; /* Prevent items from shrinking */
  }

  .page-live__feature-list {
    margin: 20px 0;
    padding: 0 15px;
  }

  .page-live__feature-list li {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .page-live__image-block {
    padding: 0 15px; /* Add padding to image block */
  }
}