/* =========================================================================
   Vacature Swiper Plugin Styles
   Scoped to .vs-section to avoid bleeding into the rest of the theme.
   ========================================================================= */

:root {
	--vs-c-primary: #1e456e;
	--vs-c-orange: #ef831e;
	--vs-c-light-blue: #82c9c5;
	--vs-c-blue: #3273b7;
	--vs-c-green: #a9c80b;
	--vs-c-text-dark: #1e456e;
	--vs-c-bg: #f4f7f9;
	--vs-app-height: 100dvh;
}

/* Fullscreen takeover when shortcode is used in fullscreen mode */
.vs-section--fullscreen html,
.vs-section--fullscreen body { overscroll-behavior: none; }

.vs-section--fullscreen + * { display: none; }

.vs-section--fullscreen {
	position: fixed;
	inset: 0;
	width: 100%;
	height: var(--vs-app-height);
	background-color: var(--vs-c-bg);
	overflow: hidden;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: env(safe-area-inset-top);
	padding-bottom: env(safe-area-inset-bottom);
	font-family: 'Open Sans', sans-serif;
	user-select: none;
	-webkit-user-select: none;
}

.vs-section--fullscreen ~ #wpadminbar,
body.vs-fullscreen-active header,
body.vs-fullscreen-active footer,
body.vs-fullscreen-active #colophon,
body.vs-fullscreen-active .site-header,
body.vs-fullscreen-active .site-footer,
body.vs-fullscreen-active #wpadminbar { display: none !important; }

body.vs-fullscreen-active { overflow: hidden; }
body.vs-fullscreen-active html { margin-top: 0 !important; }

.vs-container { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 1rem; }
.vs-row { flex-grow: 1; height: 100%; display: flex; justify-content: center; }
.vs-col { display: flex; flex-direction: column; height: 100%; justify-content: center; position: relative; width: 100%; max-width: 460px; }

/* ===== STACK COUNTER ===== */
.stack-counter {
	position: absolute; top: -10px; left: -30px;
	background: var(--vs-c-blue); color: #fff;
	padding: 5px 10px; border-radius: 50px;
	display: flex; align-items: center; gap: 8px; z-index: 200;
	box-shadow: 0 4px 15px rgba(50, 115, 183, 0.4);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}
