/* style/live.css */

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

.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--okbet-text-main); /* Ensure contrast with body background */
  background-color: var(--okbet-background);
}

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

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

.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: var(--okbet-text-main);
  text-align: center;
}

.page-live__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-live__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-live__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-live__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--okbet-secondary-color);
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
  line-height: 1.2;
}

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

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

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

.page-live__btn-primary {
  background: var(--okbet-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-live__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

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

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

.page-live__btn-tertiary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--okbet-secondary-color);
  border: 1px solid var(--okbet-border);
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.page-live__btn-primary--full-width {
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
}

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

.page-live__section-title {
  font-size: 2.5rem;
  color: var(--okbet-secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-live__section-description {
  font-size: 1.1rem;
  color: var(--okbet-text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__sub-title {
  font-size: 1.8rem;
  color: var(--okbet-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-live__sub-title--providers {
  margin-top: 60px;
}

.page-live__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

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

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

.page-live__card {
  background-color: var(--okbet-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--okbet-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-live__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-live__card-image--small {
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__card-title {
  font-size: 1.5rem;
  color: var(--okbet-primary-color);
  margin-bottom: 15px;
}

.page-live__card-content p {
  color: var(--okbet-text-main);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-live__game-categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-live__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--okbet-text-main);
  padding: 15px 20px;
  background-color: var(--okbet-card-bg);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid var(--okbet-border);
  min-width: 100px;
}

.page-live__category-card:hover {
  background-color: rgba(242, 193, 78, 0.2);
  color: var(--okbet-secondary-color);
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.page-live__category-name {
  font-weight: bold;
  font-size: 0.9rem;
}

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

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

.page-live__provider-logo {
  width: 100%;
  max-width: 167px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7) contrast(1.5);
  transition: filter 0.3s ease;
}

.page-live__provider-logo:hover {
  filter: grayscale(0%) brightness(1) contrast(1);
}

.page-live__promo-section .page-live__container {
  text-align: left;
}

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

.page-live__promo-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-live__text-link {
  color: var(--okbet-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-live__text-link:hover {
  text-decoration: underline;
}

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

.page-live__step-card {
  position: relative;
  padding-top: 50px;
}

.page-live__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--okbet-button-gradient);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid var(--okbet-secondary-color);
  box-shadow: 0 0 15px var(--okbet-glow);
}

.page-live__step-card .page-live__card-title {
  margin-top: 20px;
}

.page-live__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-live__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-live__faq-section .page-live__container {
  text-align: left;
}

.page-live__faq-list {
  margin-top: 40px;
}

.page-live__faq-item {
  background-color: var(--okbet-card-bg);
  border: 1px solid var(--okbet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-live__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--okbet-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-live__faq-title {
  font-size: 1.2rem;
  color: var(--okbet-primary-color);
  margin: 0;
}

.page-live__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--okbet-secondary-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;
  color: var(--okbet-text-main);
}

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

.page-live__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-live__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-live__promo-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-live__hero-content {
    padding: 20px;
  }
  .page-live__main-title {
    font-size: 2.2rem;
  }
  .page-live__section-title {
    font-size: 2rem;
  }
  .page-live__sub-title {
    font-size: 1.5rem;
  }
  .page-live__grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-live__section {
    padding: 40px 15px;
  }
  .page-live__main-title {
    font-size: 2rem;
  }
  .page-live__lead-text {
    font-size: 1rem;
  }
  .page-live__section-title {
    font-size: 1.8rem;
  }
  .page-live__section-description {
    font-size: 0.95rem;
  }
  .page-live__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-tertiary {
    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__btn-primary--full-width {
    max-width: 100% !important;
  }
  .page-live__card {
    padding: 20px;
  }
  .page-live__grid-cards,
  .page-live__game-providers-grid,
  .page-live__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-live__category-card {
    min-width: unset;
    width: 100%;
  }
  
  /* Mobile image responsiveness */
  .page-live img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__image-wrapper,
  .page-live__promo-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-live__hero-image-wrapper {
    width: 100% !important;
    height: 100% !important;
  }
  .page-live__hero-image {
    width: 100% !important;
    height: 100% !important;
  }
}