/**
 * Modeo Account - Downloads Section
 * 
 * Premium styling for downloadable products
 */

/* ========================================
   DOWNLOADS CONTAINER
   ======================================== */

.modeo-downloads {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modeo-downloads .section-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modeo-downloads .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modeo-downloads .section-heading .material-icons {
    color: #cc1616;
    font-size: 28px;
}

.modeo-downloads .section-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   DOWNLOADS GRID
   ======================================== */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

@media (max-width: 767px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DOWNLOAD CARD
   ======================================== */

.download-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-card:hover {
    border-color: rgba(204, 22, 22, 0.2);
    box-shadow: 0 8px 24px rgba(204, 22, 22, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   CARD HEADER
   ======================================== */

.download-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.download-file-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-file-icon .material-icons {
    font-size: 28px;
    color: #ffffff;
}

/* File type colors - Unified Brand Style */
.download-file-icon {
    background: linear-gradient(135deg, #cc1616 0%, #a80f0f 100%);
}

.file-icon-pdf,
.file-icon-doc,
.file-icon-xls,
.file-icon-zip,
.file-icon-audio,
.file-icon-video,
.file-icon-image,
.file-icon-default {
    background: linear-gradient(135deg, #cc1616 0%, #991111 100%);
    box-shadow: 0 4px 10px rgba(204, 22, 22, 0.2);
}

/* Optional: Subtle variations if needed, otherwise stick to uniform brand */
/* We will keep it strictly uniform as per user request */

/* ========================================
   FILE INFO
   ======================================== */

.download-file-info {
    flex: 1;
    min-width: 0;
}

.download-file-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
    word-break: break-word;
}

.download-product-name {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   CARD META
   ======================================== */

.download-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.download-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.download-meta-item .material-icons {
    font-size: 18px;
    color: #cc1616;
}

.download-meta-item strong {
    color: #1f2937;
}

/* ========================================
   CARD ACTIONS
   ======================================== */

.download-card-actions {
    margin-top: auto;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #cc1616 0%, #b31313 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.25);
}

.download-button:hover {
    background: linear-gradient(135deg, #b31313 0%, #991111 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204, 22, 22, 0.35);
    color: #ffffff;
}

.download-button .material-icons {
    font-size: 20px;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.downloads-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, rgba(204, 22, 22, 0.03) 0%, rgba(248, 113, 113, 0.02) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(204, 22, 22, 0.15);
}

.downloads-empty-state .empty-state-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(204, 22, 22, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.downloads-empty-state .empty-state-icon .material-icons {
    font-size: 40px;
    color: #cc1616;
}

.downloads-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.downloads-empty-state p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.downloads-empty-state .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 767px) {
    .downloads-empty-state {
        padding: 40px 20px;
    }

    .downloads-empty-state .empty-state-icon {
        width: 64px;
        height: 64px;
    }

    .downloads-empty-state .empty-state-icon .material-icons {
        font-size: 32px;
    }
}