/* TP Nieuws v7.3 — Complete consolidated styles */

:root {
    --tp-red: #E30613;
    --tp-dark-red: #b8050f;
    --tp-black: #111;
    --tp-dark: #1a1a1a;
    --tp-gray-700: #555;
    --tp-gray-400: #999;
    --tp-gray-200: #e0e0e0;
    --tp-gray-100: #f2f2f2;
    --tp-white: #fff;
    --tp-radius: 6px;
    --tp-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --tp-shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
}

body { background-color: var(--background-color, var(--tp-gray-100)); }

/* ── Navigation ─────────────────────────────────────────── */
.gh-navigation { height: auto; min-height: 56px; background-color: var(--tp-black) !important; color: var(--tp-white); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; border-bottom: 3px solid var(--tp-red); }
.gh-navigation :is(.gh-navigation-logo, a:not(.gh-button), .gh-icon-button) { color: var(--tp-white); }
.gh-navigation .nav a:hover { color: var(--tp-red) !important; opacity: 1; }
.gh-navigation-logo { font-weight: 900 !important; font-size: 2.4rem !important; letter-spacing: -0.02em; text-transform: none; }
.gh-navigation-logo img { max-height: 80px; }
.gh-navigation .gh-button { background-color: var(--tp-red); color: var(--tp-white); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.04em; border-radius: var(--tp-radius); padding: 0.65em 1.4em; }
.gh-navigation .gh-button:hover { background-color: var(--tp-dark-red); opacity: 1; }
.gh-navigation-actions { background-color: var(--tp-black) !important; }
.gh-navigation.has-accent-color .gh-navigation-actions { background-color: var(--tp-black) !important; }
@media (min-width: 992px) { .gh-navigation.is-stacked .gh-navigation-menu::before, .gh-navigation.is-stacked .gh-navigation-menu::after { background-color: rgba(255,255,255,0.12); } }
@media (max-width: 767px) { .is-open#gh-navigation { background-color: var(--tp-black); } #gh-navigation .nav a { color: var(--tp-white); } .gh-burger svg { color: var(--tp-white); } }

/* ── Placeholders ───────────────────────────────────────── */
.tp-placeholder-img { width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, var(--tp-gray-200), var(--tp-gray-100)); display: flex; align-items: center; justify-content: center; }
.tp-placeholder-img::after { content: "TP"; font-size: 2rem; font-weight: 900; color: var(--tp-gray-400); }
.tp-ph-sm { min-height: 60px; }
.tp-ph-sm::after { font-size: 1.2rem; }

/* ── Shared ─────────────────────────────────────────────── */
.tp-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--tp-red); }
.tp-section-title { font-size: 1.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; color: var(--tp-black); margin: 0; }
.tp-meta { font-size: 1.15rem; font-weight: 600; color: var(--tp-gray-400); text-transform: uppercase; letter-spacing: 0.02em; }

