/*
Theme Name: TechCast Reboot
Theme URI: https://techcast.nl
Author: Eric van Klaveren
Description: Licht en snel thema voor TechCast Reboot. Podcasts, video's en blogs, met dark en light mode, menu met submenu's, vrienden en een media-agenda (via de TechCast Core plugin).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
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: techcast
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, post-formats, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Kleuren en basiswaarden
   Kleurcodes komen uit het TechCast Reboot logo en de PowerPoint-template.
   ========================================================================== */

:root {
	/* Merkkleuren, gelijk in beide modi */
	--tc-violet: #6602F2;        /* Electric Violet, primair accent */
	--tc-neon: #9B5CFF;          /* Neon Purple, highlights */
	--tc-red: #FC0D22;           /* Reboot Red, nadruk */
	--tc-red-strong: #E00B1E;    /* Rood als achtergrond onder witte tekst (betere leesbaarheid) */
	--tc-red-glow: #FF5A6E;      /* Rood voor kleine tekst op donker */

	/* Dark mode is de standaard */
	--bg: #0B0014;               /* Void */
	--surface: #1A0B2E;          /* Surface, kaarten */
	--surface-2: #26123F;        /* Iets lichter vlak, hover */
	--border: #33204F;
	--text: #FDF4F5;             /* Paper White */
	--muted: #A99BC4;            /* Lilac Grey */
	--link: #B48AFF;
	--link-hover: #FF5A6E;
	--accent-text: #FF5A6E;      /* Kleine rode labels */
	--header-bg: rgba(11, 0, 20, .86);
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--glitch-opacity: .55;

	--font-head: "Century Gothic", CenturyGothic, "URW Gothic", "URW Gothic L", Futura, "Trebuchet MS", sans-serif;
	--font-body: Verdana, Geneva, "DejaVu Sans", "Segoe UI", sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--wrap: 1200px;
	--gap: 28px;

	color-scheme: dark;
}

/* Light mode: gekozen via de knop, of automatisch als de bezoeker light gebruikt */
:root[data-theme="light"] {
	--bg: #F5F2FA;               /* Paper */
	--surface: #FFFFFF;
	--surface-2: #EEE8F7;
	--border: #E0D8EC;
	--text: #160B26;             /* Ink */
	--muted: #5B4E70;
	--link: #6602F2;
	--link-hover: #E00B1E;
	--accent-text: #D00A1C;
	--header-bg: rgba(245, 242, 250, .9);
	--shadow: 0 8px 24px rgba(91, 78, 112, .14);
	--glitch-opacity: .22;
	color-scheme: light;
}

/* ==========================================================================
   2. Reset en basis
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	transition: background-color .2s ease, color .2s ease;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.2;
	margin: 1.6em 0 .6em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

:focus-visible { outline: 3px solid var(--tc-neon); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	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;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; width: auto;
	left: 12px; top: 12px; z-index: 100000; padding: 12px 18px;
	background: var(--tc-violet); color: #fff; border-radius: var(--radius-sm);
}

.tc-wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.tc-icon { width: 1.1em; height: 1.1em; flex: none; }
.tc-icon:not([fill="none"]) { fill: currentColor; } /* merkiconen gevuld, interface-iconen als lijn */

/* ==========================================================================
   3. Topbalk: socials links, zoeken en thema-knop rechts
   ========================================================================== */

.tc-topbar { border-bottom: 1px solid var(--border); font-size: 13px; }
.tc-topbar .tc-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 46px; gap: 12px; }

.tc-social { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tc-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	color: var(--muted); transition: color .15s, background-color .15s;
}
.tc-social a:hover { color: var(--text); background: var(--surface-2); }

.tc-tools { display: flex; align-items: center; gap: 6px; }

.tc-btn-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0;
	border: 1px solid var(--border); border-radius: 50%;
	background: transparent; color: var(--text); cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.tc-btn-icon:hover { background: var(--surface-2); border-color: var(--tc-violet); }

/* Zon in dark mode tonen, maan in light mode */
.tc-theme-toggle .tc-i-moon { display: none; }
:root[data-theme="light"] .tc-theme-toggle .tc-i-sun { display: none; }
:root[data-theme="light"] .tc-theme-toggle .tc-i-moon { display: block; }

