/* style/live.css */

:root {
  --ph365-primary: #F2C14E;
  --ph365-secondary: #FFD36B;
  --ph365-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --ph365-card-bg: #111111;
  --ph365-bg: #0A0A0A;
  --ph365-text-main: #FFF6D6;
  --ph365-border: #3A2A12;
  --ph365-glow: #FFD36B;
  --header-offset: 120px; /* Default for desktop */
}

.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--ph365-text-main); /* Ensure light text on dark body background */
  background-color: var(--ph365-bg);
}

.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(--ph365-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-live__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  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(--ph365-button-gradient);
  color: #ffffff;
  border: none;
}

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

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

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

.page-live__btn-tertiary {
  background: var(--ph365-card-bg);
  color: var(--ph365-primary);
  border: 1px solid var(--ph365-border);
}

.page-live__btn-tertiary:hover {
  background: var(--ph365-primary);
  color: #ffffff;
}

/* Hero Section */
.page-live__hero-section {
  background: var(--ph365-bg);
  padding-top: var(--header-offset, 120px); /* For fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-live__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Aspect ratio 16:9 for 1200x675 */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-live__hero-content {
  position: relative;
  padding: 40px 20px 80px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-live__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--ph365-primary);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* Introduction Section */
.page-live__introduction-section {
  padding: 80px 0;
  background-color: var(--ph365-bg);
}

/* Game Types Section */
.page-live__game-types-section {
  padding: 80px 0;
  background-color: var(--ph365-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 {
  background: var(--ph365-card-bg);
  border: 1px solid var(--ph365-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-live__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-live__game-card-description {
  font-size: 0.95em;
  color: var(--ph365-text-main);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

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

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

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

.page-live__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

/* How to Get Started Section */
.page-live__get-started-section {
  padding: 80px 0;
  background-color: var(--ph365-card-bg);
}

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

.page-live__steps-list li {
  background: var(--ph365-card-bg);
  border: 1px solid var(--ph365-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-live__step-description {
  font-size: 0.95em;
  color: var(--ph365-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsible Gambling Section */
.page-live__responsible-gambling-section {
  padding: 80px 0;
  background-color: var(--ph365-bg);
}

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

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

.page-live__faq-item {
  background: var(--ph365-card-bg);
  border: 1px solid var(--ph365-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  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;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--ph365-primary);
  background: #1a1a1a;
  transition: background 0.3s ease;
}

.page-live__faq-question:hover {
  background: #2a2a2a;
}

.page-live__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Keep h3 size reasonable within question */
  color: inherit;
}

.page-live__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--ph365-text-main);
  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(--ph365-text-main);
  background: var(--ph365-card-bg);
}

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

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

/* Final CTA Section */
.page-live__cta-final-section {
  padding: 80px 0;
  background-color: var(--ph365-bg);
  text-align: center;
}

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

/* Image styles - ensuring no filters */
.page-live img {
  filter: none; /* Explicitly ensure no filters are applied */
}

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

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

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

@media (max-width: 768px) {
  :root {
    --header-offset: 100px; /* Adjust for mobile header height */
  }

  .page-live {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-live__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile fixed header adjustment */
  }

  .page-live__hero-content {
    padding: 30px 15px 60px;
  }

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

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

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

  .page-live__btn-primary,
  .page-live__btn-secondary,
  .page-live__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }

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

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

  .page-live__game-card-image {
    height: 180px;
  }

  .page-live__feature-item,
  .page-live__steps-list li {
    padding: 20px;
  }

  /* Mobile image responsiveness */
  .page-live img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-live__hero-image-wrapper,
  .page-live__game-card,
  .page-live__feature-item,
  .page-live__steps-list li,
  .page-live__faq-item,
  .page-live__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-live__game-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-live__features-grid, .page-live__steps-list {
    padding: 0 15px;
  }
  .page-live__faq-list {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-live__main-title {
    font-size: clamp(1.5em, 10vw, 2em);
  }

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