/* style/app-download.css */

/* Variables for consistency */
:root {
    --page-app-download-primary-color: #FFD700; /* Gold */
    --page-app-download-secondary-color: #1A202C; /* Dark */
    --page-app-download-text-light: #F8F8F8; /* Light text for dark backgrounds */
    --page-app-download-text-dark: #1A202C; /* Dark text for light backgrounds */
    --page-app-download-border-radius: 8px;
    --page-app-download-spacing-md: 20px;
    --page-app-download-spacing-lg: 40px;
}

.page-app-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-app-download-text-light); /* Default text color for the page */
    background-color: var(--page-app-download-secondary-color); /* Default background for the page */
}

.page-app-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--page-app-download-spacing-md);
}

/* Hero Section */
.page-app-download__hero-section {
    background: linear-gradient(135deg, var(--page-app-download-primary-color) 0%, #303030 100%);
    color: var(--page-app-download-secondary-color); /* Dark text on lighter background */
    padding: 80px var(--page-app-download-spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-app-download__hero-title {
    font-size: 3em;
    margin-bottom: var(--page-app-download-spacing-md);
    color: var(--page-app-download-secondary-color);
    line-height: 1.2;
}

.page-app-download__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto var(--page-app-download-spacing-lg);
    color: var(--page-app-download-secondary-color);
}

.page-app-download__download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--page-app-download-spacing-md);
    margin-bottom: var(--page-app-download-spacing-lg);
}

.page-app-download__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--page-app-download-border-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

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

.page-app-download__btn--primary:hover {
    background-color: #000000; /* Even darker on hover */
    color: #FFECB3; /* Lighter gold on hover */
}

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

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

.page-app-download__btn--details {
    background-color: var(--page-app-download-primary-color);
    color: var(--page-app-download-secondary-color);
    border: 2px solid var(--page-app-download-primary-color);
    padding: 10px 20px;
    font-size: 1em;
}

.page-app-download__btn--details:hover {
    background-color: #b39700; /* Darker gold */
    border-color: #b39700;
}

.page-app-download__hero-image-wrapper {
    margin-top: var(--page-app-download-spacing-lg);
}

.page-app-download__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--page-app-download-border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-app-download__section {
    padding: 60px var(--page-app-download-spacing-md);
    text-align: center;
}

.page-app-download__section:nth-of-type(even) {
    background-color: #222831; /* Slightly lighter dark background */
}

.page-app-download__section-title {
    font-size: 2.5em;
    margin-bottom: var(--page-app-download-spacing-md);
    color: var(--page-app-download-primary-color);
}

.page-app-download__section-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto var(--page-app-download-spacing-lg);
    color: var(--page-app-download-text-light);
}

/* Why Download Section */
.page-app-download__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--page-app-download-spacing-lg);
    text-align: left;
}

.page-app-download__feature-list li {
    background-color: #2e3541; /* Darker background for list items */
    padding: var(--page-app-download-spacing-md);
    border-radius: var(--page-app-download-border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--page-app-download-primary-color);
}

.page-app-download__feature-title {
    font-size: 1.5em;
    color: var(--page-app-download-primary-color);
    margin-bottom: 10px;
}

.page-app-download__feature-list p {
    color: var(--page-app-download-text-light);
}

/* How to Install Section */
.page-app-download__platform-guide {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--page-app-download-spacing-lg);
    text-align: left;
}

@media (min-width: 768px) {
    .page-app-download__platform-guide {
        grid-template-columns: repeat(2, 1fr);
    }
}

