/* ============================================================
   LuxeEur — General Page Templates
   Covers: Static Page, 404, Search Results, Blog Archive, Single Post
   ============================================================ */

/* ===========================================================
   SHARED: Page title banner (page.php — all pages)
   =========================================================== */
.luxe-page-title-banner {
	background: rgba(var(--color-foreground, 36, 40, 51), 0.04);
	padding: 2.5rem 0;
	text-align: center;
}

/* WooCommerce pages (cart, checkout, account) get more breathing room */
.luxe-page-title-banner--wc {
	padding: 2.5rem 0 1.5rem;
	background: transparent;
	text-align: left;
}

.luxe-page-title-banner--wc .luxe-page-title-text {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 700;
}

.luxe-page-title-text {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: var(--font-heading-weight, 400);
	letter-spacing: 0.01em;
}

/* Static page content wrapper */
.luxe-static-page-inner {
	padding: 3rem 0 5rem;
}

.luxe-page-content {
	max-width: 54rem;
	font-size: 1rem;
	line-height: 1.75;
}

.luxe-page-content h2,
.luxe-page-content h3,
.luxe-page-content h4 {
	margin-top: 2rem;
	margin-bottom: 0.875rem;
}

.luxe-page-content p {
	margin-bottom: 1.25rem;
}

.luxe-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--small-radius, 4px);
}

/* WC notices above cart/checkout/account */
.luxe-wc-notices {
	padding-top: 1.5rem;
}

@media screen and (max-width: 749px) {
	.luxe-page-title-banner {
		padding: 2rem 0;
	}

	.luxe-page-title-banner--wc {
		padding: 2.5rem 0 2rem;
	}

	.luxe-static-page-inner {
		padding: 2rem 0 3rem;
	}
}

/* ===========================================================
   SHARED: Older banner classes (search.php, archive.php, single.php)
   =========================================================== */
.luxe-page-banner,
.luxe-search-banner,
.luxe-blog-banner {
	background: rgba(var(--color-foreground, 36, 40, 51), 0.04);
	padding: 3.5rem 0 3rem;
	text-align: center;
}

.luxe-blog-banner-description {
	max-width: 40rem;
	margin: 0.75rem auto 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.7);
}

/* Post banner (single.php) — can have featured image */
.luxe-post-banner {
	position: relative;
	min-height: 18rem;
	display: flex;
	align-items: center;
	background: rgba(var(--color-foreground, 36, 40, 51), 0.04);
}

.luxe-post-banner .banner-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.luxe-post-banner .banner-content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
}

.luxe-post-banner .banner-content-main {
	padding-bottom: 2.5rem;
}

.luxe-post-banner.has-thumbnail .text-content-heading,
.luxe-post-banner.has-thumbnail .luxe-post-meta,
.luxe-post-banner.has-thumbnail .luxe-post-breadcrumb {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 749px) {

	.luxe-page-banner,
	.luxe-search-banner,
	.luxe-blog-banner {
		padding: 2.5rem 0 2rem;
	}

	.luxe-post-banner {
		min-height: 12rem;
	}
}

/* ===========================================================
   404 PAGE
   =========================================================== */
.luxe-404-section {
	padding: 5rem 0 6rem;
	text-align: center;
}

.luxe-404-inner {
	max-width: 36rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

.luxe-404-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	margin: 0;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.5);
	text-transform: uppercase;
}

.luxe-404-title {
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: var(--font-heading-weight, 400);
}

.luxe-404-text {
	margin: 0;
	max-width: 30rem;
	text-align: center;
	line-height: 1.7;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.7);
}

.luxe-404-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.luxe-404-search {
	margin-top: 2rem;
	width: 100%;
	max-width: 24rem;
}

.luxe-404-search p {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.65);
}

.luxe-404-search-form .search {
	display: flex;
	align-items: center;
	border: 1px solid rgba(var(--color-foreground, 36, 40, 51), 0.15);
	border-radius: 999px;
	overflow: hidden;
}

.luxe-404-search-form .field-input {
	flex: 1 1 auto;
	min-height: 2.875rem;
	padding: 0 0.875rem;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 0.9rem;
	color: inherit;
}

.luxe-404-search-form .field-input:focus {
	outline: none;
}

.luxe-404-search-form .search-button {
	background: none;
	border: none;
	padding: 0 0.875rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	color: inherit;
	opacity: 0.6;
}

.luxe-404-search-form .search-button:hover {
	opacity: 1;
}

@media screen and (max-width: 749px) {
	.luxe-404-section {
		padding: 3rem 0 4rem;
	}
}

/* ===========================================================
   SEARCH RESULTS
   =========================================================== */
.luxe-search-form-wrapper {
	padding: 2rem 0;
	max-width: 42rem;
	margin: 0 auto;
}

.luxe-search-form-wrapper .search-form,
.luxe-search-form-wrapper form[role="search"] {
	display: flex;
	align-items: center;
	border: 1px solid rgba(var(--color-foreground, 36, 40, 51), 0.15);
	border-radius: 999px;
	overflow: hidden;
}

.luxe-search-form-wrapper input[type="search"],
.luxe-search-form-wrapper input[type="text"] {
	flex: 1 1 auto;
	min-height: 3rem;
	padding: 0 1rem;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 1rem;
	color: inherit;
}

.luxe-search-form-wrapper input:focus {
	outline: none;
}

