/* style/live.css */

/* Global styles for .page-live within main */
.page-live {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF6D6); /* Default text color from custom配色 */
  background-color: var(--background-color, #0A0A0A); /* Default background from custom配色 */
  line-height: 1.6;
}

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

.page-live__section-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font-size rule, using clamp for H2 as well */
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-live__section-description {
  font-size: 1.1em;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.page-live__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient from custom配色 */
  color: #333333; /* Dark text for contrast on light gradient */
  border: 2px solid transparent;
}

.page-live__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4); /* Glow from custom配色 */
}

.page-live__btn-secondary {
  background: transparent;
  color: var(--text-main, #FFF6D6);
  border: 2px solid var(--border-color, #3A2A12); /* Border from custom配色 */
}

.page-live__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1); /* Light background on hover */
  border-color: var(--glow-color, #FFD36B); /* Glow from custom配色 */
  transform: translateY(-2px);
}

.page-live__btn-text {
  color: var(--glow-color, #FFD36B);
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 0.95em;
  text-decoration: underline;
}

.page-live__btn-text:hover {
  opacity: 0.8;
}

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


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

.page-live__video-container {
  width: 100%; /* Desktop width */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* Ensure video doesn't overflow */
  border-radius: 12px;
  position: relative;
  aspect-ratio: 16 / 9; /* Maintain aspect ratio for video container */
}

.page-live__video {
  width: 100%;
  height: 100%; /* Fill the container */
  display: block;
  object-fit: cover; /* Cover the container while maintaining aspect ratio */
}

.page-live__hero-content {
  text-align: center;
  padding: 40px 20px 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-live__main-title {
  font-size: clamp(36px, 5vw, 60px); /* H1 font-size rule, using clamp */
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-live__subtitle {
  font-size: clamp(1.1em, 2vw, 1.4em); /* Page intro/summary rule */
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.page-live__features-section {
  padding: 80px 0;
}

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

.page-live__feature-card {
  background-color: var(--card-bg, #111111); /* Card BG from custom配色 */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-live__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3); /* Glow from custom配色 */
}

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

.page-live__feature-heading {
  font-size: 1.6em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 15px;
}

.page-live__feature-text {
  font-size: 1em;
  color: var(--text-main, #FFF6D6);
}

/* Games Showcase Section */
.page-live__games-showcase {
  padding: 80px 0;
}

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

.page-live__game-card {
  background-color: var(--card-bg, #111111);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border-color, #3A2A12);
}

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

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

.page-live__game-title {
  font-size: 1.5em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 10px;
}

.page-live__game-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

/* Getting Started Section */
.page-live__getting-started {
  padding: 80px 0;
}

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

.page-live__step-card {
  background-color: var(--card-bg, #111111);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border-color, #3A2A12);
}

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

.page-live__step-heading {
  font-size: 1.6em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 15px;
}

.page-live__step-text {
  font-size: 1em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
}

/* Mobile Section */
.page-live__mobile-section {
  padding: 80px 0;
}

.page-live__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.page-live__mobile-text {
  flex: 1;
  text-align: left;
}

.page-live__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-live__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min image size rule */
  min-height: 200px; /* Min image size rule */
}

/* Partners Section */
.page-live__partners-section {
  padding: 80px 0;
  text-align: center;
}

.page-live__partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 20px;
  margin-top: 50px;
  justify-items: center;
  align-items: center;
}

.page-live__partner-item img {
   /* Fixed width for partner logos */
   /* Fixed height for partner logos */
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Make logos adapt to dark background and glow on hover */
  transition: filter 0.3s ease, transform 0.3s ease;
}

.page-live__partner-item img:hover {
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 8px var(--glow-color, #FFD36B));
  transform: scale(1.05);
}

/* Responsible Gaming Section */
.page-live__responsible-gaming {
  padding: 80px 0;
  text-align: center;
}

.page-live__responsible-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-live__feature-item {
  background-color: var(--card-bg, #111111);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #FFF6D6);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-live__feature-subheading {
  font-size: 1.4em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-live__faq-section {
  padding: 80px 0;
}

.page-live__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-live__faq-item {
  background-color: var(--card-bg, #111111);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: rgba(255, 211, 107, 0.05); /* Slight highlight */
  color: var(--text-main, #FFF6D6);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-live__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: var(--text-main, #FFF6D6);
}

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

.page-live__faq-item.active .page-live__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes 'x' or 'minus' */
}

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main, #FFF6D6);
}

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

.page-live__faq-answer p {
  margin: 0;
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

/* Call to Action Section */
.page-live__call-to-action {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-live__mobile-text {
    text-align: center;
  }
  
  .page-live__partner-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet */
  }
}

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

  .page-live__container,
  .page-live__hero-content,
  .page-live__section-description {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-live__hero-section {
    padding-bottom: 40px;
  }

  .page-live__video-container {
    border-radius: 8px;
  }

  .page-live__main-title {
    font-size: clamp(30px, 8vw, 40px);
  }

  .page-live__subtitle {
    font-size: clamp(1em, 3vw, 1.2em);
  }

  .page-live__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

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

  .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;
  }
  
  /* Images and videos responsiveness */
  .page-live img,
  .page-live video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }
  
  .page-live__video-section {
    padding-top: 10px !important; /* Specific padding-top for video section on mobile */
  }

  .page-live__feature-grid,
  .page-live__game-grid,
  .page-live__steps-grid,
  .page-live__responsible-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-live__feature-card,
  .page-live__game-card,
  .page-live__step-card,
  .page-live__feature-item {
    padding: 25px;
  }

  .page-live__mobile-content {
    gap: 30px;
  }

  .page-live__mobile-image {
    max-width: 90%;
  }

  .page-live__partners-section {
    padding: 60px 0;
  }

  .page-live__partner-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 15px;
  }
  
  .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;
  }
}

/* Ensure no CSS filters are applied to images */
.page-live img {
  filter: none;
}