/* meenip.nl — donker cyber/netwerk-thema met subtiele Urker accenten.
   Geen externe fonts of resources; alles is lokaal. */

:root {
	--bg: #060b14;
	--bg-2: #0a1322;
	--surface: rgba(255, 255, 255, 0.045);
	--surface-strong: rgba(255, 255, 255, 0.07);
	--border: rgba(120, 200, 255, 0.14);
	--border-strong: rgba(120, 200, 255, 0.28);
	--text: #d4deec;
	--text-muted: #8696ad;
	--accent: #34e1d5; /* netwerk/terminal cyaan */
	--accent-2: #4aa8ff; /* signaalblauw */
	--beacon: #ffcb6b; /* vuurtorenlicht amber */
	--danger: #ff7a8a;
	--ok: #5ef0a8;
	--radius: 16px;
	--ring: 0 0 0 3px rgba(52, 225, 213, 0.5);
	--mono: ui-monospace, "Cascadia Code", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--sans);
	color: var(--text);
	background-color: var(--bg);
	background-image: radial-gradient(1200px 700px at 75% -10%, rgba(74, 168, 255, 0.12), transparent 60%),
		radial-gradient(900px 600px at 10% 110%, rgba(52, 225, 213, 0.1), transparent 55%);
	line-height: 1.55;
	overflow-x: hidden;
}

/* ---------- Achtergrondlagen ---------- */

