/*
Theme Name: Islamino Noor
Theme URI: https://islamino.nl
Author: Islamino.nl
Description: Professioneel, snel en veilig islamitisch thema voor Islamino.nl. Met gebedstijden, Hijri-datum, vers van de dag, audiobibliotheek (/Audio), video- en live-tv-pagina's, donkere modus en volledige ondersteuning voor Arabische tekst.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: islamino-noor
Tags: blog, news, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, rtl-language-support, translation-ready, threaded-comments
*/

/* ---------- Tokens ---------- */
:root {
	--c-primary: #0b4f3c;
	--c-primary-deep: #06352a;
	--c-primary-soft: #e3efe9;
	--c-gold: #c9a24a;
	--c-gold-soft: #f3e7c6;
	--c-bg: #faf7ef;
	--c-surface: #ffffff;
	--c-ink: #1b2622;
	--c-muted: #5d6b65;
	--c-line: #e6dfcd;
	--shadow: 0 1px 2px rgba(6,53,42,.06), 0 8px 24px rgba(6,53,42,.07);
	--radius: 14px;
	--radius-sm: 8px;
	--maxw: 1200px;
	--f-head: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
	--f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--f-ar: "Amiri", "Traditional Arabic", "Scheherazade New", "Noto Naskh Arabic", serif;
	--pattern: url("assets/img/pattern.svg");
	color-scheme: light;
}
html[data-theme="dark"] {
	--c-primary: #3fa784;
	--c-primary-deep: #0c1f1a;
	--c-primary-soft: #16302a;
	--c-gold: #d9b764;
	--c-gold-soft: #3a3220;
	--c-bg: #0f1714;
	--c-surface: #16211d;
	--c-ink: #e9efe9;
	--c-muted: #a3b2ab;
	--c-line: #263630;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font: 400 1.0625rem/1.7 var(--f-body);
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; }
iframe { border: 0; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-gold); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0 0 .5em; color: var(--c-ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text, .sr-only {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 1000; background: var(--c-surface); padding: 10px 16px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

[lang="ar"], .arabic, .ar {
	font-family: var(--f-ar);
	direction: rtl;
	unicode-bidi: isolate;
	line-height: 2;
	font-size: 1.25em;
}

/* ---------- Top bar ---------- */
.topbar {
	background: var(--c-primary-deep);
	color: #e9e2cc;
	font-size: .875rem;
}
.topbar .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: #e9e2cc; text-decoration: none; }
.topbar a:hover { color: var(--c-gold); }
.topbar__dates { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.topbar__hijri { color: var(--c-gold); }
.topbar__next { display: inline-flex; gap: 6px; align-items: center; }
.topbar__next strong { color: #fff; }
.topbar__menu ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }


/* ---------- Header ---------- */
.site-header {
	background: var(--c-primary);
	background-image: linear-gradient(180deg, rgba(6,53,42,.0), rgba(6,53,42,.35)), var(--pattern);
	background-size: auto, 80px 80px;
	color: #fff;
	position: relative;
	border-bottom: 3px solid var(--c-gold);
}
html[data-theme="dark"] .site-header { background-color: #0d2b23; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand__mark { width: 52px; height: 52px; color: var(--c-gold); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand .custom-logo { max-height: 64px; width: auto; }
.brand__name { font-family: var(--f-head); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1; letter-spacing: .5px; }
.brand__tag { display: block; font-size: .9rem; opacity: .85; margin-top: 6px; font-family: var(--f-body); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); cursor: pointer;
	transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.18); border-color: var(--c-gold); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.bismillah-head { font-family: var(--f-ar); color: #f3e7c6; font-size: 1.6rem; direction: rtl; display: none; }
@media (min-width: 900px) { .bismillah-head { display: block; } }

/* ---------- Navigation ---------- */
.main-nav { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(6,53,42,.05); }
.admin-bar .main-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .main-nav { top: 0; } }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--c-ink); font: 600 1rem var(--f-body); gap: 8px; align-items: center; padding: 10px 0; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; flex-wrap: wrap; }
.nav-menu > li { position: relative; }
.nav-menu a { display: block; padding: 16px 14px; color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-menu > li > a { border-bottom: 3px solid transparent; }
.nav-menu > li:hover > a, .nav-menu > li.current-menu-item > a, .nav-menu > li.current-menu-ancestor > a, .nav-menu > li.current-menu-parent > a { color: var(--c-primary); border-bottom-color: var(--c-gold); }
.nav-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--c-surface); border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-gold); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 60; padding: 6px 0;
}
.nav-menu .sub-menu .sub-menu { left: 100%; top: -9px; border-top-width: 1px; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a { padding: 9px 18px; font-weight: 500; font-size: .95rem; }
.nav-menu .sub-menu a:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.nav-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .6; }
.sub-toggle { display: none; }
.nav-search { display: flex; }

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-surface); border-bottom: 3px solid var(--c-gold); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow: auto; }
	.nav-wrap.is-open { display: block; }
	.nav-menu { flex-direction: column; padding: 8px 0; }
	.nav-menu > li > a { border-bottom: 0; }
	.nav-menu a { padding: 12px 16px; }
	.nav-menu .sub-menu, .nav-menu .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: 0; box-shadow: none; padding: 0 0 0 14px; background: transparent; min-width: 0; }
	.nav-menu li.is-open > .sub-menu { display: block; }
	.nav-menu .menu-item-has-children > a::after { display: none; }
	.nav-menu li { position: relative; }
	.sub-toggle { display: grid; place-items: center; position: absolute; right: 8px; top: 4px; width: 40px; height: 40px; background: none; border: 0; color: var(--c-ink); cursor: pointer; }
	.sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
	li.is-open > .sub-toggle::before { transform: rotate(-135deg); }
}

