/* WB Design System — Dashboard List
 * Shared styles for user dashboard item lists (listings, events, etc.).
 * Buttons use plugin-specific color classes (ll-button-primary / kv-button-primary)
 * alongside wb-button for structure. No context class needed on the container.
 */

/* ===== Header Row ===== */

.wb-dashboard-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.wb-dashboard-header-row h3 {
	margin: 0;
}

/* ===== List ===== */

.wb-dashboard-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ===== Item ===== */

.wb-dashboard-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border: 1px solid rgba(128, 128, 128, 0.2);
	border-radius: var(--wb-ctx-radius, 0.9375rem);
	transition: background 0.2s;
}

.wb-dashboard-item:hover {
	background: rgba(0, 0, 0, 0.02);
}

/* ===== Clickable Wrapper (thumb + info) ===== */

.wb-dashboard-item-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

/* ===== Thumbnail ===== */

.wb-dashboard-item-thumb {
	width: 4rem;
	height: 3rem;
	border-radius: 0.375rem;
	overflow: hidden;
	flex-shrink: 0;
}

.wb-dashboard-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
}

.wb-dashboard-item-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: #e9ecef;
}

/* ===== Info ===== */

.wb-dashboard-item-info {
	flex: 1;
	min-width: 0;
}

.wb-dashboard-item-title {
	margin: 0;
	font-size: 0.9375rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wb-dashboard-item-meta {
	font-size: 0.8125rem;
	color: #6c757d;
	margin-right: 0.5rem;
}

/* ===== Actions ===== */

.wb-dashboard-item-actions {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
	align-items: center;
}

/* ===== Status Badges ===== */

.wb-status-badge {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.6875rem;
	font-weight: 600;
	margin-right: 0.375rem;
}

.wb-status-draft {
	background: rgba(108, 117, 125, 0.1);
	color: #6c757d;
}

.wb-status-pending {
	background: rgba(243, 156, 18, 0.12);
	color: #b37a1a;
}

.wb-status-active {
	background: rgba(39, 174, 96, 0.12);
	color: #1a8a4a;
}

.wb-status-revision {
	background: rgba(240, 173, 78, 0.15);
	color: #9a6a18;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
	.wb-dashboard-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.wb-dashboard-item-actions {
		width: 100%;
		justify-content: flex-end;
	}
}
