/* style/live.css */
.page-live {
  color: #FFFFFF; /* Light text for dark body background */
  background-color: #000000; /* Main background color, assuming shared.css secondary-color is dark */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-live__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

.page-live__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-live__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-live__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight title with accent color */
  line-height: 1.2;
}

.page-live__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #FFFFFF;
}

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

.page-live__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-live__button--register {
  background-color: #FFFFFF;
  color: #000000; /* Dark text on white button */
}

.page-live__button--register:hover {
  background-color: #f0f0f0;
}

.page-live__button--login {
  background-color: #FCBC45;
  color: #000000; /* Dark text on accent button */
}

.page-live__button--login:hover {
  background-color: #e0a73b;
}

.page-live__hero-image {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px; /* Constrain image width for better layout */
  border-radius: 12px;
  overflow: hidden;
}

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

.page-live__games-section,
.page-live__why-choose-section,
.page-live__promotions-section,
.page-live__responsible-gaming-section,
.page-live__cta-download-section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Slightly lighter dark background for sections */
}

.page-live__section-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-live__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-live__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #CCCCCC;
}

.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-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-live__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-live__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #FFFFFF;
}

.page-live__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #CCCCCC;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-live__button--play {
  background-color: #FCBC45;
  color: #000000;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  text-align: center;
}

.page-live__button--play:hover {
  background-color: #e0a73b;
}

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

.page-live__advantage-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-live__advantage-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-live__advantage-text {
  font-size: 1em;
  line-height: 1.6;
  color: #CCCCCC;
}

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

.page-live__button--join,
.page-live__button--view-promo,
.page-live__button--learn-more {
  background-color: #FCBC45;
  color: #000000;
}

.page-live__button--join:hover,
.page-live__button--view-promo:hover,
.page-live__button--learn-more:hover {
  background-color: #e0a73b;
}

.page-live__button--download {
  background-color: #FFFFFF;
  color: #000000;
}

.page-live__button--download:hover {
  background-color: #f0f0f0;
}

.page-live__cta-download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-live__cta-image {
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-live__hero-title {
    font-size: 3em;
  }
  .page-live__section-title {
    font-size: 2.2em;
  }
  .page-live__game-grid,
  .page-live__advantage-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-live__hero-section {
    padding: 60px 15px;
  }
  .page-live__hero-title {
    font-size: 2.5em;
  }
  .page-live__hero-description {
    font-size: 1em;
  }
  .page-live__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-live__button {
    width: 100%;
    max-width: 300px;
  }
  .page-live__section-title {
    font-size: 1.8em;
  }
  .page-live__section-description {
    font-size: 0.95em;
  }
  .page-live__game-grid,
  .page-live__advantage-grid {
    grid-template-columns: 1fr;
  }
  .page-live__card-image {
    height: 200px;
  }
  /* Ensure content images are responsive and do not overflow */
  .page-live__hero-image img,
  .page-live__card-image,
  .page-live__cta-image img {
    max-width: 100%;
    height: auto;
  }
  /* Content area images must be at least 200px wide for display, but max-width:100% is crucial for mobile */
  .page-live img {
    min-width: 200px; /* This ensures the *requested* image size is not small */
    max-width: 100%; /* This ensures responsive scaling */
    height: auto;
  }
  .page-live__button--play {
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .page-live__hero-title {
    font-size: 2em;
  }
  .page-live__section-title {
    font-size: 1.5em;
  }
  .page-live__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-live__game-card,
  .page-live__advantage-item {
    padding: 20px;
  }
  .page-live__card-title {
    font-size: 1.5em;
  }
  .page-live__advantage-title {
    font-size: 1.2em;
  }
}