/* style/live.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-dark: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-live {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--background-dark); /* Should be handled by shared.css body */
    line-height: 1.6;
}

.page-live__section-padding {
    padding: 60px 0;
}

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

.page-live__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main);
}

.page-live__text-center {
    text-align: center;
}

/* Buttons */
.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-live__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-live__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-live__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-live__btn-text {
    background: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
}

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

.page-live__btn-center {
    display: block;
    margin: 40px auto 0 auto;
}

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

/* Hero Section */
.page-live__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--background-dark);
}

.page-live__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-live__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    display: block;
}

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

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

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

/* About Section */
.page-live__about-section .page-live__content-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-live__dark-section {
    background-color: var(--card-bg);
}

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

.page-live__game-category {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__game-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.page-live__category-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-live__game-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-live__game-category p {
    font-size: 0.95em;
    color: var(--text-main);
}

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

.page-live__benefit-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

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

.page-live__benefit-card .page-live__card-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    padding: 15px 20px 0;
}

.page-live__benefit-card p {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 20px;
}

/* How to Start Section */
.page-live__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-live__step-item {
    background-color: var(--background-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-live__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1;
}

.page-live__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-live__step-item p {
    font-size: 1em;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* Promotions Section */
.page-live__promotions-section .page-live__content-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Partners Section */
.page-live__partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 2x5 grid for desktop */
    gap: 20px;
    margin-top: 40px;
    justify-items: center;
    align-items: center;
}

.page-live__partner-logo {
    width: 167px;
    height: 127px;
    object-fit: contain;
    padding: 10px;
    background-color: var(--background-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-live__partner-logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* FAQ Section */
.page-live__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-live__faq-question:hover {
    background-color: #1a1a1a;
}

.page-live__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em;
}

.page-live__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.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(--text-main);
}

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

.page-live__faq-answer p {
    margin-bottom: 15px;
    font-size: 0.95em;
}

.page-live__faq-answer .page-live__btn-text {
    margin-top: 10px;
    display: inline-flex;
}

/* Final CTA Section */
.page-live__final-cta {
    padding-bottom: 80px;
}


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

@media (max-width: 768px) {
    .page-live__section-padding {
        padding: 40px 0;
    }

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

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

    .page-live__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-live__main-title {
        font-size: 2.2em;
    }

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

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

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

    .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-content-wrapper,
    .page-live__cta-buttons,
    .page-live__games-grid,
    .page-live__benefits-grid,
    .page-live__steps-grid,
    .page-live__partners-grid,
    .page-live__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for first section padding-top if needed, relying on shared body padding */
    .page-live__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media queries */
        padding-bottom: 40px;
    }

    .page-live__games-grid,
    .page-live__benefits-grid,
    .page-live__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-live__partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    }
    .page-live__partner-logo {
        width: 100%;
        height: auto;
        max-width: 167px; /* Maintain aspect ratio and max size */
    }
}

@media (max-width: 480px) {
    .page-live__section-title {
        font-size: 1.8em;
    }
    .page-live__main-title {
        font-size: 2em;
    }
    .page-live__partners-grid {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}