/* style/live.css */

:root {
  --okbet-primary: #F2C14E;
  --okbet-secondary: #FFD36B;
  --okbet-card-bg: #111111;
  --okbet-bg: #0A0A0A;
  --okbet-text-main: #FFF6D6;
  --okbet-border: #3A2A12;
  --okbet-glow: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Ensure body padding-top is handled by shared.css */
.page-live {
  color: var(--okbet-text-main); /* Dark background (from shared.css) requires light text */
  background-color: var(--okbet-bg);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  text-align: center;
  background-color: var(--okbet-bg);
  overflow: hidden;
}

.page-live__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 211, 107, 0.3);
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.page-live__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-live__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-live__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-live__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--okbet-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

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

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

.page-live__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-live__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-live__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

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

.page-live__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
}

.page-live__section {
  padding: 60px 20px;
  background-color: var(--okbet-bg);
}

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

.page-live__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--okbet-secondary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-live__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--okbet-secondary);
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-live__card {
  background-color: var(--okbet-card-bg);
  border: 1px solid var(--okbet-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--okbet-text-main);
}

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

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

.page-live__feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live__feature-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--okbet-glow)); /* Allowed for icons */
}

.page-live__game-categories .page-live__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-live__category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--okbet-text-main);
  font-weight: 600;
  padding: 20px;
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 3px var(--okbet-glow)); /* Allowed for icons */
}

.page-live__category-name {
  font-size: 1rem;
}

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

.page-live__promo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-live__promo-image {
  width: 100%;
  height: auto;
  max-height: 225px; /* Maintain aspect ratio, set max height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-live__link-title {
  color: var(--okbet-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-live__link-title:hover {
  color: var(--okbet-primary);
}

.page-live__promo-card .page-live__cta-button {
  margin-top: auto; /* Push button to bottom */
}

.page-live__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-live__step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live__step-item .page-live__sub-title {
  color: var(--okbet-primary);
}

.page-live__partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr));
  gap: 15px;
  margin-top: 40px;
  justify-items: center;
}

.page-live__partner-item {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 127px; /* Fixed height for partner items */
  width: 167px; /* Fixed width for partner items */
}

.page-live__partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.page-live__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-live__responsible-gaming-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.2);
  min-width: 200px;
}

.page-live__responsible-gaming-text {
  flex: 2 1 500px;
}

.page-live__responsible-gaming-text p {
  margin-bottom: 15px;
  color: var(--okbet-text-main);
}

.page-live__faq-section {
  padding: 60px 20px;
  background-color: var(--okbet-bg);
}

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

.page-live__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 20px;
  background-color: var(--okbet-card-bg);
  border: 1px solid var(--okbet-border);
  border-radius: 8px;
  color: var(--okbet-secondary);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

.page-live__faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: inherit;
}

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

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(17, 17, 17, 0.7);
  border-left: 1px solid var(--okbet-border);
  border-right: 1px solid var(--okbet-border);
  border-bottom: 1px solid var(--okbet-border);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--okbet-text-main);
}

.page-live__faq-answer p {
  margin: 15px 0;
  font-size: 1rem;
}

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

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

.page-live__join-cta {
  padding: 80px 20px;
  text-align: center;
  background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('[GALLERY:bg:1920x1080:okbet,live casino,gaming,philippines,background]');
  background-size: cover;
  background-position: center;
}

.page-live__join-cta .page-live__section-title {
  margin-bottom: 20px;
}

.page-live__join-cta p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: var(--okbet-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-live__features-grid,
  .page-live__promotions-list,
  .page-live__steps-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-live__partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

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

  .page-live__description {
    font-size: 1rem;
  }

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

  .page-live__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-live__sub-title {
    font-size: 1.2rem;
  }

  .page-live__content-area {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile responsive images */
  .page-live img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-live__video-container,
  .page-live__promo-card,
  .page-live__responsible-gaming-content,
  .page-live__faq-item,
  .page-live__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-live__responsible-gaming-content {
    flex-direction: column;
  }
  .page-live__responsible-gaming-image {
    width: 100%;
    flex: none;
  }
  .page-live__partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .page-live__partner-item {
    width: 100%; /* Allow partner items to fill container */
    height: auto;
    max-width: 167px;
    max-height: 127px;
  }
  .page-live__faq-question,
  .page-live__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-live__features-grid,
  .page-live__promotions-list,
  .page-live__steps-list,
  .page-live__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-live__partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}