/* style/live.css */

/* Variables for consistent styling */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --page-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 120px; /* Default desktop offset, will be overridden by shared.css if defined */
}

.page-live {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--page-bg); /* Page background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-live__hero-section {
    position: relative;
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset); /* Fixed header spacing */
    background-color: var(--page-bg); /* Ensure background for text */
    overflow: hidden; /* For image scaling */
}

.page-live__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for hero image wrapper */
    overflow: hidden;
}

.page-live__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the wrapper, cropping as needed */
    display: block;
    filter: none;
}

.page-live__hero-content {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    position: relative;
    z-index: 1; /* Ensure text is above image if any slight overlap */
}

.page-live__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-live__hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-main);
}

/* Buttons */
.page-live__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-live__btn-primary,
.page-live__btn-secondary,
.page-live__btn-text,
.page-live a[class*="button"],
.page-live a[class*="btn"] {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-live__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-live__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-live__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-live__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--page-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-live__btn-text {
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0;
    font-size: 0.95rem;
    text-decoration: underline;
}

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

/* Sections */
.page-live__introduction-section,
.page-live__games-section,
.page-live__benefits-section,
.page-live__how-to-play-section,
.page-live__faq-section,
.page-live__cta-bottom-section {
    padding: 60px 0;
}

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

.page-live__light-bg {
    background-color: var(--card-bg); /* Using card background for contrast on light sections */
    color: var(--text-main);
}

.page-live__medium-bg {
    background-color: var(--primary-color); /* Using primary color for a section */
    color: var(--page-bg); /* Dark text on primary color for contrast */
}

.page-live__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-live__section-title.page-live__medium-bg-title {
    color: var(--page-bg); /* Dark text for title on medium background */
}

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

.page-live__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main); /* Card text color */
}

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

.page-live__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: none;
}

.page-live__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px 20px;
    color: var(--secondary-color); /* Card title color */
}

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

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

.page-live__card-description {
    font-size: 0.95rem;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-live__game-card .page-live__btn-text {
    align-self: flex-start;
    margin: 0 20px 20px 20px;
}

.page-live__cta-full-width {
    text-align: center;
    margin-top: 50px;
}

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

.page-live__benefit-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-live__benefit-icon {
    width: 100px; /* Displayed smaller, but generated larger to meet min size */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: none;
}

.page-live__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-live__benefit-description {
    font-size: 0.9rem;
}

/* How to Play Section */
.page-live__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-live__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-live__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-live__step-description {
    font-size: 1rem;
}

/* FAQ Section */
.page-live__faq-list {
    margin-top: 30px;
}

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

.page-live__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for question */
    color: var(--secondary-color);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-live__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-live__faq-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--secondary-color);
}

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

.page-live__faq-item.active .page-live__faq-toggle {
    transform: rotate(45deg); /* Change to '-' visually */
}

.page-live__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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 for content */
    padding: 20px 25px;
}

.page-live__faq-answer p {
    margin: 0;
    font-size: 1rem;
}

/* CTA Bottom Section */
.page-live__cta-bottom-section {
    text-align: center;
    background-color: var(--primary-color); /* Use primary color as background */
    color: var(--page-bg); /* Dark text on primary background */
    padding: 80px 0;
}

.page-live__cta-bottom-section .page-live__section-title {
    color: var(--page-bg); /* Dark title on primary background */
}

.page-live__cta-bottom-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-live__cta-bottom-section .page-live__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-live__cta-bottom-section .page-live__btn-secondary {
    background: var(--page-bg); /* Dark background for secondary button */
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-live__cta-bottom-section .page-live__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--page-bg);
}

/* Global Image Styles */
.page-live img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no CSS filters are applied */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-live__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-live__section-title {
        font-size: 2.2rem;
    }
    .page-live__hero-image-wrapper {
        height: 500px;
    }
}

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

    .page-live__hero-section {
        padding-top: var(--header-offset) !important; /* Ensure mobile header offset */
    }

    .page-live__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

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

    .page-live__btn-primary,
    .page-live__btn-secondary,
    .page-live__btn-text,
    .page-live a[class*="button"],
    .page-live a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-live__game-grid,
    .page-live__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-live__section-title {
        font-size: 2rem;
    }
    
    .page-live__hero-image-wrapper {
        height: 400px;
    }

    /* Images responsiveness */
    .page-live img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-live__section,
    .page-live__card,
    .page-live__container,
    .page-live__cta-buttons,
    .page-live__button-group,
    .page-live__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-live__cta-full-width .page-live__btn-primary {
        width: calc(100% - 30px) !important; /* Account for container padding */
        max-width: calc(100% - 30px) !important;
    }
}

@media (max-width: 480px) {
    .page-live__hero-image-wrapper {
        height: 300px;
    }
    .page-live__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-live__section-title {
        font-size: 1.8rem;
    }
    .page-live__faq-title {
        font-size: 1.1rem;
    }
}