 /* =============================================================================
   DOWNLOAD PAGE SPECIFIC STYLES
   ============================================================================= */

/* Package Display Styles */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Package List Layout */
.package-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.package-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    transition: background 0.15s;
}

.package-item:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.package-item:hover {
    background: #fff7ef;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.package-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
    word-break: break-word;
}

.package-version {
    background: #F08019;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.package-description {
    color: #4a5568;
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

.package-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.package-meta strong {
    color: #F08019;
}

.package-meta span {
    background: #f8fafc;
    border: 1px solid #f0f0f0;
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: none;
}

.package-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

/* No Results Display */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Download Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal h3 {
    color: #F08019;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.modal p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal .btn {
    padding: 10px 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .package-list {
        border-radius: 0;
        box-shadow: none;
    }

    .package-item {
        flex-direction: column;
        gap: 10px;
        padding: 14px 10px;
    }

    .package-header {
        min-width: 0;
        flex: 1 1 auto;
    }
}