/* style/live.css */

/* 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); /* Default text color for the page */
  background-color: var(--background-dark); /* Main page background */
}

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

/* Hero Section */
.page-live__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, main offset from body in shared.css */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-live__hero-video-wrapper {
  position: relative;
  width: 100%;
  max-height: 70vh; /* Limit video height */
  overflow: hidden;
}

.page-live__hero-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken video for text readability */
}

.page-live__hero-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-live__hero-content-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--text-light);
}

.page-live__main-title {
  color: var(--text-light);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-live__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-live__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__play-button,
.page-live__btn-text-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-live__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

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

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

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

/* General Section Styling */
.page-live__about-pagcor-section,
.page-live__game-categories-section,
.page-live__why-choose-us-section,
.page-live__latest-games-section,
.page-live__how-to-start-section,
.page-live__pagcor-compliance-section,
.page-live__faq-section,
.page-live__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-live__section-title {
  color: var(--text-light);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* About PAGCOR Section */
.page-live__content-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.page-live__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-live__text-block p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-live__image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-live__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Game Categories Section */
.page-live__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-live__category-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px 20px;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-live__category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-live__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-live__category-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
}

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

.page-live__feature-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-live__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

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

.page-live__game-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  object-fit: cover;
  display: block;
}

.page-live__game-card h3,
.page-live__game-card p {
  padding: 0 20px;
}

.page-live__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.page-live__game-provider {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 15px;
}

.page-live__play-button {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  width: calc(100% - 40px); /* Adjust for padding */
  margin: 0 20px 20px 20px;
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.page-live__play-button:hover {
  opacity: 0.9;
}

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

/* How to Start Section */
.page-live__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-live__step-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px;
}

.page-live__step-number {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--background-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--text-light);
}

.page-live__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-live__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-live__btn-text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
  padding: 0;
  background: none;
  border: none;
}

.page-live__btn-text-link:hover {
  color: var(--secondary-color);
}

/* PAGCOR Compliance Section */
.page-live__compliance-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-live__compliance-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-live__compliance-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-live__compliance-text .page-live__btn-primary {
  margin-top: 20px;
}

/* 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: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-live__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-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;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
}

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

.page-live__faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 0;
}

/* CTA Section */
.page-live__cta-section {
  background-color: var(--primary-color);
  color: var(--background-dark);
  padding: 80px 0;
}

.page-live__cta-section .page-live__section-title,
.page-live__cta-section .page-live__section-description {
  color: var(--background-dark);
}

.page-live__cta-section .page-live__btn-primary {
  background: var(--background-dark);
  color: var(--primary-color);
  border: none;
}

.page-live__cta-section .page-live__btn-primary:hover {
  background: #333;
  color: #ffffff;
}

.page-live__cta-section .page-live__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-live__cta-section .page-live__btn-secondary:hover {
  background: var(--background-dark);
  color: var(--primary-color);
  border-color: var(--background-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__main-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }
  .page-live__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding-bottom: 40px;
  }
  .page-live__hero-content-area {
    width: 90%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .page-live__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-live__intro-text {
    font-size: 1rem;
  }
  .page-live__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-live__btn-primary,
  .page-live__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-live__hero-cta-buttons,
  .page-live__view-all-button-container,
  .page-live__cta-buttons {
    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__about-pagcor-section,
  .page-live__game-categories-section,
  .page-live__why-choose-us-section,
  .page-live__latest-games-section,
  .page-live__how-to-start-section,
  .page-live__pagcor-compliance-section,
  .page-live__faq-section,
  .page-live__cta-section {
    padding: 40px 0;
  }
  .page-live__section-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  }
  .page-live__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-live__content-grid,
  .page-live__compliance-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-live__text-block, .page-live__image-wrapper {
    max-width: 100%;
  }
  .page-live__image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-live__category-card,
  .page-live__feature-item,
  .page-live__game-card,
  .page-live__step-card {
    padding: 25px 15px;
  }
  .page-live__game-thumbnail {
    height: 180px;
  }
  .page-live__play-button {
    width: calc(100% - 30px);
    margin: 0 15px 15px 15px;
  }
  .page-live__faq-question {
    padding: 15px;
  }
  .page-live__faq-answer {
    padding: 0 15px;
  }
  .page-live__faq-item.active .page-live__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-live__section,
  .page-live__card,
  .page-live__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Video section specific mobile padding */
  .page-live__hero-section {
    padding-top: 10px !important;
  }
}

/* Ensure all video elements are responsive */
.page-live__hero-video {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.page-live__hero-video-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-live__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-live__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure content area images are not too small in desktop */
.page-live__content-area img,
.page-live__game-card img,
.page-live__compliance-content img {
  min-width: 200px;
  min-height: 200px;
}

/* Exception for category icons which are small */
.page-live__category-icon {
  min-width: unset;
  min-height: unset;
}