/*
Theme Name: Kerstavontuur 2026
Theme URI: https://kerstavontuur.com
Author: Kerstavontuur
Author URI: https://kerstavontuur.com
Description: Editorial kerst- & winterblog-thema: ivory/forest/gold, Fraunces + DM Sans, homepage met 8 blokken, affiliate-hooks, Elementor-compatibel.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kerstavontuur-2026
Tags: blog, custom-menu, featured-images, full-width-template, rtl-language-support, threaded-comments, translation-ready

Kerstavontuur 2026 — volledig custom theme.
*/

/* Critical reset & fallbacks; hoofdstijl in assets/css/main.css */

/*
 * Category archive — sorteer-tabs (overschrijft components.css)
 */
.filter-bar {
	position: static;
	background: var(--color-ivory, #faf6ef);
	border-bottom: 1px solid rgba(232, 224, 212, 0.85);
	padding: 0.75rem 0;
	box-shadow: 0 1px 0 rgba(30, 58, 47, 0.04);
}

/* Zelfde horizontale ritme als .container → uitlijning met content-layout */
.filter-bar__inner {
	max-width: var(--content-max);
	margin: 0 auto;
	padding-left: clamp(1rem, 4vw, 1.5rem);
	padding-right: clamp(1rem, 4vw, 1.5rem);
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.filter-bar__label {
		display: none !important;
	}
}

.filter-bar__links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	margin: 0;
	padding: 6px 8px;
	background: #faf8f5;
	border: 1px solid #e8e2d9;
	border-radius: 10px;
	box-sizing: border-box;
}

.filter-bar__links a {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: #6b7b72;
	padding: 8px 16px;
	border-radius: 7px;
	background: transparent;
	border: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition:
		color 0.15s ease,
		background 0.15s ease,
		box-shadow 0.15s ease,
		border-color 0.15s ease,
		font-weight 0.15s ease;
}

.filter-bar__links a:hover {
	color: #1a3228;
	background: #f0ece6;
	border: none !important;
	text-decoration: none !important;
	box-shadow: none;
}

.filter-bar__links a.is-active {
	background: #ffffff;
	color: #1a3228;
	font-weight: 500;
	border: 1px solid #e8e2d9 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	text-decoration: underline !important;
	text-decoration-color: #c8a96e !important;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
	padding: 8px 16px 6px;
}

.filter-bar__links a.is-active:hover {
	color: #1a3228;
	background: #ffffff;
	border: 1px solid #e8e2d9 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.filter-bar__links a:focus-visible {
	outline: 2px solid #c8a96e;
	outline-offset: 2px;
}

.filter-bar__select {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	color: #1a3228;
	background: #faf8f5;
	border: 1px solid #e8e2d9;
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
}

@media (min-width: 768px) {
	.filter-bar__select {
		display: none;
	}
}

@media (max-width: 767px) {
	.filter-bar__links {
		display: none !important;
	}

	.filter-bar__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.filter-bar__label {
		display: block !important;
		font-size: 0.8125rem;
		font-weight: 600;
		color: #7a6f63;
		margin: 0;
	}

	.filter-bar__select {
		display: block !important;
		width: 100%;
		max-width: none;
		min-height: 2.75rem;
		box-sizing: border-box;
	}
}

/*
 * Loop grids (archive, category, blog index, search, single related) — article cards
 */
.post-grid .article-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e8e2d9;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-grid .article-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	transition: none;
}

.post-grid .article-card__link:hover {
	box-shadow: none !important;
	transform: none !important;
}

.post-grid .article-card__link:hover .article-card__title {
	color: #1a3228 !important;
}

.post-grid .article-card__media {
	position: relative;
	aspect-ratio: auto;
	height: 200px;
	min-height: 200px;
	max-height: 200px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0ece6;
}

.post-grid .article-card__media img {
	width: 100%;
	height: 200px;
	max-height: 200px;
	object-fit: cover;
	display: block;
}

.post-grid .article-card__media .article-card__media {
	min-height: 200px !important;
	height: 100% !important;
}

.post-grid .article-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}

/* Badges-rij: geen margin op losse chips (anders staat jaartag scheef t.o.v. categorie) */
.post-grid .article-card__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-self: flex-start;
	gap: 6px 8px;
	margin-bottom: 12px;
	max-width: 100%;
}

.post-grid .article-card__badges .article-card__cat,
.post-grid .article-card__badges .article-card__tag--year {
	margin: 0;
}

.post-grid .article-card__cat {
	background: #1a3228;
	color: #ffffff;
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
	width: fit-content;
	max-width: 100%;
}

.post-grid .article-card__title {
	font-family: var(--font-display), Georgia, serif;
	font-size: 20px;
	font-weight: 600;
	color: #1a3228 !important;
	line-height: 1.25;
	margin: 0 0 10px;
}

