/* style/live.css */

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

/* Base styles for the page-live scope */
.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--winph-text-main); /* Text Main on dark background */
  background-color: var(--winph-bg-dark);
}

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

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

.page-live__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--winph-text-main);
}

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

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

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-play {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-live__btn-primary {
  background: var(--winph-btn-gradient);
  color: #ffffff; /* White text on bright gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-live__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: var(--winph-secondary);
  border-color: var(--winph-secondary);
  transform: translateY(-2px);
}

.page-live__btn-play {
  background: var(--winph-btn-gradient);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

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

/* Cards */
.page-live__card {
  background-color: var(--winph-card-bg);
  border: 1px solid var(--winph-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--winph-text-main);
}

.page-live__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--winph-glow);
}

.page-live__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as a block element */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-live__card-description {
  font-size: 1em;
  color: var(--winph-text-main);
}

/* Hero Section */
.page-live__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* For desktop, adjusted by shared.css body padding */
  padding-bottom: 60px;
  background-color: var(--winph-bg-dark);
  color: var(--winph-text-main);
  position: relative;
  overflow: hidden;
}

.page-live__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-live__hero-content {
  max-width: 800px;
  text-align: center;
  padding: 20px;
  z-index: 1;
  margin-bottom: 40px; /* Space between content and image on smaller screens */
}

.page-live__hero-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Use clamp for H1 */
  color: var(--winph-primary);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* Overview Section */
.page-live__overview-section {
  padding: 80px 0;
}

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

/* Games Section */
.page-live__games-section {
  padding: 80px 0;
}

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

.page-live__game-category-item {
  background-color: var(--winph-card-bg);
  border: 1px solid var(--winph-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__game-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--winph-glow);
}

.page-live__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-live__category-description {
  font-size: 0.95em;
  color: var(--winph-text-main);
}

/* Promo Section */
.page-live__promo-section {
  padding: 80px 0;
}

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

/* Experience Section */
.page-live__experience-section {
  padding: 80px 0;
}

.page-live__full-width-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 40px;
  min-width: 200px;
  min-height: 200px;
}

/* Security Section */
.page-live__security-section {
  padding: 80px 0;
}

.page-live__security-features {
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-live__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-live__security-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--winph-text-main);
}

.page-live__list-icon {
  color: #4CAF50; /* Green checkmark */
  font-size: 1.4em;
  margin-right: 10px;
  font-weight: bold;
}

/* Get Started Section */
.page-live__get-started-section {
  padding: 80px 0;
}

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

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

.page-live__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--winph-btn-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid var(--winph-card-bg);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.6);
}

/* Partners Section */
.page-live__partners-section {
  padding: 80px 0;
}

.page-live__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 2x5 grid */
  gap: 20px;
  margin-top: 40px;
  align-items: center;
  justify-items: center;
}

.page-live__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: brightness(0.8) grayscale(0.2); /* Slightly dim for dark background */
  transition: filter 0.3s ease;
  min-width: 167px;
  min-height: 127px;
}

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

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

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

.page-live__faq-item {
  background-color: var(--winph-card-bg);
  border: 1px solid var(--winph-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.page-live__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-live__faq-toggle {
  font-size: 1.8em;
  font-weight: normal;
  line-height: 1;
  color: var(--winph-secondary);
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--winph-text-main);
}

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

.page-live__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.5;
}

/* Final CTA Section */
.page-live__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Footer Copyright */
.page-live__footer-copyright {
  padding: 30px 0;
  background-color: var(--winph-bg-dark);
  border-top: 1px solid var(--winph-border);
  text-align: center;
  font-size: 0.9em;
  color: var(--winph-text-main);
}

.page-live__copyright-text {
  margin: 0;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-live__hero-section {
    flex-direction: row; /* Desktop: row layout */
    text-align: left;
    padding-top: var(--header-offset, 120px); /* Ensure desktop padding */
    padding-bottom: 80px;
  }

  .page-live__hero-content {
    text-align: left;
    margin-right: 40px;
    margin-bottom: 0;
    flex: 1;
    padding-left: 20px;
  }

  .page-live__hero-image-container {
    flex: 1;
    padding-right: 20px;
  }

  .page-live__hero-buttons {
    justify-content: flex-start;
  }
}

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

  .page-live__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-live__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-live__hero-description {
    font-size: 1em;
  }

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

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-play,
  .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 !important;
    padding-right: 15px !important;
  }

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

  .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__partner-logo {
    width: 100px;
    height: auto;
  }

  .page-live__partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .page-live__hero-buttons {
    flex-direction: column;
  }

  .page-live__partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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