/* ---------- Search overlay ---------- */
.search-panel { display: none; background: var(--c-primary-deep); padding: 18px 0; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; width: 100%; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--c-line); font: inherit; background: var(--c-surface); color: var(--c-ink);
}
.btn, .search-form button, input[type="submit"], .wp-block-button__link, button.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--c-primary); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: 600 .98rem var(--f-body);
	cursor: pointer; text-decoration: none; transition: background .2s, transform .1s;
}
.btn:hover, .search-form button:hover, input[type="submit"]:hover { background: var(--c-gold); color: #1b2622; }
.btn--gold { background: var(--c-gold); color: #1b2622; }
.btn--gold:hover { background: #fff; color: var(--c-primary-deep); }
.btn--ghost { background: transparent; border: 1px solid currentColor; color: inherit; }

/* ---------- Hero ---------- */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background: radial-gradient(1200px 400px at 50% -10%, rgba(201,162,74,.28), transparent 60%), linear-gradient(160deg, var(--c-primary-deep), #0b4f3c 70%);
}
html[data-theme="dark"] .hero { background: radial-gradient(1200px 400px at 50% -10%, rgba(217,183,100,.18), transparent 60%), linear-gradient(160deg, #07130f, #0d2b23 70%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px 96px; opacity: .22; pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 28px; padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.35fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 72px; } }
.hero__bismillah { font-family: var(--f-ar); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--c-gold); direction: rtl; text-align: center; margin-bottom: 14px; line-height: 1.6; }
@media (min-width: 960px) { .hero__bismillah { text-align: start; } }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__lead { font-size: 1.15rem; opacity: .9; max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .btn--ghost { color: #fff; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Ayah card */
.ayah-card {
	position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,74,.5); border-radius: var(--radius);
	padding: 26px 24px 20px; backdrop-filter: blur(4px); text-align: center;
}
.ayah-card::before, .ayah-card::after { content: "۞"; position: absolute; top: 10px; color: var(--c-gold); font-size: 1.1rem; }
.ayah-card::before { left: 14px; } .ayah-card::after { right: 14px; }
.ayah-card__label { text-transform: uppercase; letter-spacing: 2px; font-size: .75rem; color: var(--c-gold); font-weight: 700; }
.ayah-card__ar { font-family: var(--f-ar); direction: rtl; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 2; margin: 10px 0 8px; color: #fff; }
.ayah-card__nl { font-style: italic; opacity: .92; margin-bottom: 8px; }
.ayah-card__ref { font-size: .85rem; color: #e8d9ab; }
.content-area .ayah-card { background: var(--c-primary-deep); color: #fff; }

/* ---------- Layout ---------- */
.site-main { padding: 40px 0 56px; }
.layout { display: grid; gap: 36px; }
@media (min-width: 1000px) { .layout--sidebar { grid-template-columns: minmax(0, 1fr) 330px; } }
.section { margin-bottom: 52px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--c-line); padding-bottom: 10px; position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 3px; background: var(--c-gold); border-radius: 2px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 .star { color: var(--c-gold); font-size: .8em; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Prayer widget ---------- */
.prayer-strip { margin-top: -30px; position: relative; z-index: 2; }
.prayer-card { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--c-line); padding: 18px 18px 14px; }
.prayer-card__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.prayer-card__head h2, .prayer-card__head h3 { margin: 0; font-size: 1.35rem; }
.prayer-card__city { color: var(--c-muted); font-size: .9rem; }
.prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .prayer-grid { grid-template-columns: repeat(6, 1fr); } }
.prayer-item { text-align: center; padding: 10px 6px; border-radius: var(--radius-sm); background: var(--c-primary-soft); border: 1px solid transparent; }
.prayer-item__name { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--c-muted); }
.prayer-item__ar { font-family: var(--f-ar); font-size: 1rem; color: var(--c-primary); line-height: 1.4; }
.prayer-item__time { font-family: var(--f-head); font-size: 1.6rem; font-weight: 700; color: var(--c-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.prayer-item.is-next { background: var(--c-primary); border-color: var(--c-gold); }
.prayer-item.is-next * { color: #fff !important; }
.prayer-item.is-next .prayer-item__ar { color: var(--c-gold) !important; }
.prayer-card__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--c-muted); margin-top: 10px; }
.sidebar .prayer-grid { grid-template-columns: repeat(2, 1fr); }
.sidebar .prayer-item { display: flex; justify-content: space-between; align-items: center; text-align: start; padding: 8px 12px; }
.sidebar .prayer-item__ar { display: none; }
.sidebar .prayer-item__time { font-size: 1.25rem; }

.prayer-table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.prayer-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 620px; }
.prayer-table th, .prayer-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--c-line); }
.prayer-table thead th { background: var(--c-primary); color: #fff; font-weight: 600; position: sticky; top: 0; }
.prayer-table tr.is-today td { background: var(--c-gold-soft); font-weight: 700; }
.prayer-table td:first-child { text-align: start; white-space: nowrap; }
.prayer-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 18px; }
.prayer-controls label { display: grid; gap: 4px; font-size: .85rem; color: var(--c-muted); font-weight: 600; }
select, input[type="text"], input[type="email"], input[type="url"], input[type="number"], textarea {
	padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-ink); font: inherit; max-width: 100%;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; min-width: 0; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16/9; background: var(--c-primary-deep) var(--pattern) center/64px; display: block; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media--placeholder { display: grid; place-items: center; color: var(--c-gold); font-family: var(--f-ar); font-size: 2rem; }
.card__badge { position: absolute; left: 12px; top: 12px; background: var(--c-gold); color: #1b2622; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.card__play { position: absolute; inset: 0; display: grid; place-items: center; }
.card__play span { width: 56px; height: 56px; border-radius: 50%; background: rgba(6,53,42,.85); border: 2px solid var(--c-gold); display: grid; place-items: center; }
.card__play span::before { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.25rem; margin: 0; }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a:hover { color: var(--c-primary); }
.card__meta { font-size: .82rem; color: var(--c-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.card__excerpt { color: var(--c-muted); font-size: .95rem; margin: 0; }
.card--row { flex-direction: row; }
.card--row .card__media { width: 120px; aspect-ratio: 1; flex: none; }
.card--row .card__body { padding: 10px 14px; }
.card--row .card__title { font-size: 1.05rem; }

/* Category tiles */
.cat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cat-tile {
	display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--c-surface);
	border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); transition: .2s;
}
.cat-tile:hover { border-color: var(--c-gold); background: var(--c-primary-soft); color: var(--c-primary); }
.cat-tile__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--c-primary); color: var(--c-gold); display: grid; place-items: center; flex: none; font-family: var(--f-ar); font-size: 1.2rem; }
.cat-tile__name { font-weight: 700; line-height: 1.25; }
.cat-tile__count { font-size: .8rem; color: var(--c-muted); }

/* Feature blocks */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature {
	position: relative; padding: 24px 22px; border-radius: var(--radius); color: #fff; text-decoration: none; overflow: hidden;
	background: linear-gradient(150deg, var(--c-primary), var(--c-primary-deep)); min-height: 150px; display: flex; flex-direction: column; justify-content: end;
}
.feature::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 70px; opacity: .25; }
.feature > * { position: relative; }
.feature__ar { font-family: var(--f-ar); color: #d9b764; font-size: 1.6rem; line-height: 1.3; }
.feature h3 { color: #fff; margin: 4px 0 2px; }
.feature p { margin: 0; opacity: .85; font-size: .95rem; }
.feature:hover { color: #fff; }
.feature:hover::before { opacity: .4; }

/* ---------- Article ---------- */
.entry { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); }
.entry-header { margin-bottom: 22px; }
.entry-title { margin-bottom: 12px; }
.entry-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--c-muted); font-size: .9rem; }
.entry-meta a { color: inherit; }
.entry-thumb { margin: 0 0 24px; border-radius: var(--radius-sm); overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 1.1rem; overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content blockquote {
	margin: 1.5em 0; padding: 18px 22px; background: var(--c-primary-soft); border-inline-start: 4px solid var(--c-gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--c-line); padding: 8px 10px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content iframe { display: block; margin: 1em auto; width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { aspect-ratio: 16/9; height: auto !important; }
.entry-content audio { width: 100%; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; } .wp-caption-text { font-size: .85rem; color: var(--c-muted); text-align: center; }
.entry-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--c-line); display: grid; gap: 14px; }
.tags a, .cats a { display: inline-block; background: var(--c-primary-soft); color: var(--c-primary); padding: 3px 12px; border-radius: 999px; font-size: .85rem; text-decoration: none; margin: 0 6px 6px 0; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); font: 600 .85rem var(--f-body); background: var(--c-surface); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--c-gold); color: var(--c-primary); }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--c-gold); width: 0; z-index: 100; }
.text-size { display: inline-flex; gap: 4px; }
.text-size button { width: 34px; height: 30px; border-radius: 6px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); cursor: pointer; font-weight: 700; }

