/**
 * Frontend styles - Listados PDF
 * Diseño limpio y estructurado
 */

.pld-listado {
    --pld-primary: #1a5f7a;
    --pld-accent: #00d4aa;
    margin: 2rem 0;
    font-family: inherit;
}

.pld-listado-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pld-primary);
    line-height: 1.3;
}

.pld-listado-desc {
    margin: 0 0 1.25rem 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pld-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pld-item {
    margin: 0;
    padding: 0;
}

.pld-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pld-item-link:hover {
    border-color: var(--pld-primary);
    background-color: rgba(26, 95, 122, 0.04);
    box-shadow: 0 2px 8px rgba(26, 95, 122, 0.08);
}

.pld-item-icon {
    flex-shrink: 0;
    color: var(--pld-primary);
}

.pld-item-icon svg {
    display: block;
}

.pld-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pld-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1d2327;
}

.pld-item-desc {
    font-size: 0.875rem;
    color: #646970;
}

.pld-item-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.pld-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pld-btn svg {
    flex-shrink: 0;
}

.pld-btn-view {
    color: var(--pld-primary);
    background: rgba(26, 95, 122, 0.08);
}

.pld-btn-view:hover {
    background: rgba(26, 95, 122, 0.15);
    color: var(--pld-primary);
}

.pld-btn-download {
    color: var(--pld-accent);
    background: rgba(0, 212, 170, 0.12);
}

.pld-btn-download:hover {
    background: rgba(0, 212, 170, 0.2);
    color: var(--pld-accent);
}

/* Layout: Cards */
.pld-layout-cards .pld-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pld-layout-cards .pld-item-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 0;
    height: 100%;
}

.pld-layout-cards .pld-item-actions {
    align-self: flex-end;
    margin-top: auto;
}

/* Layout: Compact */
.pld-layout-compact .pld-item-link {
    padding: 10px 14px;
}

.pld-layout-compact .pld-item-title {
    font-size: 0.95rem;
}

.pld-layout-compact .pld-item-desc {
    display: none;
}

.pld-layout-compact .pld-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.pld-layout-compact .pld-btn svg {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .pld-listado {
        margin: 1.5rem 0;
    }

    .pld-listado-title {
        font-size: 1.25rem;
    }

    .pld-layout-cards .pld-items {
        grid-template-columns: 1fr;
    }

    .pld-item-link {
        flex-wrap: wrap;
        padding: 12px 14px;
    }

    .pld-item-actions {
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #e2e4e7;
    }
}
