/* style/live.css */

/* Variables for colors */
:root {
    --winph-primary: #F2C14E;
    --winph-secondary: #FFD36B;
    --winph-bg-dark: #0A0A0A;
    --winph-card-bg: #111111;
    --winph-text-main: #FFF6D6;
    --winph-border: #3A2A12;
    --winph-glow: #FFD36B;
    --winph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-live {
    color: var(--winph-text-main); /* Ensure light text on dark body background */
    background-color: var(--winph-bg-dark);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-live__card {
    background-color: var(--winph-card-bg);
    color: var(--winph-text-main);
    border: 1px solid var(--winph-border);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-live__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--winph-glow);
}

/* --- Hero Section --- */
.page-live__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    text-align: center;
}

.page-live__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic reasons */
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-live__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

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

.page-live__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--winph-secondary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.page-live__intro-text {
    font-size: 1.2rem;
    color: var(--winph-text-main);
    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 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

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

.page-live__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 10px var(--winph-glow);
}

.page-live__btn-secondary {
    background: transparent;
    color: var(--winph-secondary);
    border: 2px solid var(--winph-secondary);
}

.page-live__btn-secondary:hover {
    background: var(--winph-secondary);
    color: var(--winph-bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-live__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

/* --- General Section Styling --- */
.page-live__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-live__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--winph-secondary);
    margin-bottom: 25px;
    font-weight: 700;
}

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

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

.page-live__feature-card {
    text-align: center;
}

.page-live__feature-image {
    width: 100%;
    height: 267px; /* Maintain aspect ratio for 400x267 display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.page-live__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-live__game-image {
    width: 100%;
    height: 300px; /* Maintain aspect ratio for 400x300 display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-live__btn-text {
    color: var(--winph-secondary);
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push to bottom */
    padding-top: 10px;
    display: block;
    transition: color 0.3s ease;
}

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

/* --- Why Choose List --- */
.page-live__why-choose-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 40px auto 0;
}

.page-live__why-choose-list li {
    font-size: 1.1rem;
    color: var(--winph-text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.page-live__list-icon {
    color: var(--winph-primary);
    font-size: 1.3rem;
    margin-right: 15px;
    line-height: 1;
}

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

.page-live__step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-live__promo-card {
    text-align: center;
}

.page-live__promo-image {
    width: 100%;
    height: 300px; /* Maintain aspect ratio for 400x300 display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-live__cta-buttons--center {
    margin-top: 40px;
}

/* --- App Download Section --- */
.page-live__app-download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-live__app-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-live__app-text {
    text-align: center;
    max-width: 600px;
}

/* --- Security Features --- */
.page-live__security-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-live__security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    text-align: center;
}

.page-live__security-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--winph-glow));
}

/* --- FAQ Section --- */
.page-live__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-live__faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    padding: 0;
}

.page-live__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px 25px;
    background-color: var(--winph-card-bg);
    border-bottom: 1px solid var(--winph-border);
}

.page-live__faq-question h3 {
    color: var(--winph-secondary);
    font-size: 1.25rem;
    margin: 0;
}

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

.page-live__faq-item.active .page-live__faq-toggle {
    transform: rotate(45deg);
}

.page-live__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-live__faq-answer p {
    color: var(--winph-text-main);
    font-size: 1rem;
    margin: 0;
}

/* --- CTA Section --- */
.page-live__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-live__cta-content {
    max-width: 900px;
}

/* --- Responsive Design --- */
@media (min-width: 769px) {
    .page-live__app-download-content {
        flex-direction: row;
        text-align: left;
        justify-content: center;
    }

    .page-live__app-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-live__hero-section {
        padding: 10px 15px 40px;
    }

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

    .page-live__intro-text {
        font-size: 1rem;
    }

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

    .page-live__btn-primary,
    .page-live__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-live__container {
        padding: 0;
    }

    .page-live img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-live__hero-image-wrapper {
        max-height: 400px;
    }

    .page-live__feature-image,
    .page-live__game-image,
    .page-live__promo-image {
        height: 200px; /* Adjust height for smaller screens */
    }

    .page-live__card-title {
        font-size: 1.3rem;
    }

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

    .page-live__faq-question,
    .page-live__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-live__cta-section {
        padding: 50px 15px;
    }

    /* Ensure all containing elements for images/buttons are responsive */
    .page-live__section,
    .page-live__card,
    .page-live__container,
    .page-live__cta-buttons,
    .page-live__button-group,
    .page-live__btn-container,
    .page-live__app-download-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific override for section padding to ensure full width */
    .page-live__section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-live__hero-content {
        padding: 20px 0;
    }

    .page-live__security-item {
        max-width: 150px;
    }

    .page-live__security-icon {
        width: 50px;
        height: 50px;
    }
}