.tc-search-panel { border-bottom: 1px solid var(--border); background: var(--surface); }
.tc-search-panel[hidden] { display: none; }
.tc-search-panel .tc-wrap { padding: 18px 0; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; padding: 12px 16px; font: inherit; font-size: 16px;
	color: var(--text); background: var(--bg);
	border: 1px solid var(--border); border-radius: 999px;
}
.search-field:focus { border-color: var(--tc-violet); outline: none; box-shadow: 0 0 0 3px rgba(102, 2, 242, .35); }

.tc-button, .search-submit, .wp-block-button__link, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 22px; border: 0; border-radius: 999px;
	background: var(--tc-violet); color: #fff;
	font-family: var(--font-body); font-size: 14px; font-weight: 700;
	text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s;
}
.tc-button:hover, .search-submit:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
	background: var(--tc-red-strong); color: #fff;
}

/* ==========================================================================
   4. Branding: microfoon-logo gecentreerd met naam en tagline
   ========================================================================== */

.tc-branding { position: relative; text-align: center; padding: 34px 0 26px; overflow: hidden; }

/* Glitchbalken uit het logo als achtergrond, alleen aan de zijkanten */
.tc-branding::before, .tc-branding::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 34%;
	background: url("assets/img/glitch.svg") repeat-y;
	background-size: 100% auto; opacity: var(--glitch-opacity); pointer-events: none;
}
.tc-branding::before { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.tc-branding::after { right: 0; transform: scaleX(-1); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }

.tc-branding > * { position: relative; z-index: 1; }

.tc-logo { display: inline-block; line-height: 0; }
.tc-logo img, .custom-logo { width: auto; max-height: 120px; margin-inline: auto; }

.tc-logo-placeholder {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 199px; height: 120px; border: 2px dashed var(--muted); border-radius: var(--radius-sm);
	color: var(--muted); font-size: 12px; line-height: 1.4;
}

.site-title {
	margin: 14px 0 0; font-family: var(--font-head); font-weight: 700;
	font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; letter-spacing: -.02em;
}
.site-title a { color: var(--text); text-decoration: none; }
.site-title a:hover { color: var(--text); }

.site-description {
	margin: 10px 0 0; color: var(--accent-text);
	font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
}

/* ==========================================================================
   5. Hoofdmenu met submenu's (meerdere niveaus)
   ========================================================================== */

.tc-nav-bar {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
	-webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
}
.admin-bar .tc-nav-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .tc-nav-bar { top: 0; } }

.tc-nav-bar .tc-wrap { display: flex; align-items: center; justify-content: center; min-height: 56px; }

.tc-menu-toggle {
	display: none; align-items: center; gap: 10px; padding: 10px 16px;
	border: 1px solid var(--border); border-radius: 999px; background: transparent;
	color: var(--text); font: 700 14px var(--font-body); cursor: pointer;
}

.tc-menu, .tc-menu ul { list-style: none; margin: 0; padding: 0; }
.tc-menu { display: flex; flex-wrap: wrap; justify-content: center; }
.tc-menu li { position: relative; }

.tc-menu a {
	display: flex; align-items: center; gap: 6px;
	padding: 16px 14px; color: var(--text);
	font-family: var(--font-head); font-size: 15px; font-weight: 700; text-decoration: none;
}
.tc-menu > li > a { position: relative; }
.tc-menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 2px;
	background: var(--tc-red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.tc-menu > li:hover > a::after,
.tc-menu > li.current-menu-item > a::after,
.tc-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }

.tc-menu .menu-item-has-children { display: flex; align-items: center; }
.tc-menu .menu-item-has-children > a { padding-right: 4px; }

.tc-sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; margin-right: 6px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.tc-sub-toggle:hover { color: var(--text); background: var(--surface-2); }
.tc-sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.tc-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown op desktop */
@media (min-width: 961px) {
	.tc-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px;
		background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
		box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
	}
	.tc-menu .sub-menu a {
		padding: 9px 12px; border-radius: 6px;
		font-family: var(--font-body); font-size: 14px; font-weight: 400;
	}
	.tc-menu .sub-menu a:hover { background: var(--surface-2); color: var(--text); }
	.tc-menu .sub-menu .menu-item-has-children { justify-content: space-between; }
	.tc-menu .sub-menu .tc-sub-toggle svg { transform: rotate(-90deg); }

	/* Derde niveau klapt naar rechts uit */
	.tc-menu .sub-menu .sub-menu { top: -9px; left: 100%; margin-left: 4px; }

	.tc-menu li:hover > .sub-menu,
	.tc-menu li:focus-within > .sub-menu,
	.tc-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

	/* Laatste items openen naar links zodat ze niet uit beeld vallen */
	.tc-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	.tc-menu > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; margin: 0 4px 0 0; }
}

