/**
 * PDF Download Manager - Frontend Styles
 *
 * Card grid layout matching the reference design:
 * - Gray background icon area
 * - Title below icon
 * - File size + blue download button at bottom
 */

.pdm-grid {
    display: grid;
    grid-template-columns: repeat(var(--pdm-columns, 3), 1fr);
    gap: 24px;
    padding: 10px 0;
}

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

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

/* Card */
.pdm-card {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.pdm-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Icon area */
.pdm-card-icon {
    background: #eef0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    min-height: 200px;
}

.pdm-pdf-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

/* Info area */
.pdm-card-info {
    padding: 18px 20px;
}

.pdm-card-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a2e;
    word-break: break-word;
}

/* Meta row: file size + download button */
.pdm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.pdm-card-size {
    font-size: 13px;
    color: #6b7280;
}

/* Download button */
.pdm-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.pdm-download-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.pdm-download-btn:visited {
    color: #fff;
}

.pdm-download-btn svg {
    width: 20px;
    height: 20px;
}

/* No PDFs message */
.pdm-no-pdfs {
    color: #6b7280;
    font-style: italic;
    padding: 20px 0;
}
