/* style/live.css */
:root {
  --phjoy-primary: #F2C14E;
  --phjoy-secondary: #FFD36B;
  --phjoy-card-bg: #111111;
  --phjoy-page-bg: #0A0A0A;
  --phjoy-text-main: #FFF6D6;
  --phjoy-border: #3A2A12;
  --phjoy-glow: #FFD36B;
  --phjoy-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-live {
  background-color: var(--phjoy-page-bg);
  color: var(--phjoy-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-live__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--phjoy-primary);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-live__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: rgba(255, 246, 214, 0.8);
}

.page-live__center-content {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.page-live__btn-primary {
  background: var(--phjoy-button-gradient);
  color: var(--phjoy-text-main);
  border: 2px solid transparent;
  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(--phjoy-primary);
  border: 2px solid var(--phjoy-primary);
  margin-left: 15px;
}

.page-live__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

.page-live__btn-small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-live__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-live__video-container {
  width: 100%;
  max-width: 100%; /* Ensure full width on desktop too */
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-live__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-live__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-top: 150px; /* Push content down to be below the video */
  margin-bottom: 60px;
}

.page-live__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--phjoy-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-live__hero-description {
  font-size: 1.2em;
  color: rgba(255, 246, 214, 0.9);
  margin-bottom: 30px;
  line-height: 1.5;
}

/* General Card Styles */
.page-live__card {
  background-color: var(--phjoy-card-bg);
  color: var(--phjoy-text-main);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--phjoy-border);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-live__card-title {
  font-size: 1.6em;
  color: var(--phjoy-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-live__card-title a {
  color: var(--phjoy-primary);
  text-decoration: none;
}

.page-live__card-title a:hover {
  text-decoration: underline;
}

.page-live__card-text {
  font-size: 1em;
  color: rgba(255, 246, 214, 0.7);
  line-height: 1.7;
  flex-grow: 1;
}

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

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

/* Why Choose Section */
.page-live__feature-card {
  text-align: center;
}

/* Popular Games Section */
.page-live__game-category {
  padding: 20px;
}

.page-live__category-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-live__game-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-live__game-list li {
  color: var(--phjoy-text-main);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.page-live__game-list li::before {
  content: '▶';
  color: var(--phjoy-secondary);
  position: absolute;
  left: 0;
  font-size: 0.8em;
  top: 3px;
}

/* Promotions Section */
.page-live__promo-card {
  text-align: center;
}

/* Getting Started Section */
.page-live__step-card {
  text-align: center;
}

.page-live__step-number {
  width: 50px;
  height: 50px;
  background: var(--phjoy-primary);
  color: #0A0A0A;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

/* Mobile Experience Section */
.page-live__mobile-app-content {
  align-items: center;
  text-align: left;
}

.page-live__app-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-live__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Partners Section */
.page-live__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.page-live__partner-item {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.page-live__partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  transition: filter 0.3s ease;
}

.page-live__partner-item img:hover {
  filter: grayscale(0%) brightness(100%);
}

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

.page-live__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(242, 193, 78, 0.1);
  border-bottom: 1px solid var(--phjoy-border);
}

.page-live__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.2);
}

.page-live__faq-title {
  font-size: 1.2em;
  color: var(--phjoy-text-main);
  margin: 0;
  font-weight: 500;
}

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

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

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
  color: rgba(255, 246, 214, 0.7);
}

.page-live__faq-item.active .page-live__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

/* Latest News Section */
.page-live__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-live__news-card {
  text-align: left;
  padding-bottom: 20px;
}

.page-live__news-card .page-live__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-live__news-card .page-live__card-text {
  margin-bottom: 15px;
}

.page-live__news-date {
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-live__hero-content {
    margin-top: 100px;
  }
  .page-live__section-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-live__section {
    padding: 40px 0;
  }

  .page-live__hero-section {
    min-height: 60vh;
    padding-top: 10px !important; /* Ensure small padding, body handles header offset */
  }

  .page-live__hero-content {
    padding: 30px 15px;
    margin-top: 120px;
    margin-bottom: 40px;
  }

  .page-live__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }

  .page-live__hero-description {
    font-size: 1em;
  }

  .page-live__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 12px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-live__container,
  .page-live__section,
  .page-live__card,
  .page-live__video-container,
  .page-live__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-live__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .page-live__partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .page-live__partner-item {
    height: 80px;
  }

  .page-live__mobile-app-content {
    grid-template-columns: 1fr;
  }

  .page-live__app-image {
    margin-top: 20px;
  }

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

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

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

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

  .page-live__faq-title {
    font-size: 1.1em;
  }
}