.bg-grid {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: linear-gradient(rgba(120, 200, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 200, 255, 0.06) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
	mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ---------- Achtergrondfoto's: Urker vuurtoren bij nacht (wisselen af) ---------- */

/* Donkere sluier bovenaan voor leesbaarheid; de foto vult de hele pagina (cover). */
.bg-photo {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(
			to bottom,
			rgba(6, 11, 20, 0.92) 0%,
			rgba(6, 11, 20, 0.55) 30%,
			rgba(6, 11, 20, 0.4) 60%,
			rgba(6, 11, 20, 0.55) 100%
		),
		url("/achtergrondurk.png");
	background-repeat: no-repeat, no-repeat;
	background-position: center top, center bottom;
	background-size: cover, cover;
	z-index: -3;
}

/* Tweede foto erbovenop; de dekking faedt heen en weer voor een zachte wissel. */
.bg-photo--alt {
	z-index: -2;
	opacity: 0;
	background-image: linear-gradient(
			to bottom,
			rgba(6, 11, 20, 0.92) 0%,
			rgba(6, 11, 20, 0.55) 30%,
			rgba(6, 11, 20, 0.4) 60%,
			rgba(6, 11, 20, 0.55) 100%
		),
		url("/achtergrondurk2.png");
	animation: bg-switch 28s ease-in-out infinite;
}

@keyframes bg-switch {
	0%,
	40% {
		opacity: 0;
	}
	50%,
	90% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

/* ---------- Layout ---------- */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: #04121a;
	padding: 0.6rem 1rem;
	border-radius: 0 0 10px 0;
	font-weight: 600;
	z-index: 10;
}

.skip-link:focus {
	left: 0;
}

.site-header,
main,
.site-footer {
	width: min(960px, 92vw);
	margin-inline: auto;
}

.site-header {
	padding-top: clamp(1.5rem, 5vw, 3rem);
	text-align: center;
}

.brand-logo {
	display: block;
	width: min(360px, 78vw);
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(0 6px 18px rgba(52, 225, 213, 0.28));
}

.tagline {
	margin: 0.4rem 0 0;
	color: var(--text-muted);
	font-size: 0.95rem;
}

main {
	display: grid;
	gap: clamp(1rem, 3vw, 1.5rem);
	padding-block: clamp(1.5rem, 5vw, 2.5rem);
}

/* ---------- Kaarten ---------- */

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: clamp(1.1rem, 3vw, 1.6rem);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.card__title {
	margin: 0 0 0.9rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
	font-weight: 700;
}

.grid {
	display: grid;
	gap: clamp(1rem, 3vw, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- IP-hoofdkaart ---------- */

.ip-card {
	position: relative;
	background: linear-gradient(160deg, var(--surface-strong), var(--surface));
	border-color: var(--border-strong);
	box-shadow: 0 0 0 1px rgba(52, 225, 213, 0.08), 0 24px 60px -28px rgba(52, 225, 213, 0.5);
	overflow: hidden;
}

.ip-card::before {
	/* Zachte gloed rond de IP-kaart. */
	content: "";
	position: absolute;
	inset: -40% -10% auto -10%;
	height: 70%;
	background: radial-gradient(60% 100% at 50% 0%, rgba(52, 225, 213, 0.22), transparent 70%);
	pointer-events: none;
	animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
	0%,
	100% {
		opacity: 0.55;
	}
	50% {
		opacity: 1;
	}
}

.ip-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.ip-card__label {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-muted);
}

/* Hogere specificiteit dan `.mono`, anders wint dat font (de 8 bleef daardoor gelijk). */
.ip-card .ip-value {
	display: block;
	margin: 0.6rem 0 1.1rem;
	/* Heldere, conventionele cijfers (o.a. de 8); geen ligaturen of stijl-alternatieven. */
	font-family: "Consolas", "SFMono-Regular", "SF Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", monospace;
	font-variant-ligatures: none;
	font-feature-settings: "tnum" 1, "calt" 0, "liga" 0;
	font-size: clamp(1.5rem, 6vw, 2.6rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 0 24px rgba(52, 225, 213, 0.35);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ip-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* ---------- Badges ---------- */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 600;
	border: 1px solid var(--border-strong);
	white-space: nowrap;
}

.badge--v4 {
	color: var(--accent);
	background: rgba(52, 225, 213, 0.12);
	border-color: rgba(52, 225, 213, 0.4);
}

.badge--v6 {
	color: var(--accent-2);
	background: rgba(74, 168, 255, 0.12);
	border-color: rgba(74, 168, 255, 0.4);
}

.badge--muted {
	color: var(--text-muted);
	background: rgba(255, 255, 255, 0.04);
}

/* ---------- Knoppen ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	border-radius: 11px;
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	color: #04121a;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
	box-shadow: 0 8px 24px -10px rgba(52, 225, 213, 0.8);
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--ghost {
	color: var(--text);
	background: var(--surface-strong);
	border-color: var(--border-strong);
}

.btn--ghost:hover {
	box-shadow: 0 8px 24px -14px rgba(74, 168, 255, 0.7);
}

.btn__icon {
	width: 1.1em;
	height: 1.1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.btn.is-copied {
	background: linear-gradient(135deg, var(--ok), var(--accent));
}

/* Vernieuw-icoon draait kort tijdens het ophalen. */
.btn.is-spinning .btn__icon--spin {
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Focusstaten — duidelijk zichtbaar voor toetsenbordgebruik. */
:focus-visible {
	outline: none;
	box-shadow: var(--ring);
	border-radius: 8px;
}

/* ---------- Statusmelding ---------- */

.status {
	min-height: 1.3em;
	margin: 0.9rem 0 0;
	font-size: 0.9rem;
	color: var(--ok);
}

.status.is-error {
	color: var(--danger);
}

/* ---------- Datalijsten ---------- */

.data-list {
	margin: 0;
	display: grid;
	gap: 0.75rem;
}

.data-row {
	display: grid;
	gap: 0.15rem;
}

.data-row dt {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}

.data-row dd {
	margin: 0;
	color: var(--text);
}

.mono {
	font-family: var(--mono);
}

.break {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.hint {
	margin: 1rem 0 0;
	font-size: 0.82rem;
	color: var(--text-muted);
}

/* ---------- Curl-kaart ---------- */

.curl-card__text {
	margin: 0 0 0.75rem;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.codeblock-wrap {
	position: relative;
}

.codeblock {
	margin: 0;
	padding: 0.85rem 1rem;
	/* Ruimte rechts zodat de kopieerknop de opdracht niet overlapt. */
	padding-right: 7.5rem;
	background: #04101c;
	border: 1px solid var(--border);
	border-radius: 11px;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 0.9rem;
	color: var(--accent);
}

.codeblock-copy {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	border-radius: 8px;
	border: 1px solid var(--border-strong);
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.codeblock-copy:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.codeblock-copy.is-copied {
	color: #04121a;
	background: linear-gradient(135deg, var(--ok), var(--accent));
	border-color: transparent;
}

.codeblock-copy .btn__icon {
	width: 1em;
	height: 1em;
}

/* Op smalle schermen alleen het icoon tonen. */
@media (max-width: 480px) {
	.codeblock {
		padding-right: 3.25rem;
	}
	.codeblock-copy span {
		display: none;
	}
}

/* ---------- Quote ---------- */

.quote {
	border-left: 3px solid var(--accent);
}

.quote__text {
	margin: 0;
	font-style: italic;
	color: var(--text);
}

/* ---------- Urker spreekwoord ---------- */

.spreekwoord {
	border-left: 3px solid var(--accent-2);
}

.spreekwoord__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.spreekwoord__head .card__title {
	margin: 0;
}

.spreekwoord__bron {
	flex-shrink: 0;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.spreekwoord__bron:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.spreekwoord__urk {
	margin: 0;
	font-size: clamp(1.05rem, 2.6vw, 1.35rem);
	font-weight: 600;
	font-style: italic;
	line-height: 1.4;
	color: var(--accent);
}

.spreekwoord__nl {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
	position: relative;
	padding: 3.5rem 0 2.5rem;
	text-align: center;
	color: var(--text-muted);
}

/* Golvende havenlijn onderaan. */
.harbor {
	position: relative;
	height: 90px;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.waves {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 80px;
	fill: none;
	z-index: 1;
}

.waves__line {
	stroke-width: 2;
}

.waves__line--back {
	stroke: rgba(74, 168, 255, 0.25);
	fill: rgba(74, 168, 255, 0.06);
}

.waves__line--front {
	stroke: rgba(52, 225, 213, 0.4);
	fill: rgba(52, 225, 213, 0.08);
	animation: wave-drift 9s ease-in-out infinite;
}

@keyframes wave-drift {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(-24px);
	}
}

.privacy {
	max-width: 60ch;
	margin: 0 auto 0.75rem;
	font-size: 0.88rem;
	line-height: 1.6;
}

.privacy-note {
	max-width: 60ch;
	margin: 0 auto;
	font-size: 0.8rem;
	opacity: 0.85;
}

/* Rechten en credits onderaan. */
.footer-bar {
	margin: 1.75rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	max-width: 60ch;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	align-items: center;
}

.footer-rights {
	margin: 0;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.footer-credit {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-muted);
}

.footer-link {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
	border-bottom-color: var(--accent);
}

/* ---------- Binnenkomst-animaties ---------- */

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ip-card,
.grid > .card,
.curl-card,
.spreekwoord,
.quote {
	animation: fade-up 0.6s ease both;
}

.ip-card {
	animation-delay: 0.05s;
}
.grid > .card:nth-child(1) {
	animation-delay: 0.15s;
}
.grid > .card:nth-child(2) {
	animation-delay: 0.25s;
}
.grid > .card:nth-child(3) {
	animation-delay: 0.35s;
}
.curl-card {
	animation-delay: 0.4s;
}
.spreekwoord {
	animation-delay: 0.45s;
}
.quote {
	animation-delay: 0.5s;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	/* Geen wisselende achtergrond; toon één stilstaande foto. */
	.bg-photo--alt {
		animation: none;
		opacity: 0;
	}
}