/* ── Hero ───────────────────────────────────────────────── */
.tp-hero { margin-top: 20px; }
.tp-hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 20px; min-height: 420px; }
.tp-hero-link { display: flex; flex-direction: column; height: 100%; background: var(--tp-white); border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow); transition: box-shadow 0.2s; }
.tp-hero-link:hover { box-shadow: var(--tp-shadow-hover); opacity: 1; }
.tp-hero-image { position: relative; flex-shrink: 0; aspect-ratio: 16/9; overflow: hidden; }
.tp-hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tp-hero-link:hover .tp-hero-image img { transform: scale(1.03); }
.tp-hero-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: var(--tp-red); color: var(--tp-white); font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 3px; }
.tp-hero-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.tp-hero-title { font-size: clamp(2.2rem, 2vw + 1.2rem, 3.2rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; color: var(--tp-black); margin: 0; }
.tp-hero-link:hover .tp-hero-title { color: var(--tp-red); }
.tp-hero-excerpt { margin-top: 10px; font-size: 1.5rem; line-height: 1.45; color: var(--tp-gray-700); -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.tp-hero-sidebar { display: flex; flex-direction: column; gap: 20px; }
.tp-hero-side-link { display: flex; flex-direction: column; height: 100%; background: var(--tp-white); border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow); transition: box-shadow 0.2s; }
.tp-hero-side-link:hover { box-shadow: var(--tp-shadow-hover); opacity: 1; }
.tp-hero-side-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.tp-hero-side-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tp-hero-side-link:hover .tp-hero-side-img img { transform: scale(1.03); }
.tp-hero-side-title { padding: 12px 14px 4px; font-size: 1.5rem; font-weight: 800; line-height: 1.25; color: var(--tp-black); }
.tp-hero-side-link:hover .tp-hero-side-title { color: var(--tp-red); }
.tp-hero-side .tp-meta { padding: 0 14px 12px; }
@media (max-width: 991px) { .tp-hero-inner { grid-template-columns: 1fr 280px; } }
@media (max-width: 767px) { .tp-hero-inner { grid-template-columns: 1fr; } .tp-hero-sidebar { flex-direction: row; } .tp-hero-side { flex: 1; } }
@media (max-width: 480px) { .tp-hero-sidebar { flex-direction: column; } }

/* ── Main Layout: Timeline + Sidebar ────────────────────── */
.tp-main-section { margin-top: 32px; }
.tp-main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.tp-timeline-col { min-width: 0; }
.tp-sidebar-col { position: sticky; top: 20px; }
@media (max-width: 991px) { .tp-main-layout { grid-template-columns: 1fr; } .tp-sidebar-col { position: static; } }

/* ── Timeline ───────────────────────────────────────────── */
.tp-timeline { padding: 0; }
.tp-tl-link { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--tp-gray-200); }
.tp-tl-link:hover { opacity: 1; }
.tp-tl-link:hover .tp-tl-title { color: var(--tp-red); }
.tp-tl-time { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; min-width: 48px; padding-top: 2px; }
.tp-tl-clock { font-size: 1.5rem; font-weight: 800; color: var(--tp-black); font-variant-numeric: tabular-nums; line-height: 1; }
.tp-tl-date { font-size: 1.05rem; color: var(--tp-gray-400); font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.tp-tl-thumb { flex-shrink: 0; width: 100px; aspect-ratio: 16/10; border-radius: 4px; overflow: hidden; }
.tp-tl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tp-tl-link:hover .tp-tl-thumb img { transform: scale(1.05); }
.tp-tl-body { flex-grow: 1; min-width: 0; }
.tp-tl-tag { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tp-red); }
.tp-tl-title { font-size: 1.6rem; font-weight: 800; line-height: 1.25; color: var(--tp-black); margin: 3px 0 0; }
.tp-tl-excerpt { margin-top: 4px; font-size: 1.3rem; line-height: 1.4; color: var(--tp-gray-700); -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) { .tp-tl-thumb { width: 72px; } .tp-tl-title { font-size: 1.4rem; } .tp-tl-excerpt { display: none; } }

/* ── Meest Gelezen ──────────────────────────────────────── */
.tp-most-read { display: flex; flex-direction: column; }
.tp-mr-item + .tp-mr-item { border-top: 1px solid var(--tp-gray-200); }
.tp-mr-link { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.tp-mr-link:hover { opacity: 1; }
.tp-mr-rank { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 1.6rem; font-weight: 900; color: var(--tp-red); background: rgba(227,6,19,0.08); border-radius: 4px; }
.tp-mr-content { flex-grow: 1; min-width: 0; }
.tp-mr-tag { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tp-red); }
.tp-mr-title { font-size: 1.4rem; font-weight: 700; line-height: 1.3; color: var(--tp-black); margin: 2px 0 0; }
.tp-mr-link:hover .tp-mr-title { color: var(--tp-red); }

/* ── Sidebar Newsletter ─────────────────────────────────── */
.tp-sidebar-newsletter { margin-top: 24px; padding: 20px; background: var(--tp-black); border-radius: var(--tp-radius); }
.tp-sidebar-nl-title { color: var(--tp-white); font-size: 1.6rem; font-weight: 900; margin: 0; }
.tp-sidebar-nl-desc { color: rgba(255,255,255,0.6); font-size: 1.3rem; margin-top: 6px; }
.tp-sidebar-newsletter .gh-form { margin-top: 14px; background: rgba(255,255,255,0.1); border-radius: var(--tp-radius); height: 48px; font-size: 1.4rem; }
.tp-sidebar-newsletter .gh-form-input { color: var(--tp-white); border-radius: var(--tp-radius); }
.tp-sidebar-newsletter .gh-form-input::placeholder { color: rgba(255,255,255,0.4); }
.tp-sidebar-newsletter .gh-form .gh-button { background: var(--tp-red); border-radius: var(--tp-radius); min-width: 100px; height: 38px; }

/* ── Compact List ───────────────────────────────────────── */
.tp-compact-item + .tp-compact-item { border-top: 1px solid var(--tp-gray-200); }
.tp-compact-link { display: flex; gap: 12px; padding: 12px 0; align-items: center; }
.tp-compact-link:hover { opacity: 1; }
.tp-compact-img { flex-shrink: 0; width: 80px; aspect-ratio: 16/10; border-radius: 4px; overflow: hidden; }
.tp-compact-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-compact-body { flex-grow: 1; min-width: 0; }
.tp-compact-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; color: var(--tp-black); margin: 0; }
.tp-compact-link:hover .tp-compact-title { color: var(--tp-red); }
.tp-compact-body time { font-size: 1.05rem; color: var(--tp-gray-400); font-weight: 600; text-transform: uppercase; }

