/* rbb-post-list.css — Karten-Übersicht für [rbb_post_list] */

.rbb-post-list {
    margin: 0;
}

.rbb-post-list-empty {
    color: #646970;
    font-style: italic;
    margin: 0;
}

/* Grid */

.rbb-post-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Card */

.rbb-post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, opacity 0.3s ease;
}

.rbb-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rbb-post-card--removing {
    opacity: 0;
    pointer-events: none;
}

/* Thumbnail */

.rbb-post-card-thumb {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

.rbb-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rbb-post-card-thumb--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* Body */

.rbb-post-card-body {
    padding: 12px 14px 10px;
    flex: 1;
}

.rbb-post-card-title {
    font-size: 0.9375em;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #1d2327;
    word-break: break-word;
}

/* Status badges */

.rbb-post-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.rbb-post-status--publish { background: #dcfce7; color: #166534; }
.rbb-post-status--draft   { background: #fef9c3; color: #854d0e; }
.rbb-post-status--pending { background: #dbeafe; color: #1e40af; }
.rbb-post-status--private { background: #f3f4f6; color: #374151; }
.rbb-post-status--trash   { background: #fee2e2; color: #991b1b; }
.rbb-post-status--other   { background: #f3f4f6; color: #374151; }

/* Actions */

.rbb-post-card-actions {
    padding: 8px 12px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
}

.rbb-post-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8125em;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    white-space: nowrap;
    transition: background 0.1s, border-color 0.1s;
    font-family: inherit;
}

.rbb-post-card-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.rbb-post-card-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rbb-post-card-btn--trash {
    color: #dc2626;
    border-color: #fca5a5;
}

.rbb-post-card-btn--trash:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

/* Responsive: 1 Spalte auf kleinen Screens */

@media (max-width: 480px) {
    .rbb-post-list-grid {
        grid-template-columns: 1fr;
    }
}
