/* style/live.css */

/* Base styling for the live page content */
.page-live {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
    background-color: #FFFFFF; /* Ensure content background is white as per requirement */
}

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

.page-live__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45; /* Login button color for accent */
    border-radius: 2px;
}

.page-live__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #666666;
}

/* Hero Section */
.page-live__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0; /* padding-top handled by main.page-live */
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
}

.page-live__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.page-live__hero-description {
    font-size: 1.4em;
    max-width: 900px;
    margin-bottom: 40px;
    color: #F0F0F0;
}

.page-live__hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

/* General button styling */
.page-live__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    min-width: 180px;
    text-align: center;
}

.page-live__btn--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-live__btn--register:hover {
    background-color: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.page-live__btn--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-live__btn--login:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

.page-live__btn--play,
.page-live__btn--action {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-live__btn--play:hover,
.page-live__btn--action:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

.page-live__btn--claim {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    font-size: 1.2em;
    padding: 18px 35px;
}

.page-live__btn--claim:hover {
    background-color: transparent;
    color: #FCBC45;
    transform: translateY(-3px);
}

.page-live__btn--large {
    font-size: 1.3em;
    padding: 20px 40px;
}

/* Games Section */
.page-live__games-section {
    padding: 80px 20px;
    background-color: #F8F8F8;
}

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

.page-live__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-live__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.page-live__game-card-image {
    width: 100%;
    height: auto;
    max-height: 250px; /* Constrain height while maintaining aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

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

/* Features Section */
.page-live__features-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
}

.page-live__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-live__feature-item {
    background-color: #F8F8F8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.page-live__feature-item:hover {
    background-color: #EFEFEF;
}

.page-live__feature-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.page-live__feature-title::before {
    content: '✨'; /* Placeholder for an icon */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

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

/* Promotions Section */
.page-live__promotions-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-live__promo-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

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

.page-live__promotions-section .page-live__section-intro {
    color: #F0F0F0;
}

.page-live__promo-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin: 40px auto;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Guide Section */
.page-live__guide-section {
    padding: 80px 20px;
    background-color: #F8F8F8;
}

.page-live__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-live__guide-step {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-live__guide-step-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    position: relative;
    padding-top: 20px;
}

.page-live__guide-step-title::before {
    content: attr(data-step); /* Use data attribute for step number */
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FCBC45;
    color: #000000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-live__guide-step-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-live__faq-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
}

.page-live__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-live__faq-item {
    background-color: #F8F8F8;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px 30px;
    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;
    transition: transform 0.3s ease;
}

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

.page-live__faq-answer {
    font-size: 1em;
    color: #666666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.page-live__faq-answer.page-live__faq-answer--active {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
    margin-top: 15px;
}

/* Call to Action Section */
.page-live__cta-section {
    padding: 80px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

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

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

.page-live__cta-section .page-live__section-intro {
    color: #F0F0F0;
    margin-bottom: 40px;
}

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


/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-live__hero-title {
        font-size: 3em;
    }
    .page-live__hero-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    /* Mobile content image constraint */
    .page-live img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px; /* Ensure images are not too small */
    }

    .page-live__hero-section {
        padding: 60px 20px;
    }

    .page-live__hero-container {
        padding: 60px 20px;
    }

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

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

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

    .page-live__section-intro {
        font-size: 0.95em;
    }

    .page-live__btn {
        padding: 12px 25px;
        font-size: 0.9em;
        min-width: unset;
        width: 100%;
    }

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

    .page-live__btn--large {
        font-size: 1.1em;
        padding: 15px 30px;
    }

    .page-live__game-grid,
    .page-live__features-grid,
    .page-live__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-live__game-card,
    .page-live__feature-item,
    .page-live__guide-step,
    .page-live__faq-item {
        padding: 20px;
    }

    .page-live__game-card-title,
    .page-live__feature-title,
    .page-live__guide-step-title,
    .page-live__faq-question {
        font-size: 1.3em;
    }
    
    .page-live__faq-answer {
        font-size: 0.9em;
    }

    .page-live__hero-image,
    .page-live__game-card-image,
    .page-live__promo-image {
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px; /* Maintain minimum size */
    }
}

/* Ensure no horizontal scroll on mobile */
@media (max-width: 768px) {
    .page-live {
        overflow-x: hidden;
    }
    .page-live__hero-section,
    .page-live__games-section,
    .page-live__features-section,
    .page-live__promotions-section,
    .page-live__guide-section,
    .page-live__faq-section,
    .page-live__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Image specific styling for min-width and min-height */
.page-live img:not(.shared-header__logo, .shared-footer__payment-icon, .shared-footer__social-icon, .shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow width to be determined by layout, but respect min-width */
    height: auto; /* Allow height to be determined by layout, but respect min-height */
}

/* Specific image width/height for display areas, overriding auto if needed for layout */
.page-live__hero-image {
    width: 100%; /* Hero image should fill its container */
    height: auto;
    object-fit: cover;
}

.page-live__game-card-image {
    width: 100%; /* Card image should fill its container */
    height: 250px; /* Fixed height for consistent card layout */
    object-fit: cover;
}

.page-live__promo-image {
    width: 100%; /* Promo image should fill its container */
    height: auto;
    object-fit: cover;
}