/* ── Footer ─────────────────────────────────────────────── */
.gh-footer { background-color: var(--tp-black) !important; color: var(--tp-white); margin-top: 48px; }
.gh-footer :is(.gh-footer-logo, a, .gh-icon-button) { color: var(--tp-white); }
.gh-footer-logo { font-weight: 900; }
.gh-footer-logo img { max-height: 80px; }
.gh-footer-copyright { display: none; }
.gh-footer-menu { display: none; }
.gh-footer-signup { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 40px; }
.gh-footer-signup-header { color: var(--tp-white); font-weight: 900; }
.gh-footer-signup-subhead { color: rgba(255,255,255,0.6); }
.gh-footer .gh-form { background: rgba(255,255,255,0.08); border-radius: var(--tp-radius); }
.gh-footer .gh-form-input { color: var(--tp-white); border-radius: var(--tp-radius); }
.gh-footer .gh-form-input::placeholder { color: rgba(255,255,255,0.4); }
.gh-footer .gh-form .gh-button { background: var(--tp-red); border-radius: var(--tp-radius); }

/* ── Post Page Layout ───────────────────────────────────── */
.tp-post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.tp-post-article { min-width: 0; }
.tp-post-article .gh-canvas { --main: 100%; --wide: 0; --full: 0; grid-template-columns: [full-start wide-start main-start] 100% [main-end wide-end full-end]; }
.tp-post-article .kg-width-wide, .tp-post-article .kg-width-full { grid-column: full; }
.tp-post-sidebar { position: sticky; top: 20px; }
.tp-post-sidebar .tp-section-header { margin-top: 20px; }
.tp-sidebar-recent { margin-top: 24px; }

@media (max-width: 991px) {
    .tp-post-layout { grid-template-columns: 1fr; }
    .tp-post-sidebar { position: static; margin-top: 32px; }
    .tp-post-article .gh-canvas { --main: min(720px, 100%); --wide: minmax(0, calc((1200px - 720px) / 2)); --full: minmax(24px, 1fr); grid-template-columns: [full-start] var(--full) [wide-start] var(--wide) [main-start] var(--main) [main-end] var(--wide) [wide-end] var(--full) [full-end]; }
}

/* ── Post Header ────────────────────────────────────────── */
.tp-meta-top { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--tp-gray-200); }
.gh-article-tag { color: var(--tp-red) !important; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; display: inline-block; }
.gh-article-title { font-weight: 900; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 20px; }

/* ── Post Feature Image: Compact ────────────────────────── */
.tp-post-article .gh-article-image { max-width: 540px; margin: 0 0 24px 0; border-radius: var(--tp-radius); overflow: hidden; }
.tp-post-article .gh-article-image img { width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: var(--tp-radius); }

/* ── Post Video: Compact ────────────────────────────────── */
.tp-post-article .kg-video-card, .tp-post-article .kg-file-card { max-width: 540px; }
.tp-post-article .kg-video-container { max-height: 400px; }
.tp-post-article iframe[src*="youtube"], .tp-post-article iframe[src*="vimeo"], .tp-post-article .fluid-width-video-wrapper, .tp-post-article .kg-embed-card { max-width: 540px; }

/* ── Social Share ───────────────────────────────────────── */
.tp-share-buttons { display: flex; gap: 8px; align-items: center; }
.tp-share-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--tp-white); transition: transform 0.15s; }
.tp-share-btn:hover { transform: scale(1.1); opacity: 0.9 !important; }
.tp-share-btn svg { width: 18px; height: 18px; }
.tp-share-whatsapp { background: #25D366; }
.tp-share-facebook { background: #1877F2; }
.tp-share-twitter { background: var(--tp-black); }
.tp-share-linkedin { background: #0A66C2; }
.tp-share-telegram { background: #0088cc; }
.tp-share-email { background: var(--tp-gray-700); }
.gh-button-share { display: none !important; }

/* ── Dropdown ───────────────────────────────────────────── */
.gh-dropdown { background: var(--tp-dark); border-radius: var(--tp-radius); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.gh-dropdown li a { color: var(--tp-white) !important; }
.gh-dropdown li a:hover { color: var(--tp-red) !important; opacity: 1; }

/* ── Global Source overrides ────────────────────────────── */
.gh-card-tag { display: block !important; color: var(--tp-red) !important; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.06em; }
.gh-card-title { font-weight: 800; }
.gh-card-link:hover .gh-card-title { color: var(--tp-red); opacity: 1; }
.gh-button { border-radius: var(--tp-radius); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

/* Hide Source defaults on homepage */
.gh-header { display: none; }
.tag-template .gh-header, .author-template .gh-header, .paged .gh-header { display: block; }
.home-template .gh-cta, .home-template .gh-featured, .home-template .gh-container { display: none; }
.post-template .gh-container { display: block; }

::selection { background: var(--tp-red); color: var(--tp-white); }
