/* Download Center page layout: left category tree + right file list */

.hidden { display: none !important; }

.download-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
    align-items: start;
    text-align: left;
}

.download-tree {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 18px 12px;
    position: sticky;
    top: 90px;
}

.download-tree h3 {
    font-size: 0.95rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 10px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.download-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dl-tree-node {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dl-tree-node:hover { background: #eef4ff; color: #007bff; }

.dl-tree-node.active {
    background: #007bff;
    color: #fff;
}

.dl-tree-node .dl-count {
    float: right;
    font-size: 0.8rem;
    color: #999;
}

.dl-tree-node.active .dl-count { color: #d7e7ff; }

.dl-tree-child { padding-left: 16px !important; }

.dl-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* statically generated category sections */
.dl-category { margin-bottom: 34px; scroll-margin-top: 90px; }

.dl-category h2 {
    font-size: 1.25rem;
    color: #2c3e50;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    margin-bottom: 16px;
}

.dl-updated {
    color: #bbb;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 26px;
}

/* file meta inside cards */
.file-info .file-meta {
    font-size: 0.82rem;
    color: #999;
    margin-top: 3px;
}

.file-info .file-desc {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.file-icon.ext-zip, .file-icon.ext-rar, .file-icon.ext-7z { color: #f0ad4e; }
.file-icon.ext-exe, .file-icon.ext-msi, .file-icon.ext-apk,
.file-icon.ext-dmg, .file-icon.ext-iso { color: #28a745; }
.file-icon.ext-mp4 { color: #007bff; }
.file-icon.ext-doc, .file-icon.ext-docx, .file-icon.ext-xls,
.file-icon.ext-xlsx, .file-icon.ext-ppt, .file-icon.ext-pptx,
.file-icon.ext-txt { color: #6c757d; }

@media (max-width: 768px) {
    .download-layout {
        grid-template-columns: 1fr;
    }
    .download-tree {
        position: static;
    }
    .download-tree ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .dl-tree-node {
        background: #f2f6fc;
        padding: 6px 12px;
        font-size: 0.88rem;
    }
}
