.juliansurf-journey {
	--p: var(--wp--preset--color--primary, #1e729a);
	--t: var(--wp--preset--color--text, #202020);
	--w: var(--wp--preset--color--white, #ffffff);
	--m: var(--wp--preset--color--mist, #EEF7F5);

	padding: 3rem 0;
}

.juliansurf-journey__header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 2.5rem;
}
.juliansurf-journey__heading {
	font-family: var(--wp--preset--font-family--heading, 'Signika Negative', sans-serif);
	font-size: clamp( 1.75rem, 3.5vw, 2.75rem );
	font-weight: 700;
	line-height: 1.15;
	color: var(--t);
	margin: 0 0 0.75rem;
}
.juliansurf-journey__subheading {
	font-family: var(--wp--preset--font-family--body, Roboto, sans-serif);
	font-size: 1.05rem;
	color: rgba(32, 32, 32, 0.7);
	margin: 0;
}

.juliansurf-journey__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}
@media (max-width: 860px) { .juliansurf-journey__grid { grid-template-columns: 1fr; } }

.juliansurf-journey__card {
	background: var(--m);
	border-radius: 8px;
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
}

/* Left card — avatars (3 stacked profile pics) + text + link */
.juliansurf-journey__avatars {
	display: flex;
	margin-bottom: 1rem;
}
.juliansurf-journey__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 3px solid var(--m);
	margin-left: -14px;
	display: inline-block;
	background: rgba(30, 114, 154, 0.08);
	position: relative;
	cursor: default;
	transition: transform 0.15s ease, z-index 0s linear 0.15s;
	z-index: 1;
}
.juliansurf-journey__avatar:first-child { margin-left: 0; }
.juliansurf-journey__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}
.juliansurf-journey__avatar:hover,
.juliansurf-journey__avatar:focus-visible {
	transform: translateY(-3px) scale(1.06);
	z-index: 10;
	outline: none;
	transition: transform 0.15s ease, z-index 0s;
}

/* Tooltip name (appears above the avatar on hover/focus) */
.juliansurf-journey__avatar-name {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--t);
	color: var(--w);
	padding: 0.3rem 0.65rem;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--heading, 'Signika Negative', sans-serif);
	font-weight: 600;
	font-size: 0.8rem;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
	z-index: 20;
}
.juliansurf-journey__avatar-name::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: var(--t);
}
.juliansurf-journey__avatar:hover .juliansurf-journey__avatar-name,
.juliansurf-journey__avatar:focus-visible .juliansurf-journey__avatar-name {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	transition-delay: 0s;
}
.juliansurf-journey__card-heading {
	font-family: var(--wp--preset--font-family--heading, 'Signika Negative', sans-serif);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--t);
	margin: 0 0 0.6rem;
	line-height: 1.2;
}
.juliansurf-journey__card-desc {
	font-family: var(--wp--preset--font-family--body, Roboto, sans-serif);
	color: rgba(32, 32, 32, 0.7);
	font-size: 0.95rem;
	margin: 0 0 1.25rem;
	line-height: 1.55;
}
.juliansurf-journey__card-link { margin: auto 0 0; }
.juliansurf-journey__card-link a {
	color: var(--t);
	font-family: var(--wp--preset--font-family--heading, 'Signika Negative', sans-serif);
	font-weight: 600;
	text-decoration: none;
}

/* Center card — concentric rings + CTA (fallback) or video */
.juliansurf-journey__card--center {
	background: var(--w);
	border: 1px solid rgba(32, 32, 32, 0.06);
	min-height: 360px;
	align-items: stretch;
	justify-content: center;
	padding: 0;
	overflow: hidden;
}

/* Video container */
.juliansurf-journey__video {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 360px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.juliansurf-journey__video-frame,
.juliansurf-journey__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	pointer-events: none; /* clicks captured by the overlay button */
}

.juliansurf-journey__video-click {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	border: 0;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.juliansurf-journey__video-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--t);
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.juliansurf-journey__video-icon svg { width: 28px; height: 28px; fill: currentColor; }

/* Show play icon when paused (overlay over the video) */
.juliansurf-journey__video[data-state="paused"] .juliansurf-journey__video-icon--play {
	opacity: 1;
	transform: scale(1);
}

/* Loading state — show a discreet play icon as initial cue */
.juliansurf-journey__video[data-state="loading"] .juliansurf-journey__video-icon--play {
	opacity: 0.35;
	transform: scale(0.9);
}
.juliansurf-journey__rings {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
}
.juliansurf-journey__ring {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 1.5px dashed rgba(32, 32, 32, 0.15);
}
.juliansurf-journey__ring--1 { width: 140px; height: 140px; }
.juliansurf-journey__ring--2 { width: 220px; height: 220px; opacity: 0.7; }
.juliansurf-journey__ring--3 { width: 300px; height: 300px; opacity: 0.4; }

.juliansurf-journey__center-btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--t);
	color: var(--w);
	padding: 0.95rem 1.5rem;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--heading, 'Signika Negative', sans-serif);
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease;
}
.juliansurf-journey__center-btn:hover { transform: scale(1.04); }
.juliansurf-journey__center-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Right card — certif levels (replaces progress bars) */
.juliansurf-journey__levels {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.juliansurf-journey__level {
	display: grid;
	grid-template-columns: 36px 1fr;
	grid-template-rows: auto auto;
	gap: 0.25rem 0.75rem;
	align-items: center;
}
.juliansurf-journey__level-num {
	grid-row: 1 / 3;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(30, 114, 154, 0.1);
	color: var(--p);
	font-family: var(--wp--preset--font-family--heading, 'Signika Negative', sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
}
.juliansurf-journey__level-body {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	justify-content: space-between;
}
.juliansurf-journey__level-name {
	font-family: var(--wp--preset--font-family--heading, 'Signika Negative', sans-serif);
	font-weight: 700;
	color: var(--t);
	font-size: 1rem;
}
.juliansurf-journey__level-label {
	font-family: var(--wp--preset--font-family--body, Roboto, sans-serif);
	font-size: 0.85rem;
	color: rgba(32, 32, 32, 0.55);
}
.juliansurf-journey__level-bar {
	grid-column: 2;
	grid-row: 2;
	display: block;
	height: 4px;
	background: rgba(32, 32, 32, 0.06);
	border-radius: 999px;
	position: relative;
	overflow: hidden;
}
.juliansurf-journey__level-bar::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: var(--fill, 0);
	background: var(--p);
	border-radius: 999px;
}
/* Progressive fill by index (works for any count up to 6) */
.juliansurf-journey__level:nth-child(1) .juliansurf-journey__level-bar { --fill: 25%; }
.juliansurf-journey__level:nth-child(2) .juliansurf-journey__level-bar { --fill: 50%; }
.juliansurf-journey__level:nth-child(3) .juliansurf-journey__level-bar { --fill: 75%; }
.juliansurf-journey__level:nth-child(4) .juliansurf-journey__level-bar { --fill: 100%; }
.juliansurf-journey__level:nth-child(5) .juliansurf-journey__level-bar { --fill: 100%; }
.juliansurf-journey__level:nth-child(6) .juliansurf-journey__level-bar { --fill: 100%; }
