/* Drop this file into: wp-content/mu-plugins/xpr-shortcodes.css */

/* Base */
.xpr-pr-section {
	width: 100%;
	margin: 0;
	padding: 0;
}

.xpr-pr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px 0;
	padding: 0;
}

.xpr-pr-title {
	margin: 0;
	padding: 0;
	line-height: 1.2;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* Items wrapper */
.xpr-pr-items {
	display: grid;
	gap: 14px;
}

/* List layout */
.xpr-layout-list .xpr-pr-items {
	grid-template-columns: 1fr;
}

.xpr-layout-list .xpr-pr-item {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 12px;
	align-items: start;
	padding: 12px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 12px;
	background: transparent;
}

@media (max-width: 640px) {
	.xpr-layout-list .xpr-pr-item {
		grid-template-columns: 1fr;
	}
}

/* List layout: when no thumbnail, make it full width */
.xpr-layout-list .xpr-pr-item:not(:has(.xpr-pr-media)) {
	grid-template-columns: 1fr;
}

/* List thumbnail (16:9) */
.xpr-pr-media {
	display: block;
	text-decoration: none;
}

.xpr-pr-media-inner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(0,0,0,0.04);
}

.xpr-pr-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Body */
.xpr-pr-body,
.xpr-pr-card-body {
	min-width: 0;
}

.xpr-pr-meta {
	margin: 0 0 6px 0;
	font-size: 0.85rem;
	opacity: 0.8;
}

.xpr-pr-date {
	white-space: nowrap;
}

.xpr-pr-item-title {
	margin: 0 0 6px 0;
	padding: 0;
	font-size: 1.02rem;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.xpr-pr-link {
	text-decoration: none;
	color: inherit;
}

.xpr-pr-link:hover,
.xpr-pr-link:focus {
	text-decoration: underline;
}

.xpr-pr-excerpt {
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	opacity: 0.9;
}

/* Grid layout */
.xpr-layout-grid .xpr-pr-items {
	grid-template-columns: repeat(var(--xpr-cols, 3), minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.xpr-layout-grid .xpr-pr-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.xpr-layout-grid .xpr-pr-items {
		grid-template-columns: 1fr;
	}
}

.xpr-layout-grid .xpr-pr-item {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 14px;
	overflow: hidden;
	background: transparent;
}

/* Grid thumbnail (16:9) */
.xpr-pr-card-media {
	display: block;
	text-decoration: none;
}

.xpr-pr-card-media-inner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: rgba(0,0,0,0.04);
}

.xpr-layout-grid .xpr-pr-card-body {
	padding: 12px;
}

/* Empty state */
.xpr-pr-empty {
	padding: 12px;
	border: 1px dashed rgba(0,0,0,0.18);
	border-radius: 12px;
	opacity: 0.85;
}
