/* style/live.css */

/* Base styles for the live page */
.page-live {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly setting for page content, though body has it */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Hero Section */
.page-live__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: #FFFFFF; /* Text on hero image should be white */
    background-color: #000000; /* Fallback for hero section background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-live__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-live__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Slightly darken image for text readability, NO color filters */
}

.page-live__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-live__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

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

.page-live__button--primary {
    background-color: #FCBC45; /* Login color for primary CTA */
    color: #000000;
}

.page-live__button--primary:hover {
    background-color: #e0a33a;
    transform: translateY(-2px);
}

.page-live__button--secondary {
    background-color: #000000; /* Main color for secondary CTA */
    color: #FFFFFF; /* Register color for text */
    border: 2px solid #FCBC45;
}

.page-live__button--secondary:hover {
    background-color: #FCBC45;
    color: #000000;
    transform: translateY(-2px);
}

.page-live__button--card {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #FCBC45;
    color: #000000;
    border-radius: 5px;
}

.page-live__button--card:hover {
    background-color: #e0a33a;
    transform: translateY(-1px);
}

.page-live__button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}


/* Content Wrapper for sections */
.page-live__content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-live__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-live__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-live__section-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

/* Game Grid Section */
.page-live__games-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

.page-live__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-live__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45;
}

.page-live__game-card-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-live__game-card-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 25px;
    padding: 0 15px;
    flex-grow: 1; /* Allows description to take available space */
}

/* Why Choose Section */
.page-live__why-choose-section {
    padding: 60px 0;
}

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

.page-live__feature-card {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-live__feature-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
}

.page-live__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Getting Started Section */
.page-live__getting-started-section {
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* White text */
    padding: 60px 0;
}

.page-live__getting-started-section .page-live__section-title {
    color: #FFFFFF;
}

.page-live__getting-started-section .page-live__section-title::after {
    background-color: #FCBC45;
}

.page-live__getting-started-section .page-live__section-paragraph {
    color: #e0e0e0;
}

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

.page-live__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-live__step-title {
    font-size: 1.6em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-live__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

/* Responsible Gaming Section */
.page-live__responsible-gaming-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-live__responsible-gaming-cta {
    text-align: center;
    margin-top: 30px;
}


/* FAQ Section */
.page-live__faq-section {
    padding: 60px 0;
}

.page-live__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-live__faq-question {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-live__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #FCBC45;
    transition: transform 0.3s ease;
}

.page-live__faq-question.page-live__faq-question--active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-live__faq-answer {
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
    padding-top: 0;
}

.page-live__faq-answer.page-live__faq-answer--active {
    max-height: 200px; /* Adjust based on expected content length */
    padding-top: 15px;
}


/* Final CTA Section */
.page-live__cta-final-section {
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* White text */
    padding: 80px 0;
    text-align: center;
}

.page-live__cta-final-section .page-live__section-title {
    color: #FFFFFF;
}

.page-live__cta-final-section .page-live__section-title::after {
    background-color: #FCBC45;
}

.page-live__cta-final-section .page-live__section-paragraph {
    color: #e0e0e0;
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-live__hero-title {
        font-size: 3em;
    }
    .page-live__hero-description {
        font-size: 1.2em;
    }
    .page-live__section-title {
        font-size: 2em;
    }
    .page-live__game-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-live {
        padding-top: var(--header-offset, 100px); /* Adjust fallback for mobile if needed */
    }

    .page-live__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .page-live__hero-title {
        font-size: 2.5em;
    }

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

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

    .page-live__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-live__content-wrapper {
        padding: 30px 15px;
    }

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

    .page-live__game-grid,
    .page-live__features-grid,
    .page-live__steps-list {
        grid-template-columns: 1fr;
    }

    .page-live__game-card-image {
        height: 180px;
    }

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

    /* Crucial for mobile image overflow prevention */
    .page-live img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure no content area images are smaller than 200px */
    .page-live__game-card-image,
    .page-live__hero-image {
        min-width: 200px; /* Enforce minimum width for content images */
        min-height: 200px; /* Enforce minimum height for content images */
    }
    /* Override any smaller width/height from HTML if present and conflicting */
    .page-live__game-card-image[width],
    .page-live__game-card-image[height] {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-live__hero-title {
        font-size: 2em;
    }
    .page-live__hero-description {
        font-size: 0.9em;
    }
    .page-live__section-title {
        font-size: 1.6em;
    }
    .page-live__game-card-image {
        height: 150px;
    }
}