/* style/live.css */

/* Color Variables */
:root {
  --page-live-primary-color: #F2C14E;
  --page-live-secondary-color: #FFD36B;
  --page-live-card-bg: #111111;
  --page-live-background: #0A0A0A;
  --page-live-text-main: #FFF6D6;
  --page-live-border: #3A2A12;
  --page-live-glow: #FFD36B;
}

.page-live {
  background-color: var(--page-live-background); /* Dark background */
  color: var(--page-live-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-live__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--page-live-background);
}

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

/* Hero Section */
.page-live__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-live-background);
}

.page-live__video-container {
  width: 100%; /* Desktop width: 100% */
  max-width: 1200px;
  margin: 0 auto 30px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-live__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

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

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

.page-live__description {
  font-size: 1.2rem;
  color: var(--page-live-text-main);
  margin-bottom: 30px;
}

/* Titles */
.page-live__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--page-live-primary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-live__card-title, .page-live__feature-title, .page-live__benefits-title, .page-live__step-title, .page-live__faq-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--page-live-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-live__text-block {
  font-size: 1.1rem;
  color: var(--page-live-text-main);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-live__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text on light button */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-live__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--page-live-card-bg);
  color: var(--page-live-primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid var(--page-live-primary-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-live__btn-secondary:hover {
  background-color: var(--page-live-primary-color);
  color: var(--page-live-card-bg);
}

.page-live__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Feature Grid */
.page-live__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

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

.page-live__game-card {
  background-color: var(--page-live-card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-live-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size */
  min-height: 200px;
  object-fit: cover;
}

.page-live__card-text {
  color: var(--page-live-text-main);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Benefits List */
.page-live__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-live__benefits-item {
  background-color: var(--page-live-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-live-border);
}

.page-live__benefits-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--page-live-glow)); /* Only for glow, not color change */
}

.page-live__benefits-text {
  color: var(--page-live-text-main);
  font-size: 1rem;
}

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

.page-live__step-item {
  background-color: var(--page-live-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-live-border);
}

.page-live__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size */
  min-height: 200px;
  object-fit: cover;
}

.page-live__step-text {
  color: var(--page-live-text-main);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-live__faq-section {
  background-color: var(--page-live-background);
}

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

.page-live__faq-item {
  background-color: var(--page-live-card-bg);
  border: 1px solid var(--page-live-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 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(--page-live-card-bg);
  color: var(--page-live-primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

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

.page-live__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-live-secondary-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 collapsed state */
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-live-text-main);
  text-align: left;
}

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

.page-live__faq-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsible Gaming Section */
.page-live__responsible-gaming-section {
  background-color: var(--page-live-background);
}

/* Final CTA Section */
.page-live__final-cta-section {
  background-color: var(--page-live-background);
  padding-bottom: 80px;
}

/* General Image styles for content area */
.page-live img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

  .page-live__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-live__main-title {
    font-size: 2.2rem;
  }

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

  .page-live__card-title, .page-live__feature-title, .page-live__benefits-title, .page-live__step-title, .page-live__faq-title {
    font-size: 1.2rem;
  }

  .page-live__text-block, .page-live__description, .page-live__card-text, .page-live__benefits-text, .page-live__step-text, .page-live__faq-text {
    font-size: 1rem;
  }

  .page-live__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-live__feature-item,
  .page-live__game-card,
  .page-live__benefits-item,
  .page-live__step-item,
  .page-live__faq-item,
  .page-live__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-live__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  /* Ensure all content area images are at least 200px wide */
  .page-live__feature-image, .page-live__game-image, .page-live__step-image {
    min-width: 200px !important;
    min-height: 150px !important; /* Adjust height for aspect ratio */
  }
}