/* ============================================================
   HOSTNER — CATEGORY ARCHIVE
   Conditionally loaded on is_category() pages only
   ============================================================ */

:root {
	--sans: 'Inter', system-ui, sans-serif;
	--s3:   #1A1A1A;
}

/* ── TERMINAL COLOURS ──────────────────────────────────────── */
.c-ps  { color: var(--green); }
.c-cmd { color: var(--white); }
.c-out { color: var(--grey);  }
.c-ok  { color: var(--green); }
.c-dim { color: var(--muted); }
.c-val { color: #60A5FA;      }

.cur {
	display: inline-block; width: 7px; height: 13px;
	background: var(--green); vertical-align: -2px;
	margin-left: 2px; animation: cat-blink 1.1s steps(1) infinite;
}
@keyframes cat-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ── TOPIC HERO ─────────────────────────────────────────────── */
.topic-hero {
	background: var(--s1);
	border-bottom: 1px solid var(--border);
	display: grid;
	grid-template-columns: 1fr 520px;
	min-height: 400px;
	position: relative;
	overflow: hidden;
}
.topic-hero::before {
	content: ''; position: absolute; inset: 0;
	background:
		repeating-linear-gradient(0deg, transparent, transparent 36px, rgba(34,197,94,.022) 36px, rgba(34,197,94,.022) 37px),
		repeating-linear-gradient(90deg, transparent, transparent 36px, rgba(34,197,94,.022) 36px, rgba(34,197,94,.022) 37px);
	pointer-events: none;
}
.hero-left {
	padding: 64px 56px 64px 48px;
	display: flex; flex-direction: column; justify-content: center;
	border-right: 1px solid var(--border);
	position: relative;
}
/* site-breadcrumb inside hero — geen section-inner margins, wel spacing */
nav.hero-breadcrumb { padding: 0; margin-bottom: 20px; }

.hero-tag {
	font-family: var(--font); font-size: 11px; font-weight: 700;
	letter-spacing: .18em; color: var(--green); margin-bottom: 16px;
}
.hero-title {
	font-family: var(--font);
	font-size: clamp(48px, 7vw, 88px);
	font-weight: 700; line-height: .95;
	letter-spacing: -.02em; margin-bottom: 24px;
}
.hero-desc {
	font-family: var(--sans); font-size: 16px;
	color: var(--grey); line-height: 1.8;
	max-width: 420px; margin-bottom: 36px;
}
.hero-stats  { display: flex; gap: 32px; }
.stat        { display: flex; flex-direction: column; gap: 4px; }
.stat-num    { font-family: var(--font); font-size: 24px; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label  { font-family: var(--font); font-size: 10px; color: var(--muted); letter-spacing: .14em; }

/* Hero terminal window */
.hero-right {
	display: flex; align-items: center; justify-content: center;
	padding: 48px 40px; position: relative;
}
.hero-term {
	width: 100%; background: var(--bg);
	border: 1px solid var(--border); overflow: hidden;
}
.ht-bar {
	display: flex; align-items: center; gap: 7px; padding: 12px 16px;
	background: var(--s2); border-bottom: 1px solid var(--border);
}
.ht-dot   { width: 9px; height: 9px; border-radius: 50%; }
.ht-dot.r { background: #FF5F57; }
.ht-dot.y { background: #FFBD2E; }
.ht-dot.g { background: #28C840; }
.ht-label {
	font-family: var(--font); font-size: 10px;
	color: var(--muted); letter-spacing: .1em; margin-left: 8px;
}
.ht-body {
	padding: 22px; font-family: var(--font); font-size: 12px; line-height: 2.1;
}

/* ── SORT BAR ───────────────────────────────────────────────── */
.sort-bar {
	background: var(--bg); border-bottom: 1px solid var(--border);
	padding: 0 48px; height: 52px;
	display: flex; align-items: center; justify-content: space-between;
}
.sort-label {
	font-family: var(--font); font-size: 11px;
	color: var(--muted); letter-spacing: .1em;
}
.sort-options { display: flex; }
.sort-btn {
	font-family: var(--font); font-size: 11px; letter-spacing: .08em;
	color: var(--muted); background: transparent;
	border: 1px solid var(--border); padding: 6px 16px;
	text-decoration: none; display: inline-block; transition: all .15s;
}
.sort-btn:first-child { border-right: none; }
.sort-btn:hover       { color: var(--white); border-color: var(--grey); }
.sort-btn.active      { background: var(--s1); color: var(--white); border-color: var(--border); }

/* ── ARTICLES SECTION ───────────────────────────────────────── */
.articles-section { padding: 48px 48px 64px; }

/* Leader card */
.leader {
	background: var(--s1); border: 1px solid var(--border);
	display: grid; grid-template-columns: 1fr 1fr;
	margin-bottom: 32px; transition: border-color .2s;
}
.leader:hover { border-color: rgba(34,197,94,.4); }

.leader-body {
	padding: 44px; display: flex; flex-direction: column;
	justify-content: center; border-right: 1px solid var(--border);
}
.leader-cat {
	font-family: var(--font); font-size: 10px; font-weight: 700;
	letter-spacing: .16em; color: var(--green); margin-bottom: 14px;
}
.leader-title {
	font-family: var(--font);
	font-size: clamp(18px, 2.2vw, 26px);
	font-weight: 700; line-height: 1.25; margin-bottom: 16px;
}
.leader-title a       { color: var(--white); text-decoration: none; transition: color .2s; }
.leader-title a:hover { color: var(--green); }

.leader-excerpt {
	font-family: var(--sans); font-size: 14px;
	color: var(--grey); line-height: 1.85;
	margin-bottom: 28px; max-width: 440px;
}
.leader-meta {
	font-family: var(--font); font-size: 11px;
	color: var(--muted); letter-spacing: .04em; margin-bottom: 22px;
}
.leader-meta em { color: var(--grey); font-style: normal; }

.leader-link {
	font-family: var(--font); font-size: 12px; font-weight: 700;
	color: var(--green); text-decoration: none; letter-spacing: .08em;
	border-bottom: 1px solid var(--green); padding-bottom: 2px;
	display: inline-block;
}
.leader-link::after {
	content: '→'; display: inline-block;
	vertical-align: baseline; line-height: 1;
	margin-left: 6px; transition: transform 0.2s ease;
}
.leader-link:hover::after { transform: translateX(4px); }

.leader-visual {
	background: var(--s2);
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 36px; position: relative; overflow: hidden; min-height: 280px;
}
.leader-visual::before {
	content: ''; position: absolute; inset: 0;
	background:
		repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(34,197,94,.03) 28px, rgba(34,197,94,.03) 29px),
		repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(34,197,94,.03) 28px, rgba(34,197,94,.03) 29px);
}
.lv-bg-text {
	position: absolute; bottom: -16px; right: -8px;
	font-family: var(--font); font-size: clamp(72px, 9vw, 120px);
	font-weight: 700; color: var(--white); opacity: .04;
	letter-spacing: -.02em; line-height: 1;
	pointer-events: none; user-select: none; white-space: nowrap;
}
.lv-content {
	position: relative; display: flex; flex-direction: column;
	align-items: flex-start; justify-content: flex-end;
	height: 100%; padding: 32px;
}
.lv-readtime {
	font-family: var(--font); font-size: clamp(48px, 6vw, 80px);
	font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px;
}
.lv-readtime span { font-size: clamp(14px, 2vw, 20px); color: var(--green); margin-left: 6px; vertical-align: middle; }
.lv-label { font-family: var(--font); font-size: 10px; letter-spacing: .16em; color: var(--muted); }

/* Article grid */
.art-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.art-card {
	background: var(--s1); border: 1px solid var(--border);
	padding: 28px; display: flex; flex-direction: column;
	transition: border-color .2s;
}
.art-card:hover { border-color: rgba(34,197,94,.4); }

.card-cat {
	font-family: var(--font); font-size: 10px; font-weight: 700;
	letter-spacing: .16em; color: var(--green); margin-bottom: 12px;
}
.card-title {
	font-family: var(--font); font-size: 13px; font-weight: 700;
	line-height: 1.4; margin-bottom: 12px; flex: 1;
}
.card-title a       { color: var(--white); text-decoration: none; transition: color .2s; }
.card-title a:hover { color: var(--green); }

.card-excerpt {
	font-family: var(--sans); font-size: 13px; color: var(--grey);
	line-height: 1.75; margin-bottom: 20px;
	display: -webkit-box; -webkit-line-clamp: 2;
	-webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
	margin-top: auto; padding-top: 16px;
	border-top: 1px solid var(--border);
	display: flex; align-items: center; justify-content: space-between;
}
.card-meta { font-family: var(--font); font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.card-read {
	font-family: var(--font); font-size: 11px; font-weight: 700;
	color: var(--green); text-decoration: none; letter-spacing: .06em;
}
.card-read::after {
	content: '→'; display: inline-block;
	vertical-align: baseline; line-height: 1;
	margin-left: 6px; transition: transform 0.2s ease;
}
.card-read:hover::after { transform: translateX(4px); }

/* Empty state */
.cat-no-posts {
	font-family: var(--font); font-size: 13px; color: var(--muted);
	padding: 64px 0; text-align: center; letter-spacing: .08em;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.cat-pagination { margin-top: 48px; }
.cat-pagination .page-numbers {
	display: flex; flex-wrap: wrap; gap: 4px;
	list-style: none; padding: 0; margin: 0;
}
.cat-pagination .page-numbers li > a,
.cat-pagination .page-numbers li > span {
	font-family: var(--font); font-size: 11px; letter-spacing: .06em;
	color: var(--muted); background: var(--s1);
	border: 1px solid var(--border); padding: 6px 14px;
	text-decoration: none; display: inline-block; transition: all .15s;
}
.cat-pagination .page-numbers li > a:hover  { color: var(--white); border-color: var(--grey); }
.cat-pagination .page-numbers li > .current { color: var(--green); border-color: var(--green); background: var(--s2); }

/* ── OTHER TOPICS ───────────────────────────────────────────── */
.other-topics {
	padding: 48px 48px 56px;
	background: var(--s1); border-top: 1px solid var(--border);
}
.ot-tag {
	font-family: var(--font); font-size: 11px; font-weight: 700;
	letter-spacing: .18em; color: var(--green); margin-bottom: 28px;
	display: flex; align-items: center; gap: 16px;
}
.ot-tag::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.ot-grid {
	display: grid; grid-template-columns: repeat(var(--ot-cols, 4), 1fr);
	gap: 1px; background: var(--border);
}
.ot-card {
	background: var(--s2); padding: 28px 24px;
	text-decoration: none; transition: background .2s; display: block;
}
.ot-card:hover             { background: var(--s3); }
.ot-card:hover .ot-name    { color: var(--green); }
.ot-cat-tag {
	font-family: var(--font); font-size: 10px; font-weight: 700;
	letter-spacing: .16em; color: var(--muted); margin-bottom: 10px;
}
.ot-name {
	font-family: var(--font); font-size: 15px; font-weight: 700;
	color: var(--white); margin-bottom: 8px; transition: color .2s;
}
.ot-count { font-family: var(--font); font-size: 11px; color: var(--muted); }

/* ── RESPONSIVE → responsive.css ── */

/* ── RESPONSIVE (verplaatst uit responsive.css — laadt nu alleen op categorypagina's) ── */

@media (max-width: 1024px) {
	.topic-hero             { grid-template-columns: 1fr; }
	.hero-right             { display: none; }
	.hero-left              { border-right: none; }
	.leader                 { grid-template-columns: 1fr; }
	.leader-body            { border-right: none; border-bottom: 1px solid var(--border); }
	.leader-visual          { min-height: 180px; }
	.ot-grid                { grid-template-columns: repeat(2, 1fr); background: var(--s1); }
}

@media (max-width: 768px) {
	.topic-hero,
	.sort-bar,
	.articles-section,
	.other-topics           { padding-left: 20px; padding-right: 20px; }
	.hero-left              { padding: 48px 20px; }
	.sort-bar               { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
	.art-grid               { grid-template-columns: 1fr; }
	.leader-body            { padding: 28px 20px; }
	.leader-visual          { display: none; }
}

@media (max-width: 480px) {
	.hero-title             { font-size: 40px; }
	.hero-stats             { gap: 20px; }
	.stat + .stat           { border-top: none; }
	.ot-grid                { grid-template-columns: 1fr 1fr; background: var(--s1); }
}