.post-grid .article-card__excerpt {
	font-family: var(--font-body);
	font-size: 13px;
	color: #6b7b72;
	line-height: 1.65;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-grid .article-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	margin-bottom: 0;
	flex-wrap: nowrap;
	gap: 10px;
	width: 100%;
}

.post-grid .article-card__meta-badge--read {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 400;
	color: #a0a89e;
	background: transparent !important;
	border: none !important;
	padding: 0;
	letter-spacing: normal;
	line-height: 1.3;
}

.post-grid .article-card__meta::after {
	content: "Lees meer";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	color: #1a3228;
	background: #f5f0e8;
	border: 1px solid #e0d5c0;
	padding: 6px 14px;
	border-radius: 20px;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
	flex-shrink: 0;
	pointer-events: none;
}

.post-grid .article-card__link:hover .article-card__meta::after {
	background: #c8a96e;
	color: #ffffff;
	border-color: #c8a96e;
}

/* —— 404 pagina —— */
body.error404 .site-main--404 {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #faf8f5;
	padding: clamp(1.25rem, 4vw, 2rem);
	box-sizing: border-box;
}

body.error404 .error-404 {
	background: #ffffff;
	border: 1px solid #e8e2d9;
	border-radius: 16px;
	border-top: 3px solid #c8a96e;
	padding: 48px 40px 40px;
	max-width: 480px;
	width: 100%;
	text-align: center;
	margin: 0 auto;
	box-sizing: border-box;
}

body.error404 .error-404 .page-header {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}

body.error404 .error-404__code {
	display: block;
	font-family: var(--font-display), Georgia, serif;
	font-size: 96px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -2px;
	color: #1a3228;
	margin: 0;
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	animation: none;
}

body.error404 .error-404__divider {
	width: 40px;
	height: 2px;
	background: #c8a96e;
	margin: 0 auto 20px;
}

body.error404 .error-404 .page-title {
	font-family: var(--font-display), Georgia, serif;
	font-size: 24px;
	font-weight: 600;
	color: #1a3228;
	line-height: 1.3;
	margin: 0 0 12px;
	letter-spacing: normal;
}

body.error404 .error-404__lead {
	font-family: var(--font-body);
	font-size: 14px;
	color: #6b7b72;
	line-height: 1.7;
	margin: 0 auto;
	max-width: 28rem;
}

body.error404 .error-404__actions {
	margin-top: 24px;
	margin-bottom: 0;
}

body.error404 .error-404__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	color: #ffffff;
	background: #1a3228;
	border: none;
	border-radius: 8px;
	padding: 10px 24px;
	text-decoration: none;
	transition: background 0.2s ease;
}

body.error404 .error-404__btn:hover,
body.error404 .error-404__btn:focus-visible {
	background: #2a4a38;
	color: #ffffff;
}

body.error404 .error-404__separator {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 24px 0 20px;
}

body.error404 .error-404__separator-line {
	flex: 1;
	height: 1px;
	background: #e8e2d9;
	min-width: 0;
}

body.error404 .error-404__separator-text {
	flex-shrink: 0;
	font-family: var(--font-body);
	font-size: 12px;
	color: #a0a89e;
}

body.error404 .error-404__search {
	margin: 0;
	padding: 0;
	border: none;
}

body.error404 .error-404 .search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
	justify-content: center;
	max-width: 100%;
}

body.error404 .error-404 .search-form__input {
	flex: 1 1 10rem;
	min-width: 0;
	padding: 9px 14px;
	font-family: var(--font-body);
	font-size: 13px;
	border: 1px solid #e8e2d9;
	border-radius: 8px;
	background: #faf8f5;
	transition: border-color 0.2s ease;
}

body.error404 .error-404 .search-form__input:focus {
	outline: none;
	border-color: #c8a96e;
	background: #faf8f5;
}

body.error404 .error-404 .search-form__submit {
	padding: 9px 18px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	color: #1a3228;
	background: #f5f0e8;
	border: 1px solid #e0d5c0;
	border-radius: 8px;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

body.error404 .error-404 .search-form__submit:hover {
	background: #c8a96e;
	color: #ffffff;
	border-color: #c8a96e;
}

/*
 * Header: altijd aan viewport gebonden (header staat buiten #page in header.php).
 * !important: overschrijft theme-builder/plugin CSS; fixed mag niet naar static/relative.
 */
#masthead.site-header,
header.site-header {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	width: 100% !important;
	max-width: none !important;
	z-index: 9998 !important;
	box-sizing: border-box;
}

body.admin-bar #masthead.site-header,
body.admin-bar header.site-header {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar #masthead.site-header,
	body.admin-bar header.site-header {
		top: 46px !important;
	}
}
