/*
 * download.css - FINAL VERSION 3.0 (Image + Perfect Alignment)
 * Complete, responsive CSS for the Download page.
 */

/* ------------------------------------------- */
/* --- 1. General Page Structure & Vars --- */
/* ------------------------------------------- */

.download-body {
    background-color: var(--color-bg-dark);
    min-height: 100vh;
}
.main-container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    font-size: 2.8em;
    color: var(--color-text-light);
    font-weight: 900;
    margin: 40px 0 50px 0;
}


/* =========================================== */
/* --- SITE-WIDE HEADER (NAVIGATION BAR) --- */
/* =========================================== */
.site-header {
    background-color: var(--color-bg-card); 
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-light);
}

.logo-img {
    height: 30px; 
    margin-right: 10px;
}

.logo-text {
    font-size: 1.4em;
    font-weight: 900;
    color: var(--color-accent);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-subtle);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links li.active a {
    color: var(--color-accent);
}

.btn-login-nav {
    background-color: var(--color-accent);
    color: var(--color-bg-dark) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.btn-login-nav:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-bg-dark) !important;
}


/* ------------------------------------------- */
/* --- 2. Download Section (Flex & Responsive) --- */
/* ------------------------------------------- */

.download-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

/* --- Product Visual (Left Column) --- */
.product-visual {
    flex: 1; /* Allows flex to manage size */
    min-width: 300px;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    /* Unique background to avoid the "Griffin box" look */
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(15, 15, 20, 0.9));
    overflow: hidden;
}
.product-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    /* Ensure the image fits within the padding */
}


/* --- Download Card (Right Column) --- */
.download-card {
    flex: 1.5; /* Takes more space than the visual */
    padding: 40px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-accent-dim);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}

.download-card h2 {
    font-size: 1.8em;
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Details and Download Buttons (Same as before) */
.download-details {
    /* ... (Detail styles) ... */
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1.1em;
}

.detail-label {
    color: var(--color-text-subtle);
    font-weight: 400;
}

.detail-value {
    color: var(--color-accent);
    font-weight: 600;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-direct-download, .btn-driver-download {
    /* Made them grow to full width on mobile */
    width: 100%; 
    box-sizing: border-box; 
    text-align: center;
    padding: 18px 25px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-direct-download {
    font-size: 1.2em;
    text-transform: uppercase;
    background: linear-gradient(to right, #ff8c42, #e74c3c);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 140, 66, 0.5);
}

.btn-driver-download {
    font-size: 1em;
    font-weight: 600;
    background-color: #1a1a21; 
    border: 2px solid var(--color-border);
    color: var(--color-text-light);
}

.btn-direct-download i, .btn-driver-download i {
    margin-right: 10px;
}

.total-downloads {
    /* ... (Total downloads styles) ... */
    text-align: center;
    font-size: 1.1em;
    color: var(--color-text-subtle);
    font-weight: 500;
}
.total-downloads span {
    color: #4CAF50;
    font-size: 1.3em;
    font-weight: 800;
}


/* ------------------------------------------- */
/* --- 3. Changelog History (Foldable/Accordion) --- */
/* ------------------------------------------- */

.changelog-section {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.changelog-section h2 {
    font-size: 2em;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 900;
}

.changelog-item {
    background-color: var(--color-bg-card);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.changelog-item.latest {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.changelog-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 20px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
    position: relative;
}

.changelog-header:hover {
    background-color: rgba(0, 255, 255, 0.05);
}

.changelog-header::after {
    content: '\2b'; 
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    color: var(--color-accent);
    transition: transform 0.3s;
}

.changelog-item.active .changelog-header::after {
    content: '\2212'; 
}

.changelog-version {
    font-size: 1.3em;
    color: var(--color-text-light);
    font-weight: 700;
    margin: 0;
}

.changelog-date {
    font-size: 0.9em;
    color: var(--color-text-subtle);
    margin: 0;
    padding-left: 20px; 
}

.changelog-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease-in-out;
}

.changelog-item.active .changelog-content {
    padding: 10px 30px 20px 30px; 
}

.changelog-item ul {
    list-style: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
}

.changelog-item ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="cyan" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 16px;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--color-text-light);
    font-size: 1em;
}

/* =========================================== */
/* --- SITE-WIDE FOOTER --- */
/* =========================================== */
.site-footer {
    background-color: var(--color-bg-card);
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: var(--color-text-light);
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col p, .footer-col ul {
    color: var(--color-text-subtle);
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.social-links a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--color-text-subtle);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 15px 20px;
    text-align: center;
    font-size: 0.8em;
    color: var(--color-text-subtle);
}


/* ------------------------------------------- */
/* --- 4. RESPONSIVENESS (Media Queries) --- */
/* ------------------------------------------- */

@media (max-width: 900px) {
    /* Download Section Stacking */
    .download-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-visual {
        width: 100%; 
        max-width: 500px; /* Constrain max width for visual centering */
        margin: 0 auto; 
        flex-basis: auto; 
    }
    
    .product-image {
        /* Ensure the image scales correctly within the visual container */
        max-height: 350px; 
        object-fit: contain;
    }

    .download-card {
        width: 100%;
        padding: 30px;
        flex-basis: auto;
    }

    /* Footer Stacking */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2em;
        margin: 30px 0;
    }
    
    /* Stack buttons for narrow screens */
    .download-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile Nav Hide */
    .nav-links {
        display: none; 
    }
    
    /* Refine Changelog for mobile width */
    .changelog-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .changelog-version {
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    
    .changelog-date {
        padding-left: 0;
        font-size: 0.85em;
    }

    .changelog-header::after {
        position: absolute;
        right: 20px;
        top: 25px;
    }
    
    .changelog-item.active .changelog-content {
        padding: 10px 20px 20px 20px; 
    }
}