/* DemoDeck hub grid. The --demodeck-button-* variables are supplied per-request
   via wp_add_inline_style() from the plugin settings. */
.sdp-hub-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sdp-demo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.sdp-demo-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 200px;
}

.sdp-demo-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	border-color: #cbd5e1;
}

.sdp-demo-thumbnail {
	margin-bottom: 20px;
	overflow: hidden;
	border-radius: 8px;
}

.sdp-demo-thumbnail img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.sdp-demo-card:hover .sdp-demo-thumbnail img {
	transform: scale(1.05);
}

.sdp-demo-title {
	margin: 0 0 20px 0;
	font-size: 20px;
	color: #1f2937;
	font-weight: 600;
}

.sdp-demo-btn {
	display: inline-block;
	background: var(--demodeck-button-bg, #2563eb) !important;
	color: var(--demodeck-button-text, #ffffff) !important;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 500;
	transition: filter 0.2s;
}

.sdp-demo-btn:hover {
	filter: brightness(0.85);
	color: var(--demodeck-button-text, #ffffff);
}
