/* style/download.css */

/* Base styles for the download page */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css, which is #000 */
}

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

.page-download__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-download__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Link styles */
.page-download__link {
    color: #FFFF00; /* Register/Login font color */
    text-decoration: underline;
}

.page-download__link:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* Button styles */
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

.page-download__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #FFFFFF;
}

.page-download__btn-secondary {
    background-color: transparent;
    color: #C30808; /* Register/Login button color */
    border: 2px solid #C30808;
}

.page-download__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}

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

.page-download__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-download__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: -1;
}

.page-download__hero-section .page-download__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.page-download__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-download__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Advantages Section */
.page-download__advantages-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark background */
}

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

.page-download__advantage-item {
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent dark card */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-download__advantage-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight with font color */
}

.page-download__advantage-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* White background for light section */
    color: #333333; /* Dark text for light background */
}

.page-download__how-to-download-section .page-download__section-title,
.page-download__how-to-download-section .page-download__link {
    color: #017439; /* Brand primary color for titles and links */
}

.page-download__download-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-download__step-block {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__step-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #017439;
    text-align: center;
}

.page-download__step-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 25px;
    color: #333333;
}

.page-download__step-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-download__qr-code-wrapper {
    text-align: center;
    margin-top: 20px;
}

.page-download__qr-code {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    border: 5px solid #017439;
    border-radius: 10px;
}

.page-download__btn-download-qr {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: #017439; /* Main brand color for download buttons in light section */
    color: #FFFFFF;
    border-color: #017439;
}

.page-download__btn-download-qr:hover {
    background-color: #005a2e;
    border-color: #005a2e;
    color: #FFFFFF;
}

/* Games Section */
.page-download__games-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background for games */
}

.page-download__games-section .page-download__section-title {
    color: #ffffff;
}
.page-download__games-section .page-download__section-description {
    color: #f0f0f0;
}


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

.page-download__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.page-download__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-download__game-title {
    font-size: 1.4em;
    padding: 15px 20px 5px;
    color: #FFFF00; /* Highlight game titles */
}

.page-download__game-title a {
    color: #FFFF00;
    text-decoration: none;
}

.page-download__game-title a:hover {
    text-decoration: underline;
}

.page-download__game-text {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Video Section */
.page-download__video-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for video */
}

.page-download__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    max-width: 1000px; /* Max width for video */
}

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-download__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Ensure link is clickable over video */
}

.page-download__video-description {
    text-align: center;
    font-size: 1.1em;
    color: #f0f0f0;
    margin-top: 20px;
}


/* Troubleshooting Section */
.page-download__troubleshooting-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text */
}

.page-download__troubleshooting-section .page-download__section-title {
    color: #017439;
}

.page-download__troubleshooting-section .page-download__link {
    color: #017439;
}

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

.page-download__troubleshooting-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.page-download__troubleshooting-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark background */
}

.page-download__faq-section .page-download__section-title {
    color: #ffffff;
}

.page-download__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__faq-item {
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    color: #FFFF00; /* Highlight question text */
}

.page-download__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Hide default marker for details summary */
.page-download__faq-item summary {
    list-style: none;
}
.page-download__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-download__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-download__faq-item[open] .page-download__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-download__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Conclusion Section */
.page-download__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text */
}

.page-download__conclusion-section .page-download__section-title {
    color: #017439;
}

.page-download__conclusion-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: 2.8em;
    }
    .page-download__hero-description {
        font-size: 1.1em;
    }
    .page-download__section-title {
        font-size: 2em;
    }
    .page-download__download-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-download__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-download__hero-title {
        font-size: 2em;
    }
    .page-download__hero-description {
        font-size: 1em;
    }
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary,
    .page-download__btn-download-qr {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__advantages-section,
    .page-download__how-to-download-section,
    .page-download__games-section,
    .page-download__video-section,
    .page-download__troubleshooting-section,
    .page-download__faq-section,
    .page-download__conclusion-section {
        padding: 50px 0;
    }

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

    .page-download__qr-code {
        width: 200px;
        height: 200px;
    }

    /* Images responsiveness */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__qr-code-wrapper,
    .page-download__games-grid,
    .page-download__troubleshooting-grid,
    .page-download__advantages-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Video responsiveness */
    .page-download video,
    .page-download__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-download__hero-title {
        font-size: 1.8em;
    }
    .page-download__hero-description {
        font-size: 0.9em;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        font-size: 0.9em;
        padding: 12px 20px;
    }
    .page-download__section-title {
        font-size: 1.5em;
    }
    .page-download__advantage-title,
    .page-download__step-title,
    .page-download__game-title,
    .page-download__troubleshooting-title,
    .page-download__faq-question {
        font-size: 1.2em;
    }
}