/*
 * UEK Kompas kierunków — quiz styling.
 * Wymaga uek-tools.css (base).
 */

/* Wymuszenie ukrywania — niektóre motywy WP nadpisują [hidden] przez display:block */
.uek-tools [hidden],
.uek-tools[hidden] {
	display: none !important;
}

.uek-kompas {
	background: #faf8f5;
	border-radius: 12px;
	padding: 0;
	max-width: 720px;
}

.uek-kompas__screen {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 12px;
	padding: 32px 24px;
	animation: uek-fade-in 0.4s ease-out;
}

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

/* ── Start screen ── */
.uek-kompas__screen--start {
	text-align: center;
	padding: 48px 24px;
}
.uek-kompas__icon-circle {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	background: #501a33;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	box-shadow: 0 6px 16px rgba(80, 26, 51, 0.15);
}
.uek-kompas__title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 12px;
}
.uek-kompas__subtitle {
	font-size: 15px;
	color: #838383;
	margin-bottom: 24px;
	max-width: 480px;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important;
}
.uek-kompas__cta-start {
	margin-bottom: 32px;
}
.uek-kompas__disclaimer {
	font-size: 11px;
	color: #838383;
	max-width: 480px;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.6;
	text-align: center !important;
}
.uek-kompas__screen--start .uek-kompas__title,
.uek-kompas__screen--start .uek-kompas__subtitle,
.uek-kompas__screen--start .uek-kompas__disclaimer,
.uek-kompas__screen--result .uek-kompas__disclaimer {
	text-align: center !important;
}

/* ── Stepper (filters) ── */
.uek-kompas__stepper {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}
.uek-kompas__step-badge {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #501a33;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}
.uek-kompas__step-label {
	font-size: 13px;
	color: #838383;
}
.uek-kompas__step-divider {
	flex-grow: 1;
	height: 2px;
	background: #e4e0d8;
	margin: 0 8px;
}
.uek-kompas__step-meta {
	font-size: 12px;
	color: #838383;
}

/* ── Field groups ── */
.uek-kompas__field {
	border: none;
	padding: 0;
	margin: 0 0 24px;
}
.uek-kompas__legend {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #501a33;
	margin-bottom: 12px;
	padding: 0;
}

/* ── Pills ── */
.uek-kompas__pills {
	display: grid;
	gap: 8px;
}
.uek-kompas__pills--cols-2 {
	grid-template-columns: repeat(2, 1fr);
}
.uek-kompas__pills--cols-3 {
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 480px) {
	.uek-kompas__pills--cols-2,
	.uek-kompas__pills--cols-3 {
		grid-template-columns: 1fr;
	}
}

.uek-kompas__pill {
	border: 1px solid #e4e0d8;
	border-radius: 9px;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	background: #fff;
	color: #333;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s;
}
.uek-kompas__pill:hover {
	border-color: #914a6a;
}
.uek-kompas__pill--active {
	background: #501a33;
	border-color: #501a33;
	color: #fff;
}

/* ── Navigation ── */
.uek-kompas__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e4e0d8;
	gap: 12px;
}

/* ── Progress (questions) ── */
.uek-kompas__progress {
	margin-bottom: 24px;
}
.uek-kompas__progress-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}
.uek-kompas__progress-label {
	font-size: 12px;
	font-weight: 700;
	color: #501a33;
}
.uek-kompas__progress-percent {
	font-size: 12px;
	color: #838383;
}
.uek-kompas__progress-bar {
	height: 4px;
	background: #e4e0d8;
	border-radius: 999px;
	overflow: hidden;
}
.uek-kompas__progress-fill {
	height: 100%;
	background: #501a33;
	transition: width 0.3s ease-out;
}

.uek-kompas__question-text {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 24px;
	line-height: 1.3;
}

/* ── Result screen ── */
.uek-kompas__screen--result {
	background: transparent;
	border: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.uek-kompas__result-header {
	text-align: center;
	padding: 0 24px;
}
.uek-kompas__result-eyebrow {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #914a6a;
	margin-bottom: 8px;
}
.uek-kompas__result-title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 8px;
}
.uek-kompas__result-note {
	font-size: 13px;
	color: #914a6a;
	font-weight: 500;
	margin-top: 8px;
}

/* ── Top result card ── */
.uek-kompas__top {
	background: #501a33;
	border: 1px solid #914a6a;
	border-radius: 12px;
	padding: 32px;
	color: #fff;
}
.uek-kompas__top-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 12px;
}
.uek-kompas__top-eyebrow {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #914a6a;
}
.uek-kompas__top-percent {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
}
.uek-kompas__top-name,
.uek-kompas .uek-kompas__top-name {
	font-size: 22px;
	font-weight: 700;
	color: #fff !important;
	margin-bottom: 12px;
}
.uek-kompas__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.uek-kompas__chip {
	font-size: 11px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.8);
}
.uek-kompas__top-desc {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
}
.uek-kompas__top-extra {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
	margin-top: 8px;
}

/* ── Alternative cards ── */
.uek-kompas__alts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (max-width: 640px) {
	.uek-kompas__alts {
		grid-template-columns: 1fr;
	}
}
.uek-kompas__alt {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 12px;
	padding: 24px;
}
.uek-kompas__alt-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 12px;
}
.uek-kompas__alt-eyebrow {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #838383;
}
.uek-kompas__alt-percent {
	font-size: 22px;
	font-weight: 700;
	color: #501a33;
}
.uek-kompas__alt-name {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 8px;
}
.uek-kompas__alt-chip {
	font-size: 10px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 5px;
	background: #fdf7f9;
	color: #914a6a;
	border: 1px solid #e4e0d8;
}
.uek-kompas__alts .uek-kompas__chips {
	gap: 6px;
	margin-bottom: 12px;
}
.uek-kompas__alt-desc {
	font-size: 12px;
	color: #838383;
}

/* ── Limited results ── */
.uek-kompas__limited {
	background: #fdf7f9;
	border: 1px solid #e4e0d8;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	font-size: 13px;
	color: #914a6a;
}

/* ── Profile ── */
.uek-kompas__profile {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 12px;
	padding: 24px;
}
.uek-kompas__profile h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
}
.uek-kompas__profile-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
@media (max-width: 640px) {
	.uek-kompas__profile-grid {
		grid-template-columns: 1fr;
	}
}
.uek-kompas__profile-tile {
	background: #faf8f5;
	border: 1px solid #e4e0d8;
	border-radius: 10px;
	padding: 16px;
}
.uek-kompas__profile-rank {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #914a6a;
	display: block;
	margin-bottom: 4px;
}
.uek-kompas__profile-name {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
}
.uek-kompas__profile-desc {
	font-size: 11px;
	color: #838383;
	line-height: 1.5;
}

/* ── CTA block ── */
.uek-kompas__cta-block {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 12px;
	padding: 24px;
}
.uek-kompas__cta-block h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 16px;
}
.uek-kompas__cta-block .uek-tools__btn--xl {
	width: 100%;
	margin-bottom: 16px;
}
.uek-kompas__cta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
@media (max-width: 720px) {
	.uek-kompas__cta-grid {
		grid-template-columns: 1fr;
	}
}
.uek-kompas__cta-grid .uek-tools__btn {
	height: auto;
	min-height: 42px;
	padding: 10px 12px;
	font-size: 13px;
	width: 100%;
	white-space: normal;
	line-height: 1.25;
	text-align: center;
}

/* ── Empty result ── */
.uek-kompas__empty {
	text-align: center;
	padding: 48px 24px;
}
.uek-kompas__empty p {
	font-size: 14px;
	color: #838383;
	margin: 16px 0 24px;
}
