/* style/download.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page-download scope */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Default background color */
}

/* Sections */
.page-download__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for first section */
    background-color: var(--color-background);
    overflow: hidden;
}

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

.page-download__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: var(--color-text-main);
}

.page-download__hero-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-text-main);
    line-height: 1.2;
    max-width: 100%;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-download__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

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

.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-download__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.2);
}

.page-download__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.3);
}

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

.page-download__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

.page-download__introduction-section,
.page-download__how-to-download-section,
.page-download__security-section,
.page-download__final-cta-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 20px;
}

.page-download__why-download-section,
.page-download__features-section,
.page-download__promotions-section,
.page-download__video-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding: 60px 20px;
}

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

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

.page-download__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

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

.page-download__feature-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-download__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-download__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-download__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.page-download__feature-description {
    font-size: 1em;
    color: var(--color-text-secondary);
}

/* Download Steps */
.page-download__download-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.page-download__platform-guide {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-download__platform-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--color-primary);
    text-align: center;
}

.page-download__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-download__step-list li {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
    color: #555555;
}

.page-download__step-list li strong {
    color: var(--color-primary);
}

.page-download__step-list li a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.page-download__step-list li a:hover {
    text-decoration: underline;
}

.page-download__app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

.page-download__qr-code-section {
    text-align: center;
    margin-top: 60px;
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-download__qr-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-gold);
}

.page-download__qr-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
    border: 5px solid var(--color-primary);
    border-radius: 8px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

.page-download__qr-description {
    font-size: 1em;
    color: var(--color-text-secondary);
}

/* App Features List */
.page-download__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-download__feature-list li {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    color: var(--color-text-main);
    border: 1px solid var(--color-divider);
}

.page-download__feature-list li img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

.page-download__feature-list li strong {
    color: var(--color-primary);
}

/* Security Section */
.page-download__security-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 1.1em;
    color: #555555;
}

.page-download__security-list li {
    margin-bottom: 10px;
}

.page-download__security-list li strong {
    color: #333333;
}

.page-download__security-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

/* Promotions Section */
.page-download__promotion-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 1.1em;
    color: var(--color-text-secondary);
}

.page-download__promotion-list li {
    margin-bottom: 10px;
}

.page-download__promotion-list li strong {
    color: var(--color-primary);
}

/* FAQ Section */
.page-download__faq-list {
    margin-top: 40px;
}

.page-download__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-download__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #333333;
    list-style: none;
}

.page-download__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-download__faq-qtext {
    flex-grow: 1;
    color: var(--color-primary);
}

.page-download__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-primary);
    margin-left: 15px;
}

.page-download__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #eee;
}

.page-download__faq-answer p {
    margin-bottom: 10px;
}

.page-download__faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.page-download__faq-answer a:hover {
    text-decoration: underline;
}

/* Video Section */
.page-download__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: #000;
    max-width: 100%; /* Desktop width */
    box-sizing: border-box;
}

.page-download__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-download__video-cta {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-download__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-download__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-download__hero-section,
    .page-download__introduction-section,
    .page-download__why-download-section,
    .page-download__how-to-download-section,
    .page-download__features-section,
    .page-download__security-section,
    .page-download__promotions-section,
    .page-download__faq-section,
    .page-download__video-section,
    .page-download__final-cta-section {
        padding: 40px 15px;
    }

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

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

    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__download-steps {
        flex-direction: column;
        gap: 30px;
    }

    .page-download__platform-guide {
        max-width: 100%;
    }

    .page-download__platform-title {
        font-size: 1.5em;
    }

    .page-download__feature-list li {
        flex-direction: column;
        text-align: center;
    }

    .page-download__feature-list li img {
        margin-bottom: 10px;
    }

    /* Mobile image responsive */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-download__container,
    .page-download__platform-guide,
    .page-download__qr-code-section,
    .page-download__feature-card,
    .page-download__faq-item,
    .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;
    }

    /* Video responsive */
    .page-download video,
    .page-download__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-download__video-section {
        padding-top: 10px !important; /* body already has padding-top */
    }
}

@media (max-width: 480px) {
    .page-download__hero-section,
    .page-download__introduction-section,
    .page-download__why-download-section,
    .page-download__how-to-download-section,
    .page-download__features-section,
    .page-download__security-section,
    .page-download__promotions-section,
    .page-download__faq-section,
    .page-download__video-section,
    .page-download__final-cta-section {
        padding: 30px 10px;
    }

    .page-download__hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .page-download__section-title {
        font-size: 1.5em;
    }

    .page-download__feature-card {
        padding: 20px;
    }

    .page-download__platform-guide {
        padding: 20px;
    }

    .page-download__qr-image {
        width: 250px;
        height: 250px;
    }
}