.page-app-download__guide-item {
    background-color: #2e3541;
    padding: var(--page-app-download-spacing-lg);
    border-radius: var(--page-app-download-border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-app-download__guide-title {
    font-size: 1.8em;
    color: var(--page-app-download-primary-color);
    margin-bottom: var(--page-app-download-spacing-md);
    text-align: center;
}

.page-app-download__qr-code-wrapper {
    text-align: center;
    margin-bottom: var(--page-app-download-spacing-md);
}

.page-app-download__qr-code {
    max-width: 150px;
    height: auto;
    border: 5px solid var(--page-app-download-primary-color);
    border-radius: var(--page-app-download-border-radius);
}

.page-app-download__qr-text {
    color: var(--page-app-download-text-light);
    margin-top: 10px;
    font-size: 0.9em;
}

.page-app-download__steps-list {
    list-style: decimal;
    margin-left: var(--page-app-download-spacing-md);
    color: var(--page-app-download-text-light);
    margin-bottom: var(--page-app-download-spacing-md);
}

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

.page-app-download__steps-list strong {
    color: var(--page-app-download-primary-color);
}

.page-app-download__guide-item a {
    color: var(--page-app-download-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-app-download__guide-item a:hover {
    color: #FFECB3;
    text-decoration: underline;
}

/* Features Section */
.page-app-download__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--page-app-download-spacing-lg);
    margin-top: var(--page-app-download-spacing-lg);
}

.page-app-download__feature-card {
    background-color: #2e3541;
    padding: var(--page-app-download-spacing-md);
    border-radius: var(--page-app-download-border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-app-download__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--page-app-download-primary-color));
}

.page-app-download__feature-card-title {
    font-size: 1.4em;
    color: var(--page-app-download-primary-color);
    margin-bottom: 10px;
}

.page-app-download__feature-card-description {
    color: var(--page-app-download-text-light);
    font-size: 0.95em;
}

.page-app-download__cta-wrapper {
    margin-top: var(--page-app-download-spacing-lg);
}

/* FAQ Section */
.page-app-download__faq-list {
    max-width: 900px;
    margin: var(--page-app-download-spacing-lg) auto 0;
    text-align: left;
}

.page-app-download__faq-item {
    background-color: #2e3541;
    border-radius: var(--page-app-download-border-radius);
    margin-bottom: var(--page-app-download-spacing-md);
    padding: var(--page-app-download-spacing-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-app-download__faq-question {
    font-size: 1.3em;
    color: var(--page-app-download-primary-color);
    cursor: pointer;
    margin-bottom: 10px;
}

.page-app-download__faq-answer {
    color: var(--page-app-download-text-light);
    font-size: 1em;
    display: block; /* Initially hidden, can be toggled with JS */
}

/* Update Log Section */
.page-app-download__update-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: var(--page-app-download-spacing-lg) auto 0;
    text-align: left;
}

.page-app-download__update-list li {
    background-color: #2e3541;
    border-radius: var(--page-app-download-border-radius);
    margin-bottom: var(--page-app-download-spacing-md);
    padding: var(--page-app-download-spacing-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--page-app-download-primary-color);
    color: var(--page-app-download-text-light);
}

.page-app-download__update-list strong {
    color: var(--page-app-download-primary-color);
}

/* Ready to Play Section */
.page-app-download__section--ready-to-play {
    background-color: var(--page-app-download-primary-color); /* Gold background */
    color: var(--page-app-download-secondary-color); /* Dark text */
    padding: 80px var(--page-app-download-spacing-md);
}

.page-app-download__section--ready-to-play .page-app-download__section-title {
    color: var(--page-app-download-secondary-color);
}

.page-app-download__section--ready-to-play .page-app-download__section-intro {
    color: var(--page-app-download-secondary-color);
}

.page-app-download__section--ready-to-play .page-app-download__btn--primary {
    background-color: var(--page-app-download-secondary-color);
    color: var(--page-app-download-primary-color);
    border-color: var(--page-app-download-secondary-color);
}

.page-app-download__section--ready-to-play .page-app-download__btn--primary:hover {
    background-color: #000000;
    color: #FFECB3;
}

.page-app-download__section--ready-to-play .page-app-download__btn--secondary {
    background-color: transparent;
    color: var(--page-app-download-secondary-color);
    border-color: var(--page-app-download-secondary-color);
}

.page-app-download__section--ready-to-play .page-app-download__btn--secondary:hover {
    background-color: var(--page-app-download-secondary-color);
    color: var(--page-app-download-primary-color);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .page-app-download__hero-title {
        font-size: 2.2em;
    }
    .page-app-download__hero-description {
        font-size: 1em;
    }
    .page-app-download__download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-app-download__btn {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        box-sizing: border-box;
    }
    .page-app-download__section-title {
        font-size: 2em;
    }
    .page-app-download__feature-list {
        grid-template-columns: 1fr;
    }
    .page-app-download__features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-app-download__hero-title {
        font-size: 1.8em;
    }
    .page-app-download__section-title {
        font-size: 1.6em;
    }
    .page-app-download__guide-item {
        padding: var(--page-app-download-spacing-md);
    }
    .page-app-download__steps-list {
        margin-left: var(--page-app-download-spacing-md) / 2;
    }
}