/* style/live.css */
/* Page-specific styles for the Live Casino page */

/* Ensure text color contrasts with dark body background #0A0A0A */
.page-live {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
  background-color: #0A0A0A; /* Background */
}

/* Header offset to prevent content from being covered by fixed header */
.page-live__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

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

.page-live__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main color gradient */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-live__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-live__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #0A0A0A; /* Dark text for light gradient background */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-live__hero-description {
  font-size: 1.2em;
  color: #3A2A12; /* Border color for contrast on light gradient */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-live__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 1200px; /* Limit image width */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-live__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

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

.page-live__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #FFD36B; /* Glow color for border */
}

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

.page-live__card-text {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

.page-live__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff; /* White text for button */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for button responsiveness */
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-live__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-live__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color border */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for button responsiveness */
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-live__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A; /* Dark text for hover state */
  transform: translateY(-2px);
}

.page-live__btn-text {
  color: #FFD36B; /* Glow color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-live__btn-text:hover {
  color: #F2C14E; /* Main color on hover */
}

.page-live__more-games-cta {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
}

.page-live__cta-heading {
  font-size: 1.8em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
}

.page-live__cta-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

/* FAQ Section */
.page-live__faq-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-live__faq-list {
  margin-top: 40px;
}

.page-live__faq-item {
  background-color: #111111; /* Card BG */
  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: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  font-weight: bold;
  font-size: 1.2em;
  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: #F2C14E; /* Main color */
  font-size: 1.2em; /* Ensure consistent font size for question */
}

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

.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-out, padding 0.3s ease-out;
  color: #FFF6D6; /* 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 25px 25px;
}

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

/* Responsible Gaming & Contact Support sections */
.page-live__responsible-gaming,
.page-live__contact-support {
  text-align: center;
}

.page-live__responsible-gaming .page-live__btn-secondary,
.page-live__contact-support .page-live__btn-primary {
  margin-top: 30px;
}

/* --- Responsive Design --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-live__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
  }

  .page-live__hero-title {
    font-size: 2.2em;
    padding: 0 10px;
  }

  .page-live__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-live__hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
  }

  .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;
    padding-right: 15px;
  }

  .page-live__hero-buttons .page-live__btn-primary,
  .page-live__hero-buttons .page-live__btn-secondary {
    margin-bottom: 15px; /* Space between stacked buttons */
  }

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

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

  .page-live__section-description {
    font-size: 0.95em;
    padding: 0 10px;
  }

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

  .page-live__card-image {
    height: 180px;
  }

  .page-live__card-title {
    font-size: 1.3em;
  }

  .page-live__card-text {
    font-size: 0.95em;
  }

  .page-live__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

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

  /* Image responsiveness for all images in content area */
  .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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button containers mobile adaptation */
  .page-live__hero-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__hero-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

/* Tablet (max-width: 1024px) - Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-live__hero-title {
    font-size: 2.8em;
  }
  .page-live__section-title {
    font-size: 2.2em;
  }
  .page-live__game-cards,
  .page-live__features-grid,
  .page-live__steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}