/* ── BB Premium: Post Grid ────────────────────────────────────────────────── */

.bbpe-pg { width: 100%; }

.bbpe-pg__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* ── Grid card ───────────────────────────────────────────────────────────── */
.bbpe-pg__post {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bbpe-pg__post:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
	transform: translateY(-4px);
}

/* Thumbnail */
.bbpe-pg__thumbnail-link { display: block; overflow: hidden; }

.bbpe-pg__thumbnail {
	position: relative;
	padding-bottom: 60%;
	overflow: hidden;
}

.bbpe-pg__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.bbpe-pg__post:hover .bbpe-pg__img {
	transform: scale(1.05);
}

/* Body */
.bbpe-pg__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Meta */
.bbpe-pg__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 0.75rem;
}

.bbpe-pg__cat {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6366f1;
	text-decoration: none;
	background: #ede9fe;
	padding: 2px 10px;
	border-radius: 999px;
}

.bbpe-pg__cat:hover { background: #ddd6fe; }

.bbpe-pg__date {
	font-size: 0.8125rem;
	color: #94a3b8;
}

/* Title */
.bbpe-pg__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
	margin: 0 0 0.75rem;
}

.bbpe-pg__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.bbpe-pg__title a:hover { color: #6366f1; }

/* Excerpt */
.bbpe-pg__excerpt {
	font-size: 0.9375rem;
	color: #64748b;
	line-height: 1.7;
	margin: 0 0 1.25rem;
	flex: 1;
}

/* Read more */
.bbpe-pg__read-more {
	display: inline-flex;
	align-items: center;
	background-color: transparent;
	color: #6366f1;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border-radius: 0;
	align-self: flex-start;
	gap: 4px;
	transition: gap 0.2s ease, color 0.2s ease;
}

.bbpe-pg__read-more::after { content: ' →'; }

.bbpe-pg__read-more:hover,
.bbpe-pg__read-more:focus-visible {
	color: #4f46e5;
	gap: 8px;
	transform: none;
}

/* No posts admin notice */
.bbpe-no-posts {
	padding: 16px;
	background: #fef9c3;
	border: 1px solid #fde047;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #713f12;
}

/* ── List variant ────────────────────────────────────────────────────────── */
.bbpe-pg--list .bbpe-pg__grid { grid-template-columns: 1fr; }

.bbpe-pg--list .bbpe-pg__post {
	flex-direction: row;
	gap: 0;
}

.bbpe-pg--list .bbpe-pg__thumbnail-link {
	flex-shrink: 0;
	width: 220px;
}

.bbpe-pg--list .bbpe-pg__thumbnail {
	padding-bottom: 0;
	height: 100%;
}

.bbpe-pg--list .bbpe-pg__img {
	position: absolute;
	inset: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.bbpe-pg__grid { grid-template-columns: repeat(2, 1fr); }
	.bbpe-pg--list .bbpe-pg__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.bbpe-pg__grid { grid-template-columns: 1fr; }

	.bbpe-pg--list .bbpe-pg__post { flex-direction: column; }

	.bbpe-pg--list .bbpe-pg__thumbnail-link { width: 100%; }

	.bbpe-pg--list .bbpe-pg__thumbnail {
		height: auto;
		padding-bottom: 55%;
	}
}