/* Mobiel menu: uitklapbaar, submenu's als accordeon */
@media (max-width: 960px) {
	.tc-nav-bar .tc-wrap { flex-direction: column; align-items: stretch; padding: 10px 0; }
	.tc-menu-toggle { display: inline-flex; align-self: center; }
	.tc-nav { display: none; padding-top: 10px; }
	.tc-nav.is-open { display: block; }
	.tc-menu { flex-direction: column; }
	.tc-menu li { border-top: 1px solid var(--border); }
	.tc-menu .menu-item-has-children { flex-wrap: wrap; }
	.tc-menu .menu-item-has-children > a { flex: 1; }
	.tc-menu a { padding: 13px 8px; }
	.tc-menu > li > a::after { display: none; }
	.tc-menu .sub-menu { display: none; width: 100%; padding-left: 16px; }
	.tc-menu .is-open > .sub-menu { display: block; }
	.tc-menu .sub-menu a { font-family: var(--font-body); font-weight: 400; font-size: 15px; }
	.tc-sub-toggle { width: 40px; height: 40px; }
}

/* ==========================================================================
   6. Layout: inhoud links, zijbalk rechts
   ========================================================================== */

.tc-main { padding: 40px 0 64px; }
.tc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.tc-layout.is-full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1020px) { .tc-layout { grid-template-columns: minmax(0, 1fr); } }

.tc-section-title {
	display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
	font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-text);
	font-family: var(--font-body);
}
.tc-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.tc-archive-head { margin-bottom: 32px; }
.tc-archive-head h1 { margin: 6px 0 8px; }
.tc-archive-head .archive-description { color: var(--muted); }

/* ==========================================================================
   7. Kaarten en uitgelichte post
   ========================================================================== */

.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tc-layout.is-full .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { .tc-layout.is-full .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tc-grid, .tc-layout.is-full .tc-grid { grid-template-columns: minmax(0, 1fr); } }

.tc-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tc-card:hover { transform: translateY(-3px); border-color: var(--tc-violet); box-shadow: var(--shadow); }

.tc-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.tc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tc-card:hover .tc-card-media img { transform: scale(1.04); }

/* Geen uitgelichte afbeelding: rustige merkvlakte met de microfoon */
.tc-card-noimg {
	width: 100%; height: 100%; display: grid; place-items: center;
	background: radial-gradient(circle at 50% 45%, rgba(102, 2, 242, .45), transparent 65%), #0B0014;
}
.tc-card-noimg img { width: auto; height: 48%; object-fit: contain; }

.tc-badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
	border-radius: 999px; color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	background: var(--tc-violet);
}
.tc-badge .tc-icon { width: 13px; height: 13px; }
.tc-badge.is-audio { background: var(--tc-red-strong); }
.tc-badge.is-video { background: var(--tc-violet); }
.tc-badge.is-blog { background: rgba(11, 0, 20, .78); }

.tc-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }

.tc-cats { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 12px; }
.tc-cats a { color: var(--accent-text); font-weight: 700; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; }
.tc-cats a:hover { color: var(--text); }

.tc-card-title { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.3; }
.tc-card-title a { color: var(--text); text-decoration: none; }
.tc-card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* hele kaart klikbaar */
.tc-card-title a:hover { color: var(--text); }

.tc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.tc-meta > span { display: inline-flex; align-items: center; gap: 6px; }