.breadcrumbs { font-size: .88rem; color: var(--c-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .sep { margin: 0 6px; color: var(--c-gold); }

.post-nav { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.post-nav a { display: block; padding: 14px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); text-decoration: none; color: var(--c-ink); }
.post-nav small { display: block; color: var(--c-muted); }
.post-nav .next { text-align: end; }

.archive-header { background: var(--c-primary-deep) var(--pattern); background-size: 80px; color: #fff; padding: 36px 0; border-bottom: 3px solid var(--c-gold); }
.archive-header h1 { color: #fff; margin: 0; }
.archive-header .breadcrumbs, .archive-header .breadcrumbs a { color: #d8d2bd; }
.archive-desc { opacity: .85; margin-top: 8px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.subcats a { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 5px 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.subcats a:hover { border-color: var(--c-gold); color: var(--c-gold); }

.pagination { margin-top: 32px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); }
.pagination .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 22px; align-content: start; }
.widget { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; }
.widget-title, .widget .wp-block-heading { font-size: 1.25rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--c-line); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--c-gold); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--c-line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { text-decoration: none; color: var(--c-ink); }
.widget li a:hover { color: var(--c-primary); }
.widget .children { padding-inline-start: 14px; }
.widget .prayer-card { border: 0; box-shadow: none; padding: 0; }

/* ---------- Audio player ---------- */
.audio-lib { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.audio-lib__head { padding: 16px 18px; background: var(--c-primary); color: #fff; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.audio-lib__head h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.audio-lib__crumbs { font-size: .88rem; }
.audio-lib__crumbs a { color: var(--c-gold-soft); text-decoration: none; }
.audio-lib__folders { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 16px; border-bottom: 1px solid var(--c-line); }
.audio-folder { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); text-decoration: none; color: var(--c-ink); }
.audio-folder:hover { border-color: var(--c-gold); background: var(--c-primary-soft); }
.audio-folder svg { width: 22px; height: 22px; color: var(--c-gold); flex: none; }
.player { padding: 16px 18px; border-bottom: 1px solid var(--c-line); background: var(--c-primary-soft); position: sticky; top: 56px; z-index: 5; }
.player__now { font-weight: 700; margin-bottom: 8px; overflow-wrap: anywhere; }
.player__now small { display: block; font-weight: 400; color: var(--c-muted); }
.player audio { width: 100%; }
.player__ctrls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.player__ctrls button, .player__ctrls select { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); cursor: pointer; font: 600 .85rem var(--f-body); }
.player__ctrls button:hover { border-color: var(--c-gold); }
.track-filter { padding: 12px 18px; border-bottom: 1px solid var(--c-line); }
.track-filter input { width: 100%; }
.tracklist { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; counter-reset: trk; }
.track { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--c-line); cursor: pointer; }
.track:hover { background: var(--c-primary-soft); }
.track::before { counter-increment: trk; content: counter(trk); min-width: 28px; color: var(--c-muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.track__title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.track__dl { color: var(--c-muted); padding: 4px; display: grid; place-items: center; }
.track__dl svg { width: 18px; height: 18px; }
.track.is-playing { background: var(--c-gold-soft); font-weight: 700; }
.track.is-playing::before { content: "▶"; color: var(--c-primary); }
.audio-lib__empty { padding: 24px 18px; color: var(--c-muted); }

/* ---------- Video / Live ---------- */
.yt-facade { position: relative; aspect-ratio: 16/9; background: #000 center/cover no-repeat; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; display: block; width: 100%; border: 0; padding: 0; }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.6)); }
.yt-facade__play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.yt-facade__play span { width: 70px; height: 70px; border-radius: 50%; background: rgba(6,53,42,.9); border: 2px solid var(--c-gold); display: grid; place-items: center; transition: transform .2s; }
.yt-facade__play span::before { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.yt-facade:hover .yt-facade__play span { transform: scale(1.08); }
.yt-facade__title { position: absolute; left: 14px; right: 14px; bottom: 10px; color: #fff; z-index: 1; font-weight: 700; text-align: start; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt-note { font-size: .8rem; color: var(--c-muted); margin-top: 6px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: #b3261e; color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 1px; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.live-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .live-grid { grid-template-columns: 1fr; } }
.live-item h3 { font-size: 1.2rem; margin: 10px 0 0; display: flex; gap: 10px; align-items: center; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-body { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary-deep); color: #d9d4c2; position: relative; margin-top: 30px; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 90px; opacity: .1; pointer-events: none; }
.footer-arch { height: 28px; background: radial-gradient(circle at 50% 100%, transparent 26px, var(--c-bg) 27px) top / 60px 28px repeat-x; }
.site-footer a { color: #f0ead6; text-decoration: none; }
.site-footer a:hover { color: var(--c-gold); }
.footer-widgets { position: relative; display: grid; gap: 30px; padding: 44px 0 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3, .site-footer .widget-title { color: var(--c-gold); font-size: 1.3rem; border: 0; }
.site-footer .widget { background: transparent; border: 0; padding: 0; }
.site-footer .widget li { border-color: rgba(255,255,255,.08); }
.site-footer .widget li a { color: #f0ead6; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-ayah { font-family: var(--f-ar); direction: rtl; color: var(--c-gold); font-size: 1.5rem; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; border: 2px solid var(--c-gold); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .2s; cursor: pointer; z-index: 80; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

.notice-box { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--c-gold-soft); border-inline-start: 4px solid var(--c-gold); margin-bottom: 18px; }
.error-404 { text-align: center; padding: 40px 0; }
.error-404 .big { font-family: var(--f-head); font-size: 6rem; color: var(--c-gold); line-height: 1; }

@media print {
	.topbar, .main-nav, .sidebar, .site-footer, .share, .to-top, .comments-area, .post-nav, .reading-progress { display: none !important; }
	body { background: #fff; color: #000; }
	.entry { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Mobiel: compacte kop */
@media (max-width: 640px) {
	.topbar .container { justify-content: center; min-height: 34px; }
	.topbar__menu, .js-greg-date { display: none; }
	.topbar__dates { gap: 10px; justify-content: center; font-size: .8rem; }
	.brand__tag { display: none; }
	.brand__mark { width: 42px; height: 42px; }
	.site-header__inner { padding-top: 14px; padding-bottom: 14px; }
}
