/*
Theme Name: SVENSON by Pencil
Theme URI: https://soundcloud.com/svensonmusicnl
Author: Sven Bouman
Description: Link-in-bio website voor (hard) trance DJ SVENSON. Mobile-first, donker met ijsblauw, met een echte SoundCloud-speler voor alle mixen. Mixen en uitgelichte links beheer je in WordPress; alle vaste teksten en de portretfoto pas je aan op de pagina met Pencil by Rino.
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: svenson
*/

/* ---------- Lettertype (zelf gehost, SIL Open Font License) ---------- */
@font-face {
	font-family: "Unbounded";
	src: url("assets/fonts/unbounded-latin.woff") format("woff");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--svn-ink: #1c1d22;
	--svn-panel: #23252c;
	--svn-panel-2: #2a2d35;
	--svn-cream: #fcfae8;
	--svn-soft: #c9cfd6;
	--svn-muted: #a9b3be;
	--svn-dim: #8a939e;
	--svn-accent: #8fd0f2;
	--svn-line: rgba(252, 250, 232, 0.12);
	--svn-line-strong: rgba(252, 250, 232, 0.22);
	--svn-radius-lg: 20px;
	--svn-radius-md: 14px;
	--svn-radius-sm: 10px;
	--svn-gutter: 16px;
	--svn-font: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
	--svn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Veilige basis (geen layout op kale elementen) ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

/* Alleen achtergrond op body: tekststijlen blijven binnen .svn-page,
   zodat de Mediabibliotheek van Pencil/WordPress er niets van erft. */
body.svn-body {
	margin: 0;
	background: var(--svn-ink);
}

.svn-page,
.svn-skip {
	color: var(--svn-cream);
	font-family: var(--svn-font);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.svn-page h1,
.svn-page h2,
.svn-page h3,
.svn-page p {
	margin: 0;
}

.svn-page a {
	color: var(--svn-cream);
}

.svn-page a:hover {
	color: var(--svn-accent);
}

.svn-page :focus-visible {
	outline: 2px solid var(--svn-accent);
	outline-offset: 3px;
}

.svn-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.svn-skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--svn-accent);
	color: var(--svn-ink) !important;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: top 0.2s;
}

.svn-skip:focus {
	top: 16px;
}

/* ---------- Pagina ---------- */
.svn-page {
	position: relative;
	min-height: 100vh;
	overflow-x: clip;
}

.svn-glow {
	position: absolute;
	top: -10%;
	right: -20%;
	width: 90%;
	max-width: 1100px;
	height: auto;
	opacity: 0.22;
	filter: blur(80px) saturate(1.3);
	pointer-events: none;
	user-select: none;
}

.svn-masthead {
	display: none;
	position: relative;
	justify-content: center;
	padding: 40px 56px 0;
}

.svn-masthead--always {
	display: flex;
	padding-top: 32px;
}

.svn-logo {
	display: block;
	width: 100%;
	height: auto;
	color: var(--svn-cream);
}

.svn-logo svg {
	display: block;
	width: 100%;
	height: auto;
}

.svn-masthead .svn-logo {
	width: 240px;
}

.svn-grid {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--svn-gutter) var(--svn-gutter) 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "hero" "featured" "socials" "deck" "sets";
	gap: 28px;
	align-items: start;
}

/* ---------- Hero ---------- */
.svn-hero {
	grid-area: hero;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.svn-hero__visual {
	position: relative;
}

.svn-hero__frame {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	border-radius: var(--svn-radius-lg);
	background: var(--svn-panel);
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.svn-hero__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 16%;
	transform-origin: 50% 25%;
	animation: svn-drift 18s ease-in-out infinite alternate;
}

.svn-hero__logo {
	position: relative;
	margin-top: -15%;
	padding: 0 6px;
}

.svn-hero__bio {
	max-width: 34ch;
	padding: 0 6px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--svn-soft);
}

