/* style/live.css */

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

/* Ensure body background is dark from shared.css, so light text is appropriate */
.page-live {
    background-color: var(--background-color);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-live__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.page-live__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-live__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensure hero image is not too small */
}

.page-live__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    margin-top: 20px; /* Space between image and text */
}

.page-live__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: bold;
    color: var(--text-main-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-live__hero-description {
    font-size: clamp(1em, 2vw, 1.25em);
    color: var(--text-main-color);
    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;
}

.page-live__btn-primary,
.page-live__btn-secondary,
.page-live a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-live__btn-primary {
    background: var(--button-gradient);
    color: var(--background-color);
    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(--text-main-color);
    border: 2px solid var(--primary-color);
}

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

.page-live__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-live__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-live__section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

.page-live__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-live__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

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

.page-live__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-live__link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-live__link:hover {
    color: var(--primary-color);
}

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

.page-live__game-card,
.page-live__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-live__game-card:hover,
.page-live__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-live__game-image,
.page-live__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-live__game-title,
.page-live__promo-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-live__game-description,
.page-live__promo-description {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

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

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

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

.page-live__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-live__step-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color));
    min-width: 60px;
    min-height: 60px;
}

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

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

.page-live__cta-final {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background-color) 0%, #1a1a1a 100%);
    border-top: 1px solid var(--border-color);
}

.page-live__cta-final .page-live__section-title {
    margin-bottom: 20px;
}

.page-live__cta-final .page-live__text-block {
    margin-bottom: 40px;
}

/* FAQ Section */
.page-live__faq-list {
    margin-top: 40px;
    max-width: 900px;
    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 4px 10px 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: #1a1a1a;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-live__faq-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1em; /* Adjusted for h3 in question */
}

.page-live__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--secondary-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-color);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-live__hero-section {
        padding-bottom: 40px;
    }

    .page-live__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

    .page-live__game-cards,
    .page-live__promo-cards,
    .page-live__feature-list,
    .page-live__steps-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-offset: 100px; /* Mobile header offset */
    }

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

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

    .page-live__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-live__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-live__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

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

    .page-live__btn-primary,
    .page-live__btn-secondary,
    .page-live a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-live__game-cards,
    .page-live__promo-cards,
    .page-live__feature-list,
    .page-live__steps-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .page-live__game-image,
    .page-live__promo-image,
    .page-live__step-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-live__game-card,
    .page-live__promo-card,
    .page-live__feature-item,
    .page-live__step-item,
    .page-live__container,
    .page-live__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-live__cta-final {
        padding: 50px 0;
    }

    .page-live__faq-question {
        font-size: 1.1em;
    }

    .page-live__faq-answer {
        padding: 0 15px;
    }

    .page-live__faq-item.active .page-live__faq-answer {
        padding: 15px;
    }
}

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

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

    .page-live__btn-primary,
    .page-live__btn-secondary,
    .page-live a[class*="btn"] {
        font-size: 1em;
        padding: 12px 20px;
    }
}