/* style/live.css */

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

/* Assuming body background is dark from shared.css */
.page-live {
  font-family: Arial, sans-serif;
  color: var(--phdream-text-main); /* Light text for dark background */
  background-color: var(--phdream-background);
  line-height: 1.6;
}

.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(--phdream-accent-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-live__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--phdream-text-main);
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; /* Small decorative top padding */
  min-height: 600px;
  overflow: hidden;
  text-align: center;
  background-color: var(--phdream-background);
}

.page-live__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-live__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-live__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-live__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: var(--phdream-accent-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-live__hero-description {
  font-size: 1.2em;
  color: var(--phdream-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-live__btn-primary,
.page-live__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-live__btn-primary {
  background: var(--phdream-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
}

.page-live__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.page-live__btn-secondary {
  background: var(--phdream-card-bg);
  color: var(--phdream-accent-color);
  border: 2px solid var(--phdream-accent-color);
}

.page-live__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: var(--phdream-accent-color);
  color: var(--phdream-card-bg);
}

/* Intro Section */
.page-live__intro-section {
  padding: 60px 0;
  background-color: var(--phdream-background);
}

/* Why Choose Section */
.page-live__why-choose-section {
  padding: 60px 0;
  background-color: var(--phdream-card-bg);
}

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

.page-live__feature-item {
  background: var(--phdream-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--phdream-border-color);
}

.page-live__feature-title {
  font-size: 1.8em;
  color: var(--phdream-accent-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

/* Games Section */
.page-live__games-section {
  padding: 60px 0;
  background-color: var(--phdream-background);
}

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

.page-live__game-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--phdream-card-bg);
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--phdream-text-main);
  transition: all 0.3s ease;
  border: 1px solid var(--phdream-border-color);
}

.page-live__game-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: var(--phdream-main-color);
  color: #ffffff;
}

.page-live__game-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  filter: brightness(1.2); /* Enhance icon visibility */
}

.page-live__game-category-name {
  font-size: 1.1em;
  font-weight: 600;
}

/* Providers Section */
.page-live__providers-section {
  padding: 60px 0;
  background-color: var(--phdream-card-bg);
}

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

.page-live__provider-item {
  width: 100%;
  height: 127px; /* Fixed height for image */
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--phdream-background);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--phdream-border-color);
}

.page-live__provider-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  padding: 10px;
  filter: grayscale(0.7) brightness(1.2); /* Slightly muted but visible */
  transition: filter 0.3s ease;
}

.page-live__provider-item:hover .page-live__provider-logo {
  filter: grayscale(0) brightness(1.0);
}

/* Promo Section */
.page-live__promo-section {
  padding: 60px 0;
  background-color: var(--phdream-background);
  text-align: center;
}

/* Getting Started Section */
.page-live__getting-started-section {
  padding: 60px 0;
  background-color: var(--phdream-card-bg);
  text-align: center;
}

.page-live__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.page-live__step-item {
  background: var(--phdream-background);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--phdream-border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  counter-increment: step-counter;
}

.page-live__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  width: 40px;
  height: 40px;
  background: var(--phdream-main-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4em;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-live__step-title {
  font-size: 1.5em;
  color: var(--phdream-accent-color);
  margin-bottom: 10px;
  padding-left: 60px; /* Offset for number */
}

.page-live__step-description {
  font-size: 1em;
  color: var(--phdream-text-main);
  padding-left: 60px; /* Offset for number */
}

/* Responsible Gaming Section */
.page-live__responsible-gaming-section {
  padding: 60px 0;
  background-color: var(--phdream-background);
  text-align: center;
}

/* FAQ Section */
.page-live__faq-section {
  padding: 60px 0;
  background-color: var(--phdream-card-bg);
}

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

.page-live__faq-item {
  background: var(--phdream-background);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--phdream-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-live__providers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding: 40px 15px;
    padding-top: 10px; /* Decorative top padding, body handles header offset */
  }

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

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

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

  .page-live__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-live__btn-primary,
  .page-live__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-live__features-grid,
  .page-live__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .page-live__providers-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on smaller tablets/phones */
  }

  .page-live__provider-item {
    height: 100px;
  }
  .page-live__provider-logo {
    width: 100%; /* Adjust to fit container better */
    height: auto;
    max-width: 120px;
  }

  .page-live__step-item::before {
    left: 15px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  .page-live__step-title,
  .page-live__step-description {
    padding-left: 55px;
  }

  /* Mobile responsive images and containers */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-live__section,
  .page-live__card,
  .page-live__container,
  .page-live__hero-image-wrapper,
  .page-live__game-category-card,
  .page-live__provider-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-live__hero-image-wrapper {
    padding: 0;
  }

  .page-live__game-icon {
    width: 25px;
    height: 25px;
  }

  .page-live__game-category-card {
    padding: 15px 10px;
  }

  .page-live__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-live__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-live__providers-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on very small phones */
  }
  .page-live__game-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}