.svn-hero__bio p + p {
	margin-top: 0.8em;
}

.svn-hero__bio strong {
	font-weight: 600;
	color: var(--svn-accent);
}

.svn-hero__bio a {
	color: var(--svn-accent);
}

/* ---------- Sectiekoppen ---------- */
.svn-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 4px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.svn-heading--lg {
	font-size: clamp(20px, 2.2vw, 26px);
}

.svn-heading__star {
	flex: none;
	width: 14px;
	height: 14px;
	color: var(--svn-accent);
	animation: svn-twinkle 3.2s ease-in-out infinite;
}

/* ---------- Lijstrijen (uitgelicht en socials) ---------- */
.svn-featured {
	grid-area: featured;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.svn-rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.svn-row {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 12px 18px;
	border-radius: var(--svn-radius-md);
	background: rgba(252, 250, 232, 0.04);
	border: 1px solid var(--svn-line);
	text-decoration: none;
	color: var(--svn-cream);
	transition: background 0.2s, border-color 0.2s;
}

.svn-page a.svn-row:hover {
	color: var(--svn-cream);
	background: rgba(143, 208, 242, 0.1);
	border-color: rgba(143, 208, 242, 0.45);
}

.svn-row__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.svn-row__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.svn-row__sub {
	font-size: 12px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--svn-muted);
}

.svn-row__arrow {
	flex: none;
	width: 18px;
	height: 18px;
	opacity: 0.6;
	transition: transform 0.25s var(--svn-ease), opacity 0.2s;
}

.svn-page a.svn-row:hover .svn-row__arrow {
	opacity: 1;
	transform: translateX(3px);
}

.svn-socials {
	grid-area: socials;
	min-width: 0;
}

.svn-row__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--svn-radius-sm);
	background: rgba(252, 250, 232, 0.08);
	color: var(--svn-cream);
}

.svn-row__icon svg {
	width: 22px;
	height: 22px;
}

.svn-row--primary .svn-row__icon {
	background: var(--svn-accent);
	color: var(--svn-ink);
}

/* ---------- Speler ---------- */
.svn-deck {
	--svn-deck: #1f4466;
	grid-area: deck;
	position: relative;
	overflow: hidden;
	min-width: 0;
	border-radius: var(--svn-radius-lg);
	background-color: var(--svn-deck);
	border: 1px solid var(--svn-line);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
	transition: background-color 0.7s ease;
}

.svn-deck__glow {
	position: absolute;
	top: -30%;
	right: -10%;
	width: 80%;
	height: auto;
	opacity: 0.45;
	filter: blur(50px) saturate(1.4);
	pointer-events: none;
}

.svn-deck__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(170deg, rgba(28, 29, 34, 0) 0%, rgba(28, 29, 34, 0.55) 55%, rgba(28, 29, 34, 0.92) 100%);
	pointer-events: none;
}

.svn-deck__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 20px;
}

.svn-deck__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.svn-deck__status {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 500;
}

.svn-deck__status svg {
	width: 14px;
	height: 14px;
	flex: none;
}

.svn-deck__state {
	display: none;
}

.svn-deck[data-state="ready"] .svn-deck__state--ready,
.svn-deck[data-state="playing"] .svn-deck__state--playing,
.svn-deck[data-state="paused"] .svn-deck__state--paused,
.svn-deck[data-state="loading"] .svn-deck__state--loading {
	display: inline;
}

.svn-deck__art {
	position: relative;
	flex: none;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: var(--svn-radius-sm);
	background: var(--svn-panel-2);
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}