.luxe-search-form-wrapper button[type="submit"],
.luxe-search-form-wrapper input[type="submit"] {
	background: rgb(var(--color-foreground, 36, 40, 51));
	color: rgb(var(--color-background, 255, 255, 255));
	border: none;
	min-height: 3rem;
	padding: 0 1.25rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: var(--font-body-weight-bold, 700);
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.luxe-search-form-wrapper button[type="submit"]:hover,
.luxe-search-form-wrapper input[type="submit"]:hover {
	opacity: 0.82;
}

.luxe-search-results-section {
	padding-bottom: 3rem;
}

.luxe-search-results-section+.luxe-search-results-section {
	border-top: 1px solid rgba(var(--color-foreground, 36, 40, 51), 0.07);
	padding-top: 2.5rem;
}

.luxe-search-section-title {
	margin: 0 0 1.5rem;
	font-size: 0.8125rem;
	font-weight: var(--font-body-weight-bold, 700);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.55);
}

.luxe-search-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: 1.25rem;
}

.luxe-search-post {
	display: grid;
	grid-template-rows: auto 1fr;
	border-radius: var(--medium-radius, 8px);
	overflow: hidden;
}

.luxe-search-post-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.luxe-search-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.luxe-search-post:hover .luxe-search-post-thumb img {
	transform: scale(1.03);
}

.luxe-search-post-body {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.luxe-search-post-type {
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.55);
}

.luxe-search-post-title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.4;
}

.luxe-search-post-excerpt {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.7);
}

.luxe-search-empty {
	padding: 3rem 0;
	text-align: center;
}

/* ===========================================================
   BLOG ARCHIVE
   =========================================================== */
.luxe-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.75rem;
	padding: 2.5rem 0 5rem;
}

.luxe-blog-grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: 1.25rem;
}

.luxe-blog-card {
	display: grid;
	grid-template-rows: auto 1fr;
	border-radius: var(--medium-radius, 8px);
	overflow: hidden;
}

.luxe-blog-card-thumb {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: rgba(var(--color-foreground, 36, 40, 51), 0.04);
}

.luxe-blog-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.luxe-blog-card:hover .luxe-blog-card-thumb img {
	transform: scale(1.04);
}

.luxe-blog-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.luxe-blog-card-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.8rem;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.55);
}

.luxe-blog-card-title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
}

.luxe-blog-card-excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.65;
	flex: 1 1 auto;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.7);
}

.luxe-blog-card-read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

.luxe-blog-empty {
	padding: 3rem 0;
	text-align: center;
}

@media screen and (max-width: 749px) {
	.luxe-blog-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		padding-top: 1.5rem;
		padding-bottom: 3rem;
	}
}

/* ===========================================================
   SINGLE POST
   =========================================================== */
.luxe-post-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
	font-size: 0.8rem;
	flex-wrap: wrap;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.65);
}

.luxe-post-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.65);
}

.luxe-post-content-wrapper {
	max-width: 48rem;
	margin: 0 auto;
	padding: 3rem 0 5rem;
}

.luxe-post-content {
	font-size: 1.0625rem;
	line-height: 1.8;
}

.luxe-post-content h2,
.luxe-post-content h3,
.luxe-post-content h4 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.luxe-post-content p {
	margin-bottom: 1.25rem;
}

.luxe-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--small-radius, 4px);
}

.luxe-post-content blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid rgba(var(--color-foreground, 36, 40, 51), 0.2);
	font-style: italic;
	opacity: 0.8;
}

/* Post navigation (prev/next) */
.luxe-post-nav {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(var(--color-foreground, 36, 40, 51), 0.1);
}

.luxe-post-nav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.luxe-post-nav .nav-previous,
.luxe-post-nav .nav-next {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.luxe-post-nav .nav-next {
	text-align: right;
	align-items: flex-end;
}

.luxe-post-nav-direction {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(var(--color-foreground, 36, 40, 51), 0.55);
}

.luxe-post-nav-title {
	font-size: 0.9rem;
}

/* Tags */
.luxe-post-tags {
	margin-top: 2rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.875rem;
}

.luxe-tag {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	background: rgba(var(--color-foreground, 36, 40, 51), 0.06);
	border-radius: 999px;
	font-size: 0.8rem;
}

.luxe-tag a {
	text-decoration: none;
}

/* Comments */
.luxe-post-comments {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(var(--color-foreground, 36, 40, 51), 0.1);
}

/* Related posts section */
.luxe-post-related {
	padding: 0 0 5rem;
}

.luxe-archive-section-header {
	margin-bottom: 1.5rem;
}

@media screen and (max-width: 749px) {
	.luxe-post-content-wrapper {
		padding-top: 2rem;
		padding-bottom: 3rem;
	}

	.luxe-post-nav .nav-links {
		grid-template-columns: 1fr;
	}

	.luxe-post-nav .nav-next {
		text-align: left;
		align-items: flex-start;
	}
}

/* ===========================================================
   SHARED: Pagination
   =========================================================== */
.pagination-container {
	padding: 2.5rem 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.pagination-container .nav-links {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination-container .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0 0.5rem;
	border-radius: var(--small-radius, 4px);
	font-size: 0.875rem;
	text-decoration: none;
	background: transparent;
	transition: background 0.15s ease;
}

.pagination-container .page-numbers:hover {
	background: rgba(var(--color-foreground, 36, 40, 51), 0.06);
}

.pagination-container .page-numbers.current {
	background: rgb(var(--color-foreground, 36, 40, 51));
	color: rgb(var(--color-background, 255, 255, 255));
}

.pagination-container .page-numbers.dots {
	pointer-events: none;
}

.pagination-container .prev,
.pagination-container .next {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
}