/* ==========================================================================
   Beatz Nation Posts By Period
   Design tokens — matched to Beatz Nation Fancy Home (white bg / black
   text / grey surfaces / red accent / Anton + Work Sans + Space Mono)
   ========================================================================== */
.bnpp-root {
	--bnpp-bg:        #FFFFFF;
	--bnpp-ink:       #111111;
	--bnpp-surface:   #F5F5F5;
	--bnpp-surface-2: #ECECEC;
	--bnpp-line:      #DCDCDC;
	--bnpp-muted:     #6E6E73;
	--bnpp-red:       #E31B23;
	--bnpp-red-dim:   #B4151B;

	--bnpp-display: "Anton", Impact, sans-serif;
	--bnpp-body:    "Work Sans", -apple-system, Helvetica, Arial, sans-serif;
	--bnpp-mono:    "Space Mono", monospace;

	--bnpp-radius: 10px;

	background: var(--bnpp-bg);
	color: var(--bnpp-ink);
	font-family: var(--bnpp-body);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	margin: 32px 0;
}

.bnpp-root * {
	box-sizing: border-box;
}

.bnpp-root a {
	color: inherit;
	text-decoration: none;
}

.bnpp-root img {
	max-width: 100%;
	display: block;
}

.bnpp-root :focus-visible {
	outline: 2px solid var(--bnpp-red);
	outline-offset: 2px;
}

.bnpp-eyebrow {
	display: block;
	font-family: var(--bnpp-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bnpp-red);
	margin-bottom: 6px;
}

.bnpp-head {
	margin-bottom: 20px;
}

.bnpp-title {
	font-family: var(--bnpp-display);
	font-weight: 400;
	font-size: clamp(22px, 3vw, 32px);
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0;
	color: var(--bnpp-ink);
}

/* ==========================================================================
   Grid
   ========================================================================== */
.bnpp-grid {
	display: grid;
	grid-template-columns: repeat(var(--bnpp-cols, 4), 1fr);
	gap: 18px;
}

@media (max-width: 900px) {
	.bnpp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.bnpp-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

.bnpp-empty {
	font-family: var(--bnpp-mono);
	font-size: 13px;
	color: var(--bnpp-muted);
	padding: 24px;
	border: 1px dashed var(--bnpp-line);
	border-radius: var(--bnpp-radius);
	text-align: center;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.bnpp-card {
	background: var(--bnpp-surface);
	border: 1px solid var(--bnpp-line);
	border-radius: var(--bnpp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bnpp-card:hover {
	border-color: var(--bnpp-red);
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.bnpp-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--bnpp-surface-2);
	display: block;
}

.bnpp-card--standard .bnpp-card__media {
	aspect-ratio: 16 / 10;
}

.bnpp-card--portrait .bnpp-card__media {
	aspect-ratio: 4 / 5;
}

.bnpp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(45%) contrast(1.05);
	transition: filter 0.3s ease, transform 0.4s ease;
}

.bnpp-card:hover .bnpp-card__media img {
	filter: grayscale(0%) contrast(1.05);
	transform: scale(1.03);
}

.bnpp-noimg {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bnpp-surface-2);
}

.bnpp-noimg span {
	font-family: var(--bnpp-display);
	font-size: 36px;
	color: var(--bnpp-line);
}

.bnpp-card__play {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(20, 18, 18, 0.72);
	color: #f2f2f0;
}

.bnpp-card__play .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.bnpp-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.bnpp-card__title {
	font-family: var(--bnpp-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	color: var(--bnpp-ink) !important;
}

.bnpp-card__meta {
	font-family: var(--bnpp-mono);
	font-size: 10px;
	color: var(--bnpp-muted);
	text-transform: uppercase;
}

/* ==========================================================================
   Admin-only inline debug notice (front end)
   ========================================================================== */
.bnpp-debug {
	margin-top: 12px;
	padding: 12px 14px;
	background: #fff8f2;
	border: 1px dashed #d98c00;
	border-radius: 6px;
	font-family: var(--bnpp-mono);
	font-size: 12px;
	color: #5a3d00;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.bnpp-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
}

.bnpp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bnpp-mono);
	font-weight: 700;
	border-radius: 8px;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Every clickable item — numbers, current, prev, next — shares the same
   button look: bordered box, red on hover, red-filled when active. Only
   the ellipsis (not clickable) is excluded below. */
.bnpp-pagination a.page-numbers,
.bnpp-pagination span.page-numbers.current {
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--bnpp-line);
	background: var(--bnpp-surface);
	color: var(--bnpp-ink);
	font-size: 15px;
}

.bnpp-pagination a.page-numbers:hover {
	border-color: var(--bnpp-red);
	color: var(--bnpp-red);
	transform: translateY(-2px);
}

.bnpp-pagination .page-numbers.current {
	background: var(--bnpp-red);
	border-color: var(--bnpp-red);
	color: #fff;
}

.bnpp-pagination .page-numbers.dots {
	min-width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	color: var(--bnpp-muted);
	font-size: 15px;
	font-weight: 400;
}

/* Prev/Next — same button, just labeled with uppercase text instead of
   a number, so it reads as an action rather than a page index. */
.bnpp-pagination a.page-numbers.prev,
.bnpp-pagination a.page-numbers.next {
	min-width: auto;
	padding: 0 22px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (max-width: 560px) {
	.bnpp-pagination a.page-numbers.prev,
	.bnpp-pagination a.page-numbers.next {
		padding: 0 14px;
		font-size: 10px;
	}

	.bnpp-pagination a.page-numbers,
	.bnpp-pagination span.page-numbers.current,
	.bnpp-pagination .page-numbers.dots {
		min-width: 38px;
		height: 38px;
		font-size: 13px;
	}
}
