/* Shared card grid + card shell
 *
 * Reference style mirrors the dashboard card (currently the most
 * evolved card in the app — has thumbnail, gen-status badges,
 * actions overlay). CSS variables only — see global.css.
 */

.shared-card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.shared-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
    display: flex;
    flex-direction: column;
}

.shared-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-dark);
    transform: translateY(-1px);
}

.shared-card-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shared-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shared-card-body {
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.shared-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.shared-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shared-card-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 150ms ease;
    flex-shrink: 0;
}

.shared-card:hover .shared-card-actions {
    opacity: 1;
}

.shared-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shared-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: auto;
}

.shared-card-meta i {
    margin-right: 4px;
}