.stack-counter span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.rood { color: #d9534f; }
.groen { color: var(--vs-c-green); }

/* ===== TUTORIAL OVERLAY ===== */
.tutorial-overlay {
	position: fixed; inset: 0;
	background: rgba(30, 69, 110, 0.98);
	z-index: 25000;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.tutorial-overlay.is-visible { opacity: 1; pointer-events: auto; }
.tutorial-content { text-align: center; color: #fff; max-width: 320px; width: 100%; padding: 20px; }
.tutorial-anim-box { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.hand-icon { font-size: 60px; color: #fff; animation: vsSwipeHint 2s infinite ease-in-out; }
@keyframes vsSwipeHint {
	0%, 40%, 80%, 100% { transform: translateX(0) rotate(0deg); opacity: 1; }
	20% { transform: translateX(-40px) rotate(-15deg); opacity: 0.8; }
	60% { transform: translateX(40px) rotate(15deg); opacity: 0.8; }
}
.tutorial-title { font-size: 24px; font-weight: 700; margin-bottom: 5px; color: #fff; }
.tutorial-desc { font-size: 16px; opacity: 0.9; margin-bottom: 30px; }
.tutorial-instructions { background: rgba(255,255,255,0.1); border-radius: 12px; padding: 15px; margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.2); }
.instruction-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.instruction-row i { font-size: 18px; }
.icon-left { color: #d9534f; margin-right: 10px; }
.icon-right { color: var(--vs-c-green); margin-left: 10px; }
.loading-status-row { display: flex; justify-content: space-between; width: 100%; color: #fff; font-size: 14px; margin-bottom: 8px; font-weight: 700; opacity: 0.9; }
.loading-bar-wrap { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.loading-bar-fill { height: 100%; background: var(--vs-c-green); width: 0%; transition: width 0.1s linear; }

/* ===== RADIUS ALERT ===== */
.radius-alert {
	position: absolute; top: 60px; left: 20px; right: 20px; z-index: 500;
	background: rgba(239, 131, 30, 0.1); color: var(--vs-c-orange);
	font-size: 12px; text-align: center; padding: 8px;
	border-radius: 8px; border: 1px solid rgba(239, 131, 30, 0.3);
	font-weight: 600;
}

/* ===== KAARTEN STAPEL ===== */
.swiper-block-responsive { position: relative; width: 100%; max-width: 400px; height: 90vh; max-height: 650px; min-height: 400px; margin: 0 auto; }
.tinder-controls { position: relative; width: 100%; display: flex; justify-content: center; gap: 30px; margin-top: 20px; z-index: 50; padding-bottom: 15px; }
.tinder-stack-wrap { position: relative; width: 100%; height: 100%; perspective: 1000px; z-index: 20; }

.tinder-card {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	background: #fff; border-radius: 12px;
	box-shadow: 0 10px 30px -5px rgba(30, 69, 110, 0.15);
	display: flex; flex-direction: column; overflow: hidden;
	cursor: pointer;
	transform-origin: 50% 100%; will-change: transform; touch-action: none;
	border: 1px solid rgba(0,0,0,0.05);
}
.tinder-card.is-moving { cursor: grabbing; }

.card-pattern-header {
	height: 150px; width: 100%; position: relative;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; flex-shrink: 0;
	background-color: var(--vs-c-primary);
	padding: 20px; text-align: center;
}
.card-header-title {
	position: relative; z-index: 10;
	color: #fff; font-size: 22px; font-weight: 700;
	line-height: 1.25; margin: 0;
	text-shadow: 0 2px 5px rgba(0,0,0,0.3);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.header-watermark { position: absolute; font-size: 140px; color: rgba(255,255,255,0.05); transform: rotate(-15deg); bottom: -30px; right: -20px; pointer-events: none; }

.card-body {
	padding: 15px 20px; display: flex; flex-direction: column; flex-grow: 1;
	background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
	justify-content: flex-start;
}

/* ===== CONTENT BLOCKS ===== */
.content-blocks-wrap { display: flex; flex-direction: column; gap: 15px; }
.info-block { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 11px; font-weight: 800; color: var(--vs-c-light-blue); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.info-text { font-size: 13px; line-height: 1.5; color: #525f7f; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.info-text ul { margin: 5px 0 10px 0; padding-left: 18px; list-style-type: disc; }
.info-text li { margin-bottom: 4px; line-height: 1.4; padding-left: 0; }
.info-text strong, .info-text b { font-weight: 700; color: var(--vs-c-primary); }
.info-text p { margin-bottom: 10px; }
.info-text p:last-child { margin-bottom: 0; }

/* ===== VACANCY OVERLAY (IFRAME) ===== */
.vacancy-overlay {
	position: fixed; inset: 0; width: 100%; height: 100%;
	background: #fff; z-index: 10000;
	display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform 0.3s ease-in-out;
}
.vacancy-overlay.is-open { transform: translateX(0); }
.overlay-header {
	height: 60px; background: #fff; border-bottom: 1px solid #e9ecef;
	display: flex; align-items: center; padding: 0 15px;
	flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	z-index: 10; justify-content: space-between;
}
.overlay-title { font-weight: 700; color: var(--vs-c-primary); margin-left: auto; }
.btn-back { border: none; background: transparent; font-size: 16px; font-weight: 600; color: var(--vs-c-primary); display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 10px 10px 0; }
.btn-back i { font-size: 20px; }
#vacancy-frame { flex-grow: 1; width: 100%; height: 100%; border: none; background: #fff; -webkit-overflow-scrolling: touch; }
#vacancy-overlay { z-index: 20000 !important; }

/* matches overlay slides up from the bottom */
#matches-overview-overlay {
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
	z-index: 15000;
}
#matches-overview-overlay.is-open { transform: translateY(0); }

/* ===== USP CHIPS ===== */
.usp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.usp-chip { background-color: var(--vs-c-primary); color: #fff; border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; line-height: 1.2; }

/* ===== META GRID ===== */
.meta-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px; margin-bottom: 10px; padding-bottom: 10px; flex-shrink: 0; border-bottom: 1px solid #eee; }
.meta-box { display: flex; align-items: center; gap: 8px; min-width: 0; }
.meta-label { display: flex; align-items: center; justify-content: center; height: 20px; }
.meta-label i { font-size: 18px; color: #000; line-height: 1; display: block; }
.meta-value { font-size: 14px; font-weight: 600; color: #000; line-height: 1; padding-top: 2px; }

/* ===== STAMPS ===== */
.card-stamp {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.1s;
}
.stamp-inner {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px; padding: 20px 40px;
	display: flex; flex-direction: column; align-items: center; gap: 5px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2); border: 4px solid;
	transform: scale(0.8);
}
.stamp-like .stamp-inner { color: var(--vs-c-green); border-color: var(--vs-c-green); }
.stamp-nope .stamp-inner { color: #d9534f; border-color: #d9534f; }
.stamp-inner i { font-size: 60px; display: block; }
.stamp-inner span { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }

/* ===== BUTTONS ===== */
.c-btn {
	width: 64px; height: 64px; border-radius: 50%; border: none; background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-size: 26px; cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex; align-items: center; justify-content: center;
	-webkit-tap-highlight-color: transparent;
}
.c-btn:active { transform: scale(0.95); }
.btn-n { color: #d9534f; background: #fff; }
.btn-n:hover { background: #fff5f5; }
.btn-y { color: #fff; background: var(--vs-c-green); box-shadow: 0 8px 20px rgba(169, 200, 11, 0.4); }
.btn-y:hover { transform: scale(1.05); }

/* ===== EMPTY STATES ===== */
.empty-state {
	position: absolute; inset: 0; height: 100%;
	display: flex; flex-direction: column; background: #fff;
	border-radius: 12px; overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	z-index: 10; opacity: 0; pointer-events: none;
	transition: opacity 0.4s ease-in;
}
.empty-state.is-visible { opacity: 1; pointer-events: auto; z-index: 30; }
.empty-header { padding: 40px 20px 10px; text-align: center; flex-shrink: 0; }
.empty-header h3 { color: var(--vs-c-primary); }
.empty-header p { color: #666; font-size: 14px; margin: 5px 0 0; }
.empty-content { flex-grow: 1; overflow-y: auto; padding: 20px; scrollbar-width: thin; scrollbar-color: #ddd transparent; }
.vs-flex-col-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.match-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.match-counter.static-state {
	cursor: default; pointer-events: none;
	padding: 6px 12px; background: var(--vs-c-green); right: 0; box-shadow: 0 4px 15px var(--vs-c-green);
}
.match-item {
	background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 16px;
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02); cursor: pointer;
}
.match-item:hover { border-color: var(--vs-c-light-blue); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-2px); }
.match-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.match-title { font-weight: 700; font-size: 16px; color: var(--vs-c-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-loc { font-size: 13px; color: #888; display: flex; align-items: center; gap: 4px; }
.match-btn {
	background: var(--vs-c-orange); color: white; text-decoration: none;
	padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 700;
	white-space: nowrap; text-align: center; transition: background 0.2s, transform 0.1s;
	border: none; pointer-events: none;
}
.match-btn:hover { background: #d6751a; color: #fff; transform: scale(1.02); }
.match-btn:active { transform: scale(0.98); }
.vs-btn-full { width: 100%; display: flex !important; justify-content: center; align-items: center; gap: 8px; pointer-events: auto !important; }

.open-app-block {
	margin-bottom: 15px; padding: 20px; border-radius: 12px;
	background: rgba(239, 131, 30, 0.1); border: 1px dashed var(--vs-c-orange);
	width: 100%;
}
.open-app-block.plain { background: transparent; border: 1px solid #e9ecef; }
.open-app-block.stretch { width: 100%; margin-top: 30px; margin-bottom: 20px; }
.open-app-block p { color: #444; font-size: 14px; margin-bottom: 15px; line-height: 1.5; }

.restart-btn { text-decoration: none; color: var(--vs-c-blue); margin-top: 30px; }
.restart-btn.small { width: 50px; height: 50px; font-size: 20px; margin: 0 auto; }
.restart-label { font-size: 12px; color: #888; margin-top: 10px; display: block; text-align: center; }
.restart-row { text-align: center; margin-top: 10px; padding-bottom: 30px; }

/* ===== RECOMMENDATIONS ===== */
#recommendations-container { margin-top: 30px; padding-top: 20px; border-top: 2px dashed #e9ecef; }
#recommendations-container h3 { font-size: 15px; color: var(--vs-c-primary); font-weight: 700; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.rec-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rec-item { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 12px 16px; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.rec-item:hover { border-color: var(--vs-c-light-blue); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.rec-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(130, 201, 197, 0.15); border-radius: 50%; color: var(--vs-c-light-blue); font-size: 18px; }
.rec-content { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rec-title { font-size: 14px; font-weight: 700; color: var(--vs-c-primary); margin: 0 0 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-loc { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; }
.rec-arrow { width: 32px; height: 32px; display: flex; align-items: center; justify-content: flex-end; color: var(--vs-c-orange); font-size: 18px; }

/* ===== MATCH COUNTER ===== */
.match-counter {
	position: absolute; cursor: pointer; top: -10px; right: -30px;
	background: var(--vs-c-orange); color: #fff; padding: 5px 10px; border-radius: 50px;
	display: flex; align-items: center; gap: 8px; z-index: 200;
	box-shadow: 0 4px 15px var(--vs-c-orange);
	transform: scale(0); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.match-counter span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.match-counter.is-visible { transform: scale(1); }
.match-counter.is-visible.active { transform: scale(1.1); }

.interim-email-footer { background: #f8f9fa; border-top: 1px solid #e9ecef; padding: 20px; flex-shrink: 0; }
.interim-email-title { font-size: 14px; font-weight: 700; color: var(--vs-c-primary); margin-bottom: 8px; display: block; text-align: center; }

/* ===== AI WELCOME OVERLAY ===== */
.quiz-overlay {
	position: absolute; inset: 0; background: rgba(255,255,255,0.98); z-index: 50;
	border-radius: 12px; display: flex; flex-direction: column; justify-content: center;
	padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); text-align: center;
}
.quiz-icon {
	width: 110px; height: 110px;
	background: rgba(30, 69, 110, 0.1); border-radius: 50%;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
	overflow: hidden; position: relative;
}
.quiz-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-title { color: var(--vs-c-primary); font-size: 30px; margin-bottom: 5px; }
.quiz-subtitle { color: var(--vs-c-primary); font-size: 16px; margin-bottom: 10px; }
.quiz-description { color: #666; font-size: 14px; margin-bottom: 20px; }
.quiz-bottom-link { font-size: 14px; color: var(--vs-c-blue); margin-top: 20px; display: block; text-decoration: underline; }

.ai-input-wrap { position: relative; background: #fff; border-radius: 8px; padding: 5px; border: 2px solid #e9ecef; transition: border-color 0.2s; }
.ai-input-wrap:focus-within { border-color: var(--vs-c-blue); }
#ai-user-input {
	width: 100%; height: 80px; border: none; background: transparent;
	padding: 10px 50px 10px 15px; resize: none; outline: none;
	font-size: 16px; color: var(--vs-c-text-dark);
}
.ai-submit-btn {
	position: absolute; bottom: 8px; right: 8px; width: 40px; height: 40px;
	border-radius: 4px; background: var(--vs-c-primary); color: #fff;
	border: none; display: flex; align-items: center; justify-content: center;
	font-size: 18px; cursor: pointer;
}
.ai-submit-btn:hover { background: var(--vs-c-blue); }
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid rgba(30, 69, 110, 0.2); border-radius: 50%; border-top-color: var(--vs-c-primary); animation: vsSpin 1s ease-in-out infinite; }
@keyframes vsSpin { to { transform: rotate(360deg); } }

/* ===== EMAIL CAPTURE ===== */
#email-capture-block {
	margin-top: 30px; background: #fff; border: 1px solid #e9ecef;
	padding: 20px; border-radius: 8px; text-align: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.email-icon-circle { width: 50px; height: 50px; background: rgba(30, 69, 110, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; color: var(--vs-c-primary); font-size: 24px; }
.email-title { color: var(--vs-c-primary); margin: 0 0 5px; font-size: 16px; font-weight: 700; }
.email-desc { font-size: 13px; color: #666; margin-bottom: 15px; line-height: 1.5; }
.email-form-row { display: flex; gap: 8px; max-width: 350px; margin: 0 auto; }
.email-form-row input[type="email"] {
	flex-grow: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 6px;
	outline: none; font-size: 16px; color: var(--vs-c-text-dark);
}
.email-form-row button {
	background: var(--vs-c-primary); color: #fff; border: none;
	border-radius: 6px; width: 44px; font-size: 20px; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s;
}
.email-form-row button:hover { background: var(--vs-c-blue); }
.email-form-row button:disabled { background: #ccc; cursor: not-allowed; }
.email-feedback { margin-top: 10px; font-size: 12px; min-height: 15px; text-align: center; }

/* ===== MOBIEL ===== */
@media (max-width: 480px) {
	.stack-counter { left: 0; top: -10px; }
	.match-counter { right: 0; top: -10px; }
	.swiper-block-responsive { height: 100vh; max-height: 850px; }
	.card-pattern-header { height: 120px; padding: 15px; }
	.card-header-title { font-size: 18px; }
	.card-body { padding: 16px; }
	.meta-grid { gap: 6px 12px; margin-bottom: 10px; padding-bottom: 10px; }
	.info-text { -webkit-line-clamp: 2; }
	.info-block.first-block .info-text { -webkit-line-clamp: 3; }
	.c-btn { width: 56px; height: 56px; font-size: 24px; }
	.tinder-controls { margin-top: 10px; padding-bottom: 10px; }
	.match-item { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 10px; }
	.match-info { grid-row: 1; }
	.match-btn { grid-row: 2; width: 100%; margin-top: 5px; }
}
@media (max-height: 600px) {
	.card-pattern-header { height: 100px; }
	.card-header-title { font-size: 16px; -webkit-line-clamp: 2; }
}

/* iOS zoom fix */
@media screen and (max-width: 991px) {
	.vs-section input,
	.vs-section textarea,
	.vs-section select { font-size: 16px !important; }
}
