/* style/live.css */

/* Variables for colors */
:root {
  --okbet-primary-color: #F2C14E;
  --okbet-secondary-color: #FFD36B;
  --okbet-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --okbet-card-bg: #111111;
  --okbet-background: #0A0A0A;
  --okbet-text-main: #FFF6D6;
  --okbet-border: #3A2A12;
  --okbet-glow: #FFD36B;
}

/* Base styles for .page-live to ensure contrast with body background */
/* Assuming body background is dark based on provided color scheme */
.page-live {
  font-family: Arial, sans-serif;
  color: var(--okbet-text-main); /* Light text for dark background */
  background-color: var(--okbet-background); /* Explicitly set for main content area */
}

.page-live__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: bold;
  color: var(--okbet-primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-live__main-title {
  font-size: clamp(2.5em, 6vw, 3.2em);
  font-weight: 900;
  color: var(--okbet-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 800px;
}

.page-live__description {
  font-size: 1.1em;
  color: var(--okbet-text-main);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-live__text-block {
  font-size: 1em;
  line-height: 1.6;
  color: var(--okbet-text-main);
  margin-bottom: 20px;
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden;
  min-height: 600px;
}

.page-live__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  margin-bottom: 40px;
}

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

.page-live__hero-content {
  position: relative;
  z-index: 2; /* Ensure text is above video */
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

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

/* Buttons */
.page-live__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

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

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  text-align: center;
}

.page-live__btn-primary {
  background: var(--okbet-button-gradient);
  color: #ffffff; /* White text for gradient button */
  border: none;
}

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

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

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

/* Card styles */
.page-live__card {
  background-color: var(--okbet-card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--okbet-border);
  color: var(--okbet-text-main);
}

/* Sections */
.page-live__about-section,
.page-live__benefits-section,
.page-live__promo-section,
.page-live__call-to-action-section {
  background-color: var(--okbet-background);
  padding: 60px 0;
}

.page-live__dark-section {
  background-color: var(--okbet-background);
  padding: 60px 0;
}

.page-live__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
}

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

.page-live__category-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  min-height: 180px;
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}

.page-live__category-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-live__category-title a:hover {
  color: var(--okbet-secondary-color);
}

.page-live__category-description {
  font-size: 0.95em;
  color: var(--okbet-text-main);
  line-height: 1.5;
}

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

.page-live__benefit-item {
  text-align: center;
  padding: 25px;
}

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

.page-live__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--okbet-primary-color);
  margin-bottom: 10px;
}

.page-live__benefit-description {
  font-size: 1em;
  color: var(--okbet-text-main);
  line-height: 1.6;
}

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

.page-live__step-item {
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-live__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--okbet-primary-color);
  margin-bottom: 15px;
}

.page-live__step-description {
  font-size: 1em;
  color: var(--okbet-text-main);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-live__promo-card {
  padding: 20px;
  text-align: center;
}

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

.page-live__promo-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-live__promo-title a:hover {
  color: var(--okbet-secondary-color);
}

.page-live__promo-description {
  font-size: 0.95em;
  color: var(--okbet-text-main);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-live__faq-list {
  margin-top: 30px;
}

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

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--okbet-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-live__faq-title {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--okbet-text-main);
  margin: 0;
}

.page-live__faq-toggle {
  font-size: 1.5em;
  color: var(--okbet-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;
  background-color: var(--okbet-card-bg);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-live__faq-item.active .page-live__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 20px;
  border: 1px solid var(--okbet-border);
  border-top: none;
}

.page-live__faq-answer p {
  color: var(--okbet-text-main);
  margin: 0;
}

/* Call to Action Section */
.page-live__call-to-action-section {
  text-align: center;
  padding: 60px 0;
  background-color: var(--okbet-background);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__video-container {
    padding-bottom: 65%; /* Adjust for smaller screens */
  }
}

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

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

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

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

  .page-live__video-container {
    padding-bottom: 75%; /* More vertical space on smaller screens */
  }

  .page-live__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
  }

  .page-live__container {
    padding: 30px 15px;
  }

  .page-live__cta-buttons {
    flex-direction: column;
    gap: 10px;
    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__cta-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__image,
  .page-live__benefit-image,
  .page-live__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }

  .page-live__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

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

  .page-live__game-categories,
  .page-live__benefits-grid,
  .page-live__steps-grid,
  .page-live__promo-cards {
    grid-template-columns: 1fr;
  }

  .page-live__faq-question,
  .page-live__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-live__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-live__section-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }
}