.tc-card-excerpt { margin: 12px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.tc-card-excerpt p { margin: 0; }

.tc-more {
	margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
	color: var(--link); font-size: 14px; font-weight: 700;
}
.tc-card:hover .tc-more { color: var(--link-hover); }
.tc-cats, .tc-more { position: relative; z-index: 2; }

/* Uitgelichte (nieuwste of vastgezette) post bovenaan */
.tc-featured {
	position: relative; display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 40px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.tc-featured .tc-card-media { aspect-ratio: auto; min-height: 320px; }
.tc-featured .tc-card-body { padding: 34px 34px 32px; justify-content: center; }
.tc-featured .tc-card-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tc-featured .tc-card-excerpt { font-size: 15px; }
.tc-featured:hover { border-color: var(--tc-violet); }
.tc-featured:hover .tc-card-media img { transform: scale(1.03); }
.tc-featured .tc-card-media img { transition: transform .4s ease; }
@media (max-width: 760px) {
	.tc-featured { grid-template-columns: minmax(0, 1fr); }
	.tc-featured .tc-card-media { min-height: 0; aspect-ratio: 16 / 9; }
	.tc-featured .tc-card-body { padding: 22px; }
}

/* ==========================================================================
   8. Paginering
   ========================================================================== */

.tc-pagination { margin-top: 44px; }
.tc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px;
}
.tc-pagination .page-numbers:hover { border-color: var(--tc-violet); color: var(--text); }
.tc-pagination .page-numbers.current { background: var(--tc-violet); border-color: var(--tc-violet); color: #fff; }
.tc-pagination .page-numbers.dots { border: 0; }

/* ==========================================================================
   9. Zijbalk en widgets
   ========================================================================== */

.tc-sidebar { display: grid; gap: 24px; }
.tc-sidebar .widget, .tc-footer-widgets .widget {
	padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	font-size: 14px;
}
.widget-title, .widget h2, .wp-block-heading.widget-title {
	margin: 0 0 14px; font-family: var(--font-body); font-size: 12px; font-weight: 700;
	letter-spacing: .26em; text-transform: uppercase; color: var(--accent-text);
}
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 9px 0; border-top: 1px solid var(--border); }
.widget li:first-child { border-top: 0; padding-top: 0; }
.widget a { color: var(--text); text-decoration: none; }
.widget a:hover { color: var(--link-hover); }
.widget .wp-block-latest-posts__post-date, .widget .post-date { display: block; color: var(--muted); font-size: 12px; }

/* ==========================================================================
   10. Losse post en pagina
   ========================================================================== */

.tc-entry-head { margin-bottom: 26px; }
.tc-entry-head .entry-title { margin: 8px 0 14px; }
.tc-entry-thumb { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; }

.entry-content { font-size: 16.5px; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 80px; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--tc-red);
	font-family: var(--font-head); font-size: 1.25rem; line-height: 1.5;
}
.entry-content code { padding: 2px 6px; border-radius: 4px; background: var(--surface-2); font-size: .9em; }
.entry-content pre { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.entry-content pre code { padding: 0; background: none; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.entry-content hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.entry-content audio { width: 100%; }

.alignwide { margin-inline: -40px; max-width: calc(100% + 80px) !important; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw !important; width: 100vw; }
@media (max-width: 1020px) { .alignwide { margin-inline: 0; max-width: 100% !important; } }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }

.tc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.tc-tags a {
	display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
	color: var(--muted); font-size: 13px; text-decoration: none;
}
.tc-tags a:hover { border-color: var(--tc-violet); color: var(--text); }

.tc-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.tc-post-nav a {
	display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--surface); color: var(--text); text-decoration: none;
}
.tc-post-nav a:hover { border-color: var(--tc-violet); color: var(--text); }
.tc-post-nav .tc-nav-label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.tc-post-nav .tc-nav-next { text-align: right; }
@media (max-width: 640px) { .tc-post-nav { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. Video: YouTube laadt pas na een klik (snel en privacyvriendelijk)
   ========================================================================== */

.tc-yt {
	position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 0;
	background: #000 center / cover no-repeat; border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.tc-yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 0, 20, .65)); }
.tc-yt-play {
	position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 76px; height: 76px; padding: 0;
	border: 0; border-radius: 50%; background: var(--tc-red-strong); color: #fff; cursor: pointer;
	box-shadow: 0 0 0 8px rgba(252, 13, 34, .25); transition: transform .15s;
}
.tc-yt:hover .tc-yt-play { transform: translate(-50%, -50%) scale(1.06); }
.tc-yt-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.tc-yt-note { position: absolute; left: 16px; bottom: 12px; z-index: 2; color: #fff; font-size: 12px; opacity: .85; }
.tc-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-block-embed__wrapper .tc-yt { margin: 0; }
/* WordPress reserveert zelf 16:9-ruimte rond embeds; vul die ruimte in plaats van eronder te zakken */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .tc-yt { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }

/* ==========================================================================
   12. Vrienden en media-agenda (TechCast Core plugin)
   ========================================================================== */

.tc-friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.tc-friend {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 26px 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	transition: border-color .2s, transform .2s;
}
.tc-friend:hover { border-color: var(--tc-violet); transform: translateY(-3px); }
.tc-friend-img {
	width: 96px; height: 96px; margin-bottom: 14px; border-radius: 50%; overflow: hidden;
	background: var(--surface-2); display: grid; place-items: center;
	font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--tc-neon);
}
.tc-friend-img img { width: 100%; height: 100%; object-fit: cover; }
.tc-friend h3 { margin: 0 0 4px; font-size: 1.1rem; }
.tc-friend h3 a { color: var(--text); text-decoration: none; }
.tc-friend h3 a::before { content: ""; position: absolute; inset: 0; }
.tc-friend-role { color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tc-friend p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tc-friend-links { position: relative; z-index: 2; display: flex; gap: 6px; margin-top: auto; padding-top: 14px; }
.tc-friend-links a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); border: 1px solid var(--border); }
.tc-friend-links a:hover { color: var(--text); border-color: var(--tc-violet); }

.tc-agenda { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tc-event {
	position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 18px; align-items: center;
	padding: 16px 20px 16px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.tc-event:hover { border-color: var(--tc-violet); }
.tc-event-date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	height: 78px; border-radius: 10px; background: var(--tc-violet); color: #fff; line-height: 1.1;
}
.tc-event-date .d { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.tc-event-date .m { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.tc-event.is-past .tc-event-date { background: var(--surface-2); color: var(--muted); }
.tc-event h3 { margin: 0 0 4px; font-size: 1.1rem; }
.tc-event h3 a { color: var(--text); text-decoration: none; }
.tc-event h3 a::before { content: ""; position: absolute; inset: 0; }
.tc-event-role {
	padding: 5px 12px; border-radius: 999px; background: var(--tc-red-strong); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 560px) {
	.tc-event { grid-template-columns: 64px minmax(0, 1fr); }
	.tc-event-date { height: 64px; }
	.tc-event-role { grid-column: 2; justify-self: start; }
}
.widget .tc-agenda { gap: 10px; }
.widget li.tc-event, .widget li.tc-event:first-child { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--border); }
.widget .tc-event-date { height: 54px; }
.widget .tc-event-date .d { font-size: 20px; }
.widget .tc-event-role { display: none; }
.widget .tc-event h3 { font-size: .95rem; }

.tc-event-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
	margin: 0 0 30px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.tc-event-facts dt { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.tc-event-facts dd { margin: 2px 0 0; font-weight: 700; }

/* ==========================================================================
   13. Reacties
   ========================================================================== */

.comments-area { margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-author .avatar { float: left; margin-right: 10px; border-radius: 50%; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px; font: inherit; color: var(--text); background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius-sm);
}

/* ==========================================================================
   14. Footer
   ========================================================================== */

.tc-footer { border-top: 1px solid var(--border); background: var(--surface); }
.tc-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 44px 0 10px; }
.tc-footer-widgets .widget { background: transparent; border: 0; padding: 0; }
@media (max-width: 860px) { .tc-footer-widgets { grid-template-columns: minmax(0, 1fr); } }

.tc-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 0 28px; color: var(--muted); font-size: 13px; }
.tc-footer-brand { display: flex; align-items: center; gap: 12px; }
.tc-footer-brand img { height: 34px; width: auto; }
.tc-footer-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.tc-footer-menu a { color: var(--muted); text-decoration: none; }
.tc-footer-menu a:hover { color: var(--text); }

.tc-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 40;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
	background: var(--surface); box-shadow: var(--shadow);
}
.tc-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   15. Filterknoppen, posthoofd en leesbreedte
   ========================================================================== */

.tc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.tc-filters a {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
	border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
	color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none;
}
.tc-filters a:hover { border-color: var(--tc-violet); color: var(--text); }
.tc-filters a[aria-current="page"] { background: var(--tc-violet); border-color: var(--tc-violet); color: #fff; }

.tc-entry-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tc-entry-labels .tc-badge { position: static; }
.tc-entry-labels .tc-cats { margin: 0; }

.tc-page .tc-content, .tc-404 { width: 100%; max-width: 820px; margin-inline: auto; }
.tc-404 { text-align: center; padding: 30px 0; }
.tc-404 .tc-section-title::after { display: none; }
.tc-404 .tc-section-title { justify-content: center; }
.tc-404 .search-form { max-width: 520px; margin: 0 auto; }

/* ==========================================================================
   16. Overig
   ========================================================================== */

.tc-section-title a { color: inherit; text-decoration: none; }
.tc-agenda-all { margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.tc-agenda-all a { color: var(--link); }
.tc-empty-small { color: var(--muted); }
.tc-empty { padding: 40px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.sticky .tc-badge::after { content: " · vast"; }
.bypostauthor { display: block; }
.wp-caption, .gallery-caption { color: var(--muted); font-size: 13px; }
.wp-caption-text { text-align: center; }
