/* style/live.css */

/* Root variables for consistent spacing and colors */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A;
  --card-background: #111111;
  --text-light: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-live {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Text Main #FFF6D6 on Background #0A0A0A */
  background-color: var(--background-dark);
}

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

.page-live__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H2 */
  color: var(--secondary-color); /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

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

.page-live__card {
  background: var(--card-background); /* Card BG #111111 */
  color: var(--text-light);
  border: 1px solid var(--border-color); /* Border #3A2A12 */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-play {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-live__btn-primary {
  background: var(--button-gradient); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-live__btn-primary:hover {
  filter: brightness(1.1); /* Subtle hover effect */
  transform: translateY(-2px);
}

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

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

.page-live__btn-play {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  margin-top: auto; /* Push to bottom of card */
}

.page-live__btn-play:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-live__center-cta {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-live__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-live__video-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  /* Maintain aspect ratio 16:9 */
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden;
  margin-bottom: 30px;
}

.page-live__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-live__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

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

.page-live__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive H1 font size */
  color: var(--secondary-color); /* Auxiliary color for H1 */
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
}

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

.page-live__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

/* Features Section */
.page-live__features-section {
  padding: 60px 0;
  background-color: var(--card-background); /* Use card background for dark section */
}

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

.page-live__feature-card .page-live__feature-icon {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-live__feature-card .page-live__card-title {
  font-size: 1.5em;
  color: var(--primary-color); /* Primary color for feature titles */
  margin-bottom: 15px;
}

.page-live__feature-card .page-live__card-description {
  font-size: 1em;
  color: var(--text-light);
}

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

.page-live__game-category {
  margin-bottom: 50px;
}

.page-live__category-title {
  font-size: clamp(1.8em, 3vw, 2.5em); /* Responsive H3 font size */
  color: var(--primary-color); /* Primary color for category titles */
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-live__game-card .page-live__game-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-live__game-card .page-live__game-name {
  font-size: 1.3em;
  color: var(--secondary-color); /* Auxiliary color for game names */
  margin-bottom: 15px;
  flex-grow: 1; /* Allows name to take up space */
}

/* Promotions Section */
.page-live__promo-section {
  padding: 60px 0;
  background-color: var(--card-background); /* Use card background for dark section */
}