.svn-deck__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.svn-deck__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.svn-deck__title {
	font-size: clamp(30px, 4.6vw, 56px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.svn-deck__sub {
	font-size: 14px;
	color: #dce1e6;
}

.svn-wave {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 96px;
	cursor: pointer;
	border-radius: 6px;
	touch-action: manipulation;
}

.svn-wave__bar {
	flex: 1;
	min-width: 0;
	border-radius: 2px;
	background: rgba(252, 250, 232, 0.28);
	transition: background 0.3s;
}

.svn-wave__bar.is-played {
	background: var(--svn-accent);
}

.svn-deck__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.svn-deck__transport {
	display: flex;
	align-items: center;
	gap: 10px;
}

.svn-ctl {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--svn-line-strong);
	background: rgba(28, 29, 34, 0.25);
	color: var(--svn-cream);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.svn-ctl:hover {
	background: rgba(28, 29, 34, 0.5);
}

.svn-ctl:active {
	transform: scale(0.96);
}

.svn-ctl svg {
	width: 20px;
	height: 20px;
}

.svn-ctl--play {
	width: 68px;
	height: 68px;
	border: 0;
	background: var(--svn-accent);
	color: var(--svn-ink);
	box-shadow: 0 0 0 8px rgba(143, 208, 242, 0.12), 0 10px 40px -6px rgba(143, 208, 242, 0.55);
}

.svn-ctl--play:hover {
	background: #a6dbf5;
}

.svn-ctl--play svg {
	width: 26px;
	height: 26px;
}

.svn-ctl--play .svn-ctl__pause,
.svn-deck[data-state="playing"] .svn-ctl--play .svn-ctl__play {
	display: none;
}

.svn-deck[data-state="playing"] .svn-ctl--play .svn-ctl__pause {
	display: block;
}

.svn-ctl--play .svn-ctl__play {
	margin-left: 3px;
}

.svn-deck[data-state="loading"] .svn-ctl--play {
	animation: svn-pulse 1.2s ease-in-out infinite;
}

.svn-deck__time {
	margin-left: 6px;
	font-size: 13px;
	font-weight: 400;
	color: #dce1e6;
	font-variant-numeric: tabular-nums;
}

.svn-deck__total {
	color: var(--svn-muted);
}

.svn-deck__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.svn-deck__open svg {
	width: 16px;
	height: 16px;
}

.svn-deck__frame {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ---------- Sets ---------- */
.svn-sets {
	grid-area: sets;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.svn-sets__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 0 4px;
}

.svn-sets__hint {
	font-size: 12px;
	color: var(--svn-muted);
}

.svn-sets__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.svn-set {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 10px 12px 14px;
	border-radius: var(--svn-radius-md);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
}

.svn-set:hover {
	background: rgba(252, 250, 232, 0.05);
}

.svn-set.is-current {
	background: rgba(252, 250, 232, 0.06);
	border-color: rgba(143, 208, 242, 0.35);
}

.svn-set__art {
	position: relative;
	flex: none;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: var(--svn-radius-sm);
	background: var(--svn-set-color, var(--svn-panel-2));
}

.svn-set__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.svn-set__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.svn-set__titleline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.svn-set__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.svn-set.is-current .svn-set__title {
	color: var(--svn-accent);
}

.svn-set__badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--svn-accent);
	color: var(--svn-ink);
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
}

.svn-set__sub {
	font-size: 12px;
	color: var(--svn-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.svn-set__play {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 76px;
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	border-radius: var(--svn-radius-sm);
	background: transparent;
	color: var(--svn-soft);
	font-family: inherit;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.svn-set__play svg {
	width: 16px;
	height: 16px;
	color: var(--svn-cream);
}

.svn-eq {
	display: none;
	align-items: flex-end;
	gap: 3px;
	width: 20px;
	height: 18px;
}

.svn-eq span {
	width: 4px;
	border-radius: 2px;
	background: var(--svn-accent);
	animation: svn-eq 0.9s ease-in-out infinite;
}

.svn-eq span:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.svn-eq span:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.svn-eq span:nth-child(3) { height: 40%; animation-delay: -0.8s; }

.svn-set.is-playing .svn-eq {
	display: flex;
}

.svn-set.is-playing .svn-set__play svg {
	display: none;
}

.svn-sets__empty {
	padding: 20px;
	border-radius: var(--svn-radius-md);
	border: 1px dashed rgba(143, 208, 242, 0.35);
	font-size: 14px;
	line-height: 1.6;
	color: var(--svn-soft);
}

/* ---------- Footer ---------- */
.svn-footer {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px var(--svn-gutter) 32px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 11px;
	color: var(--svn-dim);
}

/* ---------- Appbar (mobiel) ---------- */
.svn-appbar {
	position: sticky;
	bottom: 16px;
	z-index: 20;
	display: flex;
	justify-content: center;
	padding: 0 16px 16px;
	pointer-events: none;
}

.svn-appbar__bar {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px;
	border-radius: 999px;
	background: rgba(35, 37, 44, 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	border: 1px solid rgba(252, 250, 232, 0.14);
	box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
}

.svn-appbar__icons {
	display: flex;
	align-items: center;
	gap: 4px;
}

.svn-appbar__book {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--svn-accent);
	color: var(--svn-ink) !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.svn-appbar__book::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.svn-appbar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	color: var(--svn-cream);
}

.svn-appbar__icon svg {
	width: 20px;
	height: 20px;
}

/* ---------- Gewone pagina's (fallback) ---------- */
.svn-plain {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	padding: 48px var(--svn-gutter) 80px;
}

.svn-plain__title {
	margin-bottom: 24px !important;
	font-size: clamp(28px, 5vw, 44px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.svn-plain__content {
	font-size: 15px;
	line-height: 1.7;
	color: var(--svn-soft);
}

.svn-plain__content > * + * {
	margin-top: 1em;
}

.svn-plain__back {
	display: inline-flex;
	margin-top: 32px;
	font-size: 13px;
	font-weight: 500;
}

/* ---------- Pencil-richtext ---------- */
.svn-page .pencil-richtext p {
	margin: 0;
}

.svn-page .pencil-richtext p + p,
.svn-page .pencil-richtext ul,
.svn-page .pencil-richtext ol {
	margin-top: 0.8em;
}

.svn-page .pencil-richtext ul,
.svn-page .pencil-richtext ol {
	padding-left: 1.2em;
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
	:root {
		--svn-gutter: 56px;
	}

	.svn-masthead {
		display: flex;
	}

	.svn-grid {
		padding-top: 40px;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-rows: auto auto 1fr;
		grid-template-areas: "hero deck" "featured sets" "socials sets";
		column-gap: 48px;
		row-gap: 32px;
	}

	.svn-hero__frame {
		aspect-ratio: 1 / 1;
	}

	.svn-hero__logo,
	.svn-appbar {
		display: none;
	}

	.svn-deck__inner {
		padding: 36px;
	}
}

/* ---------- Beweging ---------- */
@keyframes svn-twinkle {
	0%, 100% { opacity: 0.85; transform: scale(1) rotate(0deg); }
	50% { opacity: 1; transform: scale(1.3) rotate(8deg); }
}

@keyframes svn-drift {
	0% { transform: scale(1.02); }
	100% { transform: scale(1.08); }
}

@keyframes svn-eq {
	0%, 100% { height: 30%; }
	50% { height: 100%; }
}

@keyframes svn-pulse {
	0%, 100% { box-shadow: 0 0 0 8px rgba(143, 208, 242, 0.12); }
	50% { box-shadow: 0 0 0 14px rgba(143, 208, 242, 0.2); }
}

/* Stil beeld tijdens bewerken met Pencil. */
.pencil-selection-active .svn-hero__frame img {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.svn-hero__frame img,
	.svn-heading__star,
	.svn-eq span,
	.svn-deck[data-state="loading"] .svn-ctl--play {
		animation: none;
	}

	.svn-deck,
	.svn-wave__bar,
	.svn-row__arrow {
		transition: none;
	}
}
