/**
 * VAKOG Representatiesysteem Test
 * Alle styling is geïsoleerd onder .wt-wrap om conflicten met
 * WordPress-thema's te voorkomen. Geen globale resets, geen body-styling.
 */

.wt-wrap {
	/* Oppervlakken: blijven (lichte aanpassing houdt de kaartopmaak intact) */
	--wt-bg: #F7F5F0;
	--wt-bg-card: #FFFFFF;
	--wt-border: #E8E4DE;
	--wt-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);

	/* Tekst en merkkleur volgen het thema. Op een Elementor-site pakt de test
	   automatisch de kit-kleuren over; daarbuiten gelden de eigen fallbacks. */
	--wt-text: var(--e-global-color-text, #1A1A1A);
	--wt-text-muted: #6B6560;
	--wt-primary: var(--e-global-color-primary, #77287C);

	/* Lettertype volgt het thema (Elementor global fonts), met de meegeleverde
	   fonts als fallback voor niet-Elementor-thema's. */
	--wt-font-body: var(--e-global-typography-text-font-family, 'DM Sans', sans-serif);
	--wt-font-heading: var(--e-global-typography-primary-font-family, 'Fraunces', serif);

	/* De waardentest geeft een ranglijst, geen categorieprofiel. De balken
	   gebruiken daarom de merkkleur (--wt-primary), geen aparte kleuren per item. */

	background: var(--wt-bg);
	color: var(--wt-text);
	font-family: var(--wt-font-body);
	line-height: 1.6;
}

.wt-wrap,
.wt-wrap *,
.wt-wrap *::before,
.wt-wrap *::after {
	box-sizing: border-box;
}

.wt-container {
	max-width: 680px;
	margin: 0 auto;
	padding: 20px;
}

/* HEADER */
.wt-wrap .wt-header {
	text-align: center;
	padding: 40px 0 30px;
}

.wt-wrap .wt-header h1 {
	font-family: var(--wt-font-heading);
	font-size: 28px;
	font-weight: 700;
	color: var(--wt-text);
	margin: 0 0 8px;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.wt-wrap .wt-header p {
	color: var(--wt-text-muted);
	font-size: 15px;
	max-width: 420px;
	margin: 0 auto;
}

/* PROGRESS */
.wt-wrap .wt-progress-container {
	margin-bottom: 32px;
}

.wt-wrap .wt-progress-bar-bg {
	height: 4px;
	background: var(--wt-border);
	border-radius: 2px;
	overflow: hidden;
}

.wt-wrap .wt-progress-bar-fill {
	height: 100%;
	background: var(--wt-primary);
	border-radius: 2px;
	transition: width 0.4s ease;
}

.wt-wrap .wt-progress-text {
	font-size: 13px;
	color: var(--wt-text-muted);
	margin-top: 8px;
	text-align: right;
}

/* QUESTION CARD */
.wt-wrap .wt-question-card {
	background: var(--wt-bg-card);
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: var(--wt-shadow);
	border: 1px solid var(--wt-border);
	animation: wt-fade-in 0.3s ease;
}

@keyframes wt-fade-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.wt-wrap .wt-question-number {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--wt-text-muted);
	margin-bottom: 12px;
}

.wt-wrap .wt-question-text {
	font-family: var(--wt-font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 28px;
	color: var(--wt-text);
}

.wt-wrap .wt-question-context {
	font-size: 14px;
	color: var(--wt-text-muted);
	margin-bottom: 24px;
	font-style: italic;
}

/* LIKERT SCALE */
.wt-wrap .wt-likert-container {
	margin-bottom: 8px;
}

.wt-wrap .wt-likert-labels {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 12px;
	color: var(--wt-text-muted);
}

.wt-wrap .wt-likert-options {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.wt-wrap .wt-likert-option {
	flex: 1;
	max-width: 80px;
	height: 52px;
	border: 2px solid var(--wt-border);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	background: var(--wt-bg-card);
	color: var(--wt-text-muted);
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.wt-wrap .wt-likert-option:hover {
	border-color: var(--wt-primary);
	color: var(--wt-primary);
	transform: translateY(-2px);
}

.wt-wrap .wt-likert-option.wt-selected {
	background: var(--wt-primary);
	border-color: var(--wt-primary);
	color: #fff;
	transform: translateY(-2px);
}

.wt-wrap .wt-likert-option:focus-visible {
	outline: 3px solid var(--wt-primary);
	outline-offset: 2px;
}

/* NAVIGATION */
.wt-wrap .wt-nav-buttons {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.wt-wrap .wt-btn {
	flex: 1;
	padding: 14px 24px;
	border-radius: 12px;
	font-family: var(--wt-font-body);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	-webkit-tap-highlight-color: transparent;
}

.wt-wrap .wt-btn-back {
	background: var(--wt-bg);
	color: var(--wt-text-muted);
	border: 1px solid var(--wt-border);
}

.wt-wrap .wt-btn-back:hover {
	background: var(--wt-border);
}

.wt-wrap .wt-btn-next {
	background: var(--wt-primary);
	color: #fff;
}

.wt-wrap .wt-btn-next:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.wt-wrap .wt-btn-next:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	transform: none;
}

.wt-wrap .wt-btn:focus-visible {
	outline: 3px solid var(--wt-primary);
	outline-offset: 2px;
}

/* INTRO SCREEN */
.wt-wrap .wt-intro {
	text-align: center;
	padding: 20px 0;
}

.wt-wrap .wt-intro-icon {
	width: 80px;
	height: 80px;
	border-radius: 20px;
	background: var(--wt-primary);
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
}

.wt-wrap .wt-intro h2 {
	font-family: var(--wt-font-heading);
	font-size: 24px;
	margin: 0 0 16px;
	line-height: 1.3;
}

.wt-wrap .wt-intro p {
	color: var(--wt-text-muted);
	font-size: 15px;
	margin: 0 auto 12px;
	max-width: 480px;
}

.wt-wrap .wt-btn-start {
	margin-top: 28px;
	display: inline-block;
	padding: 16px 48px;
	background: var(--wt-primary);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-family: var(--wt-font-body);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wt-wrap .wt-btn-start:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.wt-wrap .wt-btn-start:focus-visible {
	outline: 3px solid var(--wt-primary);
	outline-offset: 2px;
}

.wt-wrap .wt-info-list {
	text-align: left;
	max-width: 400px;
	margin: 20px auto;
	list-style: none;
	padding: 0;
}

.wt-wrap .wt-info-list li {
	padding: 8px 0;
	font-size: 14px;
	color: var(--wt-text-muted);
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.wt-wrap .wt-info-list li::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wt-primary);
	flex-shrink: 0;
	margin-top: 8px;
}

/* RESULTS */
.wt-wrap .wt-results-container {
	animation: wt-fade-in 0.5s ease;
}

.wt-wrap .wt-results-header {
	text-align: center;
	margin-bottom: 32px;
}

.wt-wrap .wt-results-header h2 {
	font-family: var(--wt-font-heading);
	font-size: 26px;
	margin: 0 0 8px;
	line-height: 1.3;
}

.wt-wrap .wt-results-header p {
	color: var(--wt-text-muted);
	font-size: 14px;
}

/* RADAR CHART */
.wt-wrap .wt-radar-card {
	background: var(--wt-bg-card);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--wt-shadow);
	border: 1px solid var(--wt-border);
	margin-bottom: 20px;
}

.wt-wrap .wt-radar-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.wt-wrap .wt-radar-svg {
	width: 100%;
	max-width: 420px;
	height: auto;
}

/* PROFILE BARS */
.wt-wrap .wt-profile-card {
	background: var(--wt-bg-card);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--wt-shadow);
	border: 1px solid var(--wt-border);
	margin-bottom: 20px;
}

.wt-wrap .wt-profile-card h3 {
	font-family: var(--wt-font-heading);
	font-size: 18px;
	margin: 0 0 20px;
}

.wt-wrap .wt-profile-item {
	margin-bottom: 16px;
}

.wt-wrap .wt-profile-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.wt-wrap .wt-profile-label {
	font-size: 14px;
	font-weight: 600;
}

/* Rangnummer in de ranglijst */
.wt-wrap .wt-rank {
	display: inline-block;
	min-width: 20px;
	color: var(--wt-primary);
	font-weight: 700;
}

.wt-wrap .wt-rank-dot {
	min-width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 50%;
	background: var(--wt-primary);
	color: #fff;
	font-size: 13px;
	flex-shrink: 0;
}

.wt-wrap .wt-profile-score {
	font-size: 13px;
	color: var(--wt-text-muted);
}

.wt-wrap .wt-profile-bar-bg {
	height: 8px;
	background: var(--wt-border);
	border-radius: 4px;
	overflow: hidden;
}

.wt-wrap .wt-profile-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.8s ease;
}

/* INTERPRETATION */
.wt-wrap .wt-interpretation-card {
	background: var(--wt-bg-card);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--wt-shadow);
	border: 1px solid var(--wt-border);
	margin-bottom: 20px;
}

