/* ========== SITE DOWNLOADER ========== */

.dl-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: -5px;
    margin-bottom: 10px;
}

.dl-limits {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 16px;
}

.dl-url-display {
    font-size: 13px;
    color: #999;
    word-break: break-all;
    font-family: monospace;
    margin-bottom: 20px;
}

/* Progress bar */
.dl-bar-wrap {
    margin-bottom: 24px;
}

.dl-bar {
    width: 100%;
    height: 14px;
    background: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.dl-bar-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #4e2783, #7c3aed);
    transition: width 0.6s ease;
    width: 0%;
    box-shadow: 0 0 8px rgba(78, 39, 131, 0.4);
}

.dl-bar-fill.complete {
    background: linear-gradient(90deg, #1a8a42, #24a655);
    box-shadow: 0 0 8px rgba(26, 138, 66, 0.4);
}

.dl-bar-info {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.dl-bar-info span {
    font-size: 12px;
    color: #888;
}

.dl-bar-info span:last-child {
    font-weight: 600;
    color: #4e2783;
}

/* Type counters */
.dl-types {
    margin-bottom: 20px;
}

.dl-types-title,
.dl-tech-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.dl-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dl-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.dl-type-card.done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dl-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.dl-type-icon.html { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.dl-type-icon.css { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.dl-type-icon.js { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.dl-type-icon.image { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.dl-type-icon.font { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.dl-type-icon.other { background: rgba(107, 114, 128, 0.1); color: #6b7280; }

.dl-type-info {
    display: flex;
    flex-direction: column;
}

.dl-type-count {
    font-size: 16px;
    font-weight: 700;
    color: #1a0e2e;
    line-height: 1.2;
}

.dl-type-card.done .dl-type-count {
    color: #1a8a42;
}

.dl-type-label {
    font-size: 11px;
    color: #999;
}

/* Tech stack tags */
.dl-tech {
    margin-bottom: 20px;
}

.dl-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-tech-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(78, 39, 131, 0.08);
    color: #4e2783;
    border: 1px solid rgba(78, 39, 131, 0.15);
}

.dl-complete-tech .dl-tech-tag {
    background: rgba(26, 138, 66, 0.08);
    color: #1a8a42;
    border-color: rgba(26, 138, 66, 0.15);
}

/* Cancel button */
.dl-cancel {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.dl-cancel:hover {
    background: #f8f9fa;
    color: #555;
}

/* Complete state */
.dl-success-icon,
.dl-error-icon {
    text-align: center;
    margin-bottom: 16px;
}

.dl-success-icon svg {
    filter: drop-shadow(0 0 12px rgba(26, 138, 66, 0.3));
}

.dl-zip-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    margin-bottom: 20px;
}

.dl-zip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(26, 138, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a8a42;
}

.dl-zip-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a0e2e;
}

.dl-zip-meta {
    font-size: 12px;
    color: #888;
}

.dl-types-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

/* Download button green */
.dl-download-btn {
    background: linear-gradient(106deg, #24a655 1%, #1a8a42 90%) !important;
    box-shadow: 0 0 30px rgba(26, 138, 66, 0.3) !important;
}

.dl-download-btn:hover {
    box-shadow: 0 0 50px rgba(26, 138, 66, 0.5) !important;
}

/* Reset button */
.dl-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: none;
    border: 1px solid rgba(78, 39, 131, 0.3);
    border-radius: 8px;
    color: #4e2783;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.dl-reset:hover {
    background: rgba(78, 39, 131, 0.05);
    border-color: #4e2783;
}

/* Error state */
.dl-error-icon svg {
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.3));
}

.dl-error-msg {
    color: #ef4444;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 700px) {
    .dl-types-grid,
    .dl-types-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}
