/* style/live.css */

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

/* Base styles for the page content */
.page-live {
  font-family: 'Arial', sans-serif;
  color: var(--page-live-text-main); /* Default text color for the page */
  background-color: var(--page-live-background-color);
  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;
  position: relative;
}

.page-live__dark-bg {
  background-color: var(--page-live-background-color);
  color: var(--page-live-text-main);
}

.page-live__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-live__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-live-primary-color);
  line-height: 1.2;
}

.page-live__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-live-text-main);
}

.page-live__card {
  background-color: var(--page-live-card-bg);
  border: 1px solid var(--page-live-border-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-live-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-live-glow-color);
}

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-live__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px var(--page-live-glow-color);
}

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

.page-live__btn-secondary:hover {
  background-color: var(--page-live-primary-color);
  color: #ffffff;
  box-shadow: 0 0 10px var(--page-live-glow-color);
}

.page-live__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Hero Section */
.page-live__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: var(--page-live-background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-live__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-live__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-live__hero-text-content {
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-live__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 900;
  color: var(--page-live-primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-live__intro-text {
  font-size: 1.2em;
  color: var(--page-live-text-main);
  margin-bottom: 30px;
}

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

/* About Live Casino Section */
.page-live__about-live-casino {
  background-color: var(--page-live-background-color);
}

.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;
}

.page-live__feature-title {
  font-size: 1.5em;
  color: var(--page-live-primary-color);
  margin-bottom: 15px;
}

/* Popular Games Section */
.page-live__popular-games {
  background-color: var(--page-live-card-bg);
}

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

.page-live__game-card {
  text-align: center;
  overflow: hidden;
}

.page-live__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  display: block;
}

.page-live__game-title {
  font-size: 1.4em;
  color: var(--page-live-primary-color);
  margin-bottom: 10px;
}

.page-live__game-card .page-live__btn-primary {
  margin-top: 15px;
  width: calc(100% - 30px); /* Adjust for padding in card */
}

/* How to Join Section */
.page-live__how-to-join {
  background-color: var(--page-live-background-color);
}

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

.page-live__step-item {
  text-align: center;
}

.page-live__step-icon {
  background: var(--page-live-button-gradient);
  color: #ffffff;
  width: 60px;
  height: 60px;
  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 var(--page-live-glow-color);
}

.page-live__step-title {
  font-size: 1.6em;
  color: var(--page-live-primary-color);
  margin-bottom: 15px;
}

.page-live__step-item .page-live__btn-primary,
.page-live__step-item .page-live__btn-secondary {
  margin-top: 20px;
  width: calc(100% - 30px);
}

/* Promotions Section */
.page-live__promotions {
  background-color: var(--page-live-card-bg);
}

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

.page-live__promo-card {
  text-align: center;
  overflow: hidden;
}

.page-live__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  display: block;
}

.page-live__promo-title {
  font-size: 1.4em;
  color: var(--page-live-primary-color);
  margin-bottom: 10px;
}

.page-live__promo-card .page-live__btn-secondary {
  margin-top: 15px;
}

/* Responsible Gaming Section */
.page-live__responsible-gaming {
  background-color: var(--page-live-background-color);
}

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

.page-live__info-item {
  text-align: center;
}

.page-live__info-title {
  font-size: 1.5em;
  color: var(--page-live-primary-color);
  margin-bottom: 15px;
}

.page-live__contact-support {
  text-align: center;
  margin-top: 50px;
}

/* Mobile Gaming Section */
.page-live__mobile-gaming {
  background-color: var(--page-live-card-bg);
}

.page-live__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-live__mobile-text {
  flex: 1;
  text-align: left;
}

.page-live__mobile-subtitle {
  font-size: 2em;
  color: var(--page-live-primary-color);
  margin-bottom: 20px;
}

.page-live__app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-live__mobile-image-wrapper {
  flex: 1;
  text-align: center;
  max-width: 50%;
}

.page-live__mobile-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 400px;
  object-fit: contain;
}

/* FAQ Section */
.page-live__faq {
  background-color: var(--page-live-background-color);
}

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

.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: var(--page-live-primary-color);
  color: #ffffff;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-live__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-live__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  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;
  background-color: var(--page-live-card-bg);
  color: var(--page-live-text-main);
  transition: max-height 0.3s ease, padding 0.3s ease;
  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 to show content */
  padding: 15px 20px;
}

.page-live__faq-answer p {
  margin: 0;
}

/* Partners Section */
.page-live__partners {
  background-color: var(--page-live-card-bg);
}

.page-live__partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-live__partner-logo {
  width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.page-live__partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Why Choose Section */
.page-live__why-choose {
  background-color: var(--page-live-background-color);
}

.page-live__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-live__benefits-list li {
  background-color: var(--page-live-card-bg);
  border: 1px solid var(--page-live-border-color);
  border-radius: 8px;
  padding: 20px;
  font-size: 1.1em;
  position: relative;
  padding-left: 45px;
}

.page-live__benefits-list li::before {
  content: '✔';
  color: var(--page-live-primary-color);
  font-size: 1.2em;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.page-live__final-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__hero-section {
    min-height: 500px;
  }

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

  .page-live__hero-image {
    max-height: 500px;
  }

  .page-live__mobile-content {
    flex-direction: column-reverse;
  }

  .page-live__mobile-image-wrapper {
    max-width: 70%;
    margin-bottom: 30px;
  }
  .page-live__mobile-text {
    text-align: center;
  }
  .page-live__app-buttons {
    justify-content: center;
  }
}

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

  .page-live__section-title {
    font-size: 2em;
  }

  .page-live__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-live__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
    min-height: 400px;
  }

  .page-live__hero-image {
    max-height: 300px;
  }

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

  .page-live__intro-text {
    font-size: 1em;
  }

  .page-live__cta-buttons {
    flex-direction: column;
    gap: 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 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;
  }

  .page-live__features-grid,
  .page-live__game-grid,
  .page-live__steps-grid,
  .page-live__promo-grid,
  .page-live__info-grid {
    grid-template-columns: 1fr;
  }

  .page-live__mobile-image-wrapper {
    max-width: 90%;
  }

  .page-live__partner-logo {
    width: 120px; 
    height: 90px; 
  }
  .page-live__benefits-list {
    grid-template-columns: 1fr;
  }
  .page-live__benefits-list li {
    padding-left: 35px;
  }
  .page-live__benefits-list li::before {
    left: 10px;
  }
}

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

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

  .page-live__hero-image {
    max-height: 250px;
  }

  .page-live__cta-buttons {
    gap: 10px;
  }
  .page-live__app-buttons {
    flex-direction: column;
  }
  .page-live__mobile-image-wrapper {
    max-width: 100%;
  }
  .page-live__partner-logo {
    width: 100px; 
    height: 75px; 
  }
}