.wt-wrap .wt-interpretation-card h3 {
	font-family: var(--wt-font-heading);
	font-size: 18px;
	margin: 0 0 16px;
}

.wt-wrap .wt-system-detail {
	padding: 16px 0;
	border-bottom: 1px solid var(--wt-border);
}

.wt-wrap .wt-system-detail:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wt-wrap .wt-system-detail-name {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wt-wrap .wt-system-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.wt-wrap .wt-system-detail-desc {
	font-size: 14px;
	color: var(--wt-text-muted);
	line-height: 1.5;
}

.wt-wrap .wt-system-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: 8px;
}

.wt-wrap .wt-tag-primary {
	background: var(--wt-primary);
	color: #fff;
}

.wt-wrap .wt-tag-secondary {
	background: var(--wt-border);
	color: var(--wt-text-muted);
}

/* DISCLAIMER */
.wt-wrap .wt-disclaimer {
	text-align: center;
	padding: 20px;
	font-size: 13px;
	color: var(--wt-text-muted);
	line-height: 1.5;
}

.wt-wrap .wt-btn-restart {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 32px;
	background: var(--wt-bg-card);
	color: var(--wt-text);
	border: 1px solid var(--wt-border);
	border-radius: 12px;
	font-family: var(--wt-font-body);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wt-wrap .wt-btn-restart:hover {
	background: var(--wt-border);
}

.wt-wrap .wt-btn-restart:focus-visible {
	outline: 3px solid var(--wt-primary);
	outline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
	.wt-container { padding: 16px; }
	.wt-wrap .wt-header h1 { font-size: 24px; }
	.wt-wrap .wt-question-text { font-size: 18px; }
	.wt-wrap .wt-question-card { padding: 24px 20px; }
	.wt-wrap .wt-likert-option { height: 48px; font-size: 16px; }
}

/* Op zeer smalle schermen de vijf knoppen naast elkaar houden */
@media (max-width: 360px) {
	.wt-wrap .wt-likert-options { gap: 5px; }
	.wt-wrap .wt-likert-option { height: 44px; font-size: 15px; border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
	.wt-wrap *,
	.wt-wrap *::before,
	.wt-wrap *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
