/* style/live.css */

/* Variables for consistent spacing and colors */
:root {
    --page-live-primary: #F2C14E;
    --page-live-secondary: #FFD36B;
    --page-live-dark-bg: #0A0A0A; /* From custom background color */
    --page-live-card-bg: #111111; /* From custom Card BG color */
    --page-live-text-main: #FFF6D6; /* From custom Text Main color */
    --page-live-border: #3A2A12; /* From custom Border color */
    --page-live-glow: #FFD36B; /* From custom Glow color */
    --page-live-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);

    --page-live-spacing-xxs: 5px;
    --page-live-spacing-xs: 10px;
    --page-live-spacing-sm: 20px;
    --page-live-spacing-md: 40px;
    --page-live-spacing-lg: 60px;
    --page-live-spacing-xl: 80px;
    --page-live-spacing-xxl: 120px;
}

/* Base styles for the live page content */
.page-live {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-live-text-main); /* Light text for dark body background */
    background-color: var(--page-live-dark-bg); /* Inherited from body, but good to define for scope */
    padding-top: var(--page-live-spacing-xs); /* Small top padding for the first section */
}

/* Container for consistent content width */
.page-live__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-live-spacing-sm);
    box-sizing: border-box;
}

/* Section styling */
.page-live__section {
    padding: var(--page-live-spacing-lg) 0;
    text-align: center;
}

.page-live__dark-section {
    background-color: var(--page-live-dark-bg);
    color: var(--page-live-text-main);
}

.page-live__light-bg {
    background-color: var(--page-live-card-bg); /* Use card background for lighter sections on dark page */
    color: var(--page-live-text-main);
}

/* Headings */
.page-live__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-live-primary);
    margin-bottom: var(--page-live-spacing-sm);
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow effect */
}

.page-live__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--page-live-primary);
    margin-bottom: var(--page-live-spacing-md);
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-live__card-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: var(--page-live-primary);
    margin-top: var(--page-live-spacing-xs);
    margin-bottom: var(--page-live-spacing-xs);
}

.page-live__card-title a {
    color: var(--page-live-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-live__card-title a:hover {
    color: var(--page-live-secondary);
}

.page-live__list-title {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: var(--page-live-primary);
    margin-bottom: var(--page-live-spacing-xs);
}

/* Paragraphs and lists */
.page-live__intro-description,
.page-live__text-block,
.page-live__card-description,
.page-live__list-description {
    font-size: 1rem;
    color: var(--page-live-text-main);
    margin-bottom: var(--page-live-spacing-sm);
}

.page-live__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-live__cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--page-live-spacing-sm);
    margin-top: var(--page-live-spacing-md);
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-live__cta-buttons--mobile {
    flex-direction: column; /* Mobile buttons stack vertically */
}

.page-live__btn-primary,
.page-live__btn-secondary,
.page-live a[class*="button"],
.page-live a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--page-live-spacing-xs) var(--page-live-spacing-md);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-live__btn-primary {
    background: var(--page-live-button-gradient);
    color: #ffffff; /* Button text always white */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-live__btn-secondary:hover {
    background: var(--page-live-primary);
    color: var(--page-live-dark-bg);
    transform: translateY(-3px);
}

.page-live__btn-link {
    color: var(--page-live-secondary);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    min-width: unset;
}

.page-live__btn-link:hover {
    color: var(--page-live-primary);
}

.page-live__cta-center {
    display: flex;
    justify-content: center;
    gap: var(--page-live-spacing-sm);
    margin-top: var(--page-live-spacing-md);
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-live__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
    padding-bottom: var(--page-live-spacing-xl);
    background: var(--page-live-dark-bg);
    overflow: hidden;
}

.page-live__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    margin-bottom: var(--page-live-spacing-md);
}

.page-live__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for better text contrast */
}

.page-live__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: var(--page-live-spacing-sm); /* Small padding after image */
}

/* Image Grid */
.page-live__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--page-live-spacing-sm);
    margin-top: var(--page-live-spacing-md);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-live__grid-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Game Categories Grid */
.page-live__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--page-live-spacing-sm);
    margin-top: var(--page-live-spacing-md);
}

.page-live__category-card {
    background-color: var(--page-live-card-bg);
    border: 1px solid var(--page-live-border);
    border-radius: 10px;
    padding: var(--page-live-spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Ensure card has some height */
}

.page-live__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-live-glow);
}

.page-live__category-icon {
    width: 30px; /* Allowed small size */
    height: 30px; /* Allowed small size */
    object-fit: contain;
    margin-bottom: var(--page-live-spacing-xs);
}

/* How to Start List */
.page-live__steps-list {
    list-style: none;
    padding: 0;
    margin-top: var(--page-live-spacing-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-live__list-item {
    background-color: var(--page-live-card-bg);
    border: 1px solid var(--page-live-border);
    border-radius: 8px;
    padding: var(--page-live-spacing-sm);
    margin-bottom: var(--page-live-spacing-sm);
}

/* Promotions Grid */
.page-live__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--page-live-spacing-sm);
    margin-top: var(--page-live-spacing-md);
}

.page-live__promo-card {
    background-color: var(--page-live-card-bg);
    border: 1px solid var(--page-live-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-live__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-live-glow);
}

.page-live__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-live__promo-card .page-live__card-title,
.page-live__promo-card .page-live__card-description,
.page-live__promo-card .page-live__btn-link {
    padding: 0 var(--page-live-spacing-sm);
}

.page-live__promo-card .page-live__card-title {
    margin-top: var(--page-live-spacing-sm);
    margin-bottom: var(--page-live-spacing-xs);
}

.page-live__promo-card .page-live__card-description {
    flex-grow: 1; /* Push button to bottom */
}

.page-live__promo-card .page-live__btn-link {
    margin-top: var(--page-live-spacing-sm);
    margin-bottom: var(--page-live-spacing-sm);
    display: block;
    text-align: center;
}


/* Mobile Experience Section */
.page-live__mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--page-live-spacing-md);
    margin-top: var(--page-live-spacing-md);
}

.page-live__mobile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-live__mobile-features {
    text-align: left;
    max-width: 600px;
}

.page-live__feature-list {
    list-style: none;
    padding: 0;
    margin-top: var(--page-live-spacing-sm);
}

.page-live__feature-list .page-live__list-item {
    background: none;
    border: none;
    padding: var(--page-live-spacing-xxs) 0;
    margin-bottom: var(--page-live-spacing-xs);
    color: var(--page-live-text-main);
    display: flex;
    align-items: flex-start;
}

.page-live__feature-list .page-live__list-item::before {
    content: '✓';
    color: var(--page-live-secondary);
    font-weight: bold;
    margin-right: var(--page-live-spacing-xs);
    flex-shrink: 0;
}

/* FAQ Section */
.page-live__faq-list {
    max-width: 800px;
    margin: var(--page-live-spacing-md) auto 0 auto;
    text-align: left;
}

.page-live__faq-item {
    background-color: var(--page-live-card-bg);
    border: 1px solid var(--page-live-border);
    border-radius: 8px;
    margin-bottom: var(--page-live-spacing-xs);
    overflow: hidden;
}