/* =========================================================================
   Voley PLT — blog index
   Half height hero · filter toolbar · post card grid · pager
   The card itself is .voley-post, shared with the homepage (see base.css).
   ========================================================================= */

/* Hero -------------------------------------------------------------------- */
.voley-bhero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 50vh;
	background: var(--v-ink-2);
	color: var(--v-white);
	overflow: hidden;
}

.voley-bhero__bg {
	position: absolute;
	inset: 0;
}

.voley-root .voley-bhero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 58% 38%;
}

.voley-bhero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(96deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.46) 40%, rgba(0, 0, 0, 0.08) 78%),
		linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 46%);
}

/* The overlay header floats on top, so reserve its height here. */
.voley-bhero__inner {
	position: relative;
	z-index: 1;
	padding-top: calc(var(--v-header-h) + 44px);
	padding-bottom: 54px;
}

.voley-bhero__eyebrow {
	margin-bottom: 14px;
	font-size: var(--v-fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

/* Double-scoped so it wins over a theme's h1 colour on the dark photo. */
.voley-root.voley-root .voley-bhero__title {
	max-width: 18ch;
	color: var(--v-white);
	font-family: var(--v-font-display);
	font-size: var(--v-fs-h1);
	font-style: italic;
	font-weight: 800;
	letter-spacing: -0.004em;
	line-height: 1.1;
	text-transform: uppercase;
	text-wrap: balance;
}

/* Filter toolbar ---------------------------------------------------------- */
.voley-bfilter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--v-line-soft);
}

.voley-bfilter__chips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.voley-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-white);
	font-size: var(--v-fs-sm);
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.25s var(--v-ease), border-color 0.25s var(--v-ease), color 0.25s var(--v-ease);
}

.voley-chip b {
	font-size: var(--v-fs-xs);
	font-weight: 600;
	color: var(--v-grey-500);
	transition: color 0.25s var(--v-ease);
}

.voley-chip:hover {
	border-color: var(--v-ink);
}

.voley-chip.is-active {
	border-color: var(--v-ink);
	background: var(--v-ink);
	color: var(--v-white);
}

.voley-chip.is-active b {
	color: var(--v-accent);
}

.voley-bfilter__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.voley-bsearch {
	position: relative;
	display: flex;
	align-items: center;
}

.voley-bsearch i {
	position: absolute;
	left: 13px;
	display: grid;
	place-items: center;
	color: var(--v-grey-500);
	pointer-events: none;
}

.voley-root .voley-bsearch input {
	width: 210px;
	height: 40px;
	padding: 0 14px 0 38px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-white);
	font-size: var(--v-fs-sm);
	color: var(--v-ink);
	appearance: none;
	transition: border-color 0.25s var(--v-ease), width 0.25s var(--v-ease);
}

.voley-root .voley-bsearch input::placeholder {
	color: var(--v-grey-500);
}

.voley-root .voley-bsearch input:focus {
	border-color: var(--v-ink);
	outline: none;
}

.voley-bsort {
	position: relative;
	display: flex;
	align-items: center;
}

.voley-bsort i {
	position: absolute;
	right: 12px;
	display: grid;
	place-items: center;
	color: var(--v-grey-500);
	pointer-events: none;
}

.voley-root .voley-bsort select {
	height: 40px;
	padding: 0 34px 0 16px;
	border: 1px solid var(--v-line);
	border-radius: var(--v-r-pill);
	background: var(--v-white);
	font-size: var(--v-fs-sm);
	font-weight: 600;
	color: var(--v-ink);
	appearance: none;
	cursor: pointer;
	transition: border-color 0.25s var(--v-ease);
}

.voley-root .voley-bsort select:focus {
	border-color: var(--v-ink);
	outline: none;
}

/* The sort select auto-submits, so the button is only a no-JS fallback. */
.voley-root.js .voley-bfilter__go {
	display: none;
}

/* Result count ------------------------------------------------------------ */
.voley-bcount {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	font-size: var(--v-fs-sm);
	color: var(--v-grey-600);
}

.voley-bcount a {
	font-weight: 600;
	color: var(--v-accent);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s var(--v-ease);
}

.voley-bcount a:hover {
	border-color: var(--v-accent);
}

/* Grid -------------------------------------------------------------------- */
.voley-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--v-gap);
}

/* Pager ------------------------------------------------------------------- */
.voley-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 44px;
}

.voley-pager .voley-navbtn.is-off {
	opacity: 0.32;
	pointer-events: none;
}

.voley-pager__pages {
	display: flex;
	align-items: center;
	gap: 6px;
}

.voley-pager__page {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border-radius: var(--v-r-pill);
	font-size: var(--v-fs-sm);
	font-weight: 600;
	color: var(--v-grey-600);
	transition: background-color 0.25s var(--v-ease), color 0.25s var(--v-ease);
}

.voley-pager__page:hover {
	background: var(--v-grey-100);
	color: var(--v-ink);
}

.voley-pager__page.is-active {
	background: var(--v-ink);
	color: var(--v-white);
}

/* Empty state ------------------------------------------------------------- */
.voley-bempty {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 64px 20px 72px;
	border: 1px solid var(--v-line-soft);
	border-radius: var(--v-r-card);
	background: var(--v-grey-50);
	text-align: center;
}

.voley-bempty .voley-sub {
	max-width: 38ch;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
	.voley-blog__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}
}

@media (max-width: 900px) {
	.voley-bfilter {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.voley-bfilter__tools {
		flex-wrap: wrap;
	}

	.voley-bsearch {
		flex: 1 1 190px;
	}

	.voley-root .voley-bsearch input {
		width: 100%;
	}

	/* Chips scroll sideways instead of stacking into a tall block. */
	.voley-bfilter__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.voley-bfilter__chips::-webkit-scrollbar {
		display: none;
	}

	.voley-blog__grid {
		grid-template-columns: 1fr;
		gap: var(--v-gap);
		max-width: 520px;
		margin-inline: auto;
	}
}

@media (max-width: 640px) {
	.voley-bhero {
		min-height: 50vh;
	}

	.voley-bhero__inner {
		padding-bottom: 40px;
	}

	.voley-pager__pages {
		gap: 2px;
	}

	.voley-pager__page {
		min-width: 32px;
		height: 32px;
	}
}
