/* style/live.css */

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

.page-live {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--phsky-text-main); /* Ensure light text on dark body background */
  background-color: var(--phsky-background); /* Explicitly set for consistency */
}

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

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

.page-live__text-main {
  color: var(--phsky-text-main);
}

.page-live__card {
  background-color: var(--phsky-card-bg);
  border: 1px solid var(--phsky-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  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.4), 0 0 15px var(--phsky-glow);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--phsky-primary);
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-live__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--phsky-primary);
}

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

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

.page-live__btn-primary {
  background: var(--phsky-button-gradient);
  color: #ffffff; /* White text on dark button */
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-live__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

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

.page-live__btn-secondary:hover {
  background-color: var(--phsky-primary);
  color: var(--phsky-background); /* Dark text on primary hover */
  transform: translateY(-2px);
}

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

.page-live__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-live__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-live__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--phsky-primary);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

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

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

/* About Section */
.page-live__about-section {
  padding: 80px 0;
}

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

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

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

.page-live__item-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--phsky-primary);
  margin-bottom: 10px;
}

.page-live__item-text {
  font-size: 1em;
  color: var(--phsky-text-main);
}

/* Game Categories Section */
.page-live__game-categories-section {
  padding: 80px 0;
}

.page-live__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-live__category-card {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

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

.page-live__category-title {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--phsky-primary);
  margin-bottom: 10px;
}

.page-live__category-text {
  font-size: 0.9em;
  color: var(--phsky-text-main);
}

/* Why Choose Section */
.page-live__why-choose-section {
  padding: 80px 0;
}

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

.page-live__feature-item {
  background-color: var(--phsky-card-bg);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--phsky-border);
}

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

.page-live__feature-text {
  color: var(--phsky-text-main);
}

.page-live__why-choose-cta {
  text-align: center;
}

/* Promotions Section */
.page-live__promotions-section {
  padding: 80px 0;
}

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

.page-live__promo-card {
  text-align: center;
  padding: 0 0 25px 0;
  overflow: hidden;
}

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

.page-live__promo-title {
  font-size: 1.5em;
  color: var(--phsky-primary);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-live__promo-text {
  font-size: 1em;
  color: var(--phsky-text-main);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-live__promotions-cta {
  text-align: center;
}

/* How to Get Started Section */
.page-live__guide-section {
  padding: 80px 0;
}

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

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

.page-live__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--phsky-button-gradient);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-live__step-title {
  font-size: 1.5em;
  color: var(--phsky-primary);
  margin-bottom: 10px;
}

.page-live__step-text {
  font-size: 1em;
  color: var(--phsky-text-main);
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-live__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

.page-live__responsible-gaming-cta {
  margin-top: 40px;
}

/* FAQ Section */
.page-live__faq-section {
  padding: 80px 0;
}

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

.page-live__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--phsky-border);
  border-radius: 8px;
  overflow: hidden;
}

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

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

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

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

.page-live__faq-item.active .page-live__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

.page-live__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #0d0d0d; /* Slightly lighter than card bg */
  color: var(--phsky-text-main);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

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

/* Call to Action Section */
.page-live__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__hero-title {
    font-size: clamp(2.2em, 4.5vw, 3.5em);
  }
}

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

  .page-live__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared */
    padding-bottom: 40px;
  }

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

  .page-live__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-live__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    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;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1em !important;
  }

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

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

  .page-live__about-section,
  .page-live__game-categories-section,
  .page-live__why-choose-section,
  .page-live__promotions-section,
  .page-live__guide-section,
  .page-live__responsible-gaming-section,
  .page-live__faq-section,
  .page-live__cta-section {
    padding: 40px 0;
  }

  .page-live__about-grid,
  .page-live__categories-grid,
  .page-live__features-list,
  .page-live__promotions-grid,
  .page-live__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Buttons and their containers */
  .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__cta-buttons {
    flex-direction: column;
  }
}