/* === ASKUP • Design System (Dark Minimal) === */
:root {
	color-scheme: dark;
	--bg: #0f1115; /* tło strony */
	--bg-soft: #12151b; /* miękkie tło sekcji */
	--card: #16181d; /* karty */
	--line: rgba(255, 255, 255, 0.08);
	--line-soft: rgba(255, 255, 255, 0.06);
	--text: #e6e8ec;
	--muted: #a8afc1;
	--accent: #6e8bff; /* akcent (możesz zmienić) */
	--accent-2: #9aaaff;
	--danger: #ff6e6e;
	--shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
	--radius: 16px;
	--radius-sm: 12px;
	--radius-lg: 24px;
	--focus: 0 0 0 2px rgba(110, 139, 255, 0.45), 0 0 0 6px rgba(110, 139, 255, 0.15);
}

* {
	box-sizing: border-box;
}
html,
body {
	background: var(--bg);
	color: var(--text);
	margin: 0;
	font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
a {
	color: var(--accent);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* Layout kontenera pod bottom bar */
.askup-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px 110px; /* dół pod bottom bar */
}

/* Nagłówki */
h1,
h2,
h3 {
	margin: 0 0 12px;
	line-height: 1.2;
}
h1 {
	font-size: 28px;
	letter-spacing: 0.2px;
}
h2 {
	font-size: 22px;
	color: var(--muted);
}

/* Karty */
.askup-card {
	background: var(--card);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow);
}

/* Siatka formularzy */
.form-grid {
	display: grid;
	gap: 14px;
}

/* Pola formularza */
.input,
.select,
.textarea {
	width: 100%;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	color: var(--text);
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	outline: none;
	transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.textarea {
	min-height: 120px;
	resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
	color: #8f96a8;
}

.input:focus,
.select:focus,
.textarea:focus {
	border-color: var(--accent);
	box-shadow: var(--focus);
}

/* Checkbox / switch row */
.field-row {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
}

/* Etykiety */
.label {
	display: block;
	color: var(--muted);
	margin-bottom: 6px;
	font-size: 14px;
}

/* Przyciski */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--line);
	background: #1a1e25;
	color: var(--text);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.05s ease, border 0.15s ease, background 0.15s ease;
}
.btn:hover {
	border-color: var(--accent);
}
.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: linear-gradient(180deg, var(--accent), var(--accent-2));
	border-color: transparent;
	color: #0b0d12;
}
.btn-primary:hover {
	filter: brightness(1.05);
}
.btn-ghost {
	background: transparent;
}

/* Error / info */
.alert {
	border: 1px solid rgba(255, 110, 110, 0.4);
	background: rgba(255, 110, 110, 0.08);
	color: #ffb3b3;
	border-radius: var(--radius-sm);
	padding: 10px 12px;
}

/* Sekcja linków pomocniczych */
.helper-links {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 10px;
}
.helper-links a {
	color: var(--muted);
}
.helper-links a:hover {
	color: var(--accent);
}

/* Minimalny układ dla stron auth */
.auth-header {
	margin-bottom: 14px;
}
.auth-desc {
	color: var(--muted);
	margin-bottom: 18px;
}

/* Bottom bar (masz już bazę – zostawiamy, tylko lekki doprac) */
.askup-bottombar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 8px;
	padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
	background: rgba(18, 20, 25, 0.9);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--line);
	z-index: 9999;
}
.bb-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: #e6e8ec;
	text-decoration: none;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 12px;
}
.bb-ic svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}
.bb-item.bb-plus svg {
	width: 28px;
	height: 28px;
}
.bb-item.active {
	background: #1b1e25;
	border: 1px solid var(--line-soft);
}

/* Desktop – pasek na pełną szerokość (zostajemy „płasko”) */
@media (min-width: 961px) {
	.askup-bottombar {
		max-width: none !important;
		width: 100% !important;
		margin: 0 !important;
		border-left: none !important;
		border-right: none !important;
	}
}

/* === ASKUP Bottom Bar === */
.askup-bottombar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 8px;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
	background: rgba(18, 20, 25, 0.9);
	backdrop-filter: blur(8px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	z-index: 9999;
}
.askup-bottombar .bb-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: #e6e8ec;
	text-decoration: none;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 12px;
}
.askup-bottombar .bb-item .bb-ic {
	font-size: 20px;
	line-height: 1;
}
.askup-bottombar .bb-item.bb-plus .bb-ic {
	font-size: 24px;
}

.askup-bottombar .bb-item.active {
	background: #1b1e25;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 961px) {
	/* Na desktopie dolny pasek może być mniejszy/zbliżony do mobilnego */
	.askup-bottombar {
		max-width: 960px;
		margin: 0 auto;
		border-left: 1px solid rgba(255, 255, 255, 0.08);
		border-right: 1px solid rgba(255, 255, 255, 0.08);
	}
}

/* Zapas na dół, żeby treść nie wchodziła pod pasek */
.askup-wrap {
	padding-bottom: 96px;
}
/* === Bottom bar full width na dużych ekranach === */
@media (min-width: 961px) {
	.askup-bottombar {
		max-width: none !important;
		width: 100% !important;
		margin: 0 !important;
		border-left: none !important;
		border-right: none !important;
		left: 0;
		right: 0; /* dla pewności */
	}
}
.btn,
.input,
.textarea {
	transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.input:hover,
.textarea:hover {
	border-color: var(--line);
	background: #141821;
}
/* Karty pytań jako slajdy */
.q-carousel {
	display: grid;
	gap: 12px;
}
.q-card {
	animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
	from {
		opacity: 0.75;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Range – lekko lepszy wygląd */
input[type='range'] {
	accent-color: var(--accent);
}
/* === ASKUP swipe carousel === */
.q-carousel {
	position: relative;
	overflow: hidden;
}
.q-track {
	display: flex;
	transition: transform 0.25s ease;
	will-change: transform;
}
.q-card {
	min-width: 100%;
	box-sizing: border-box;
}

/* podpowiedź */
.q-hint {
	position: absolute;
	right: 12px;
	bottom: 12px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--line);
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	color: var(--muted);
	pointer-events: none;
	opacity: 0.9;
	transform: translateY(0);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.q-hint.hide {
	opacity: 0;
	transform: translateY(6px);
}

/* kropki */
.q-dots {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
}
.q-dots .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line);
	transition: transform 0.15s ease, background 0.15s ease;
}
.q-dots .dot.active {
	background: var(--accent);
	transform: scale(1.15);
}

/* shake dla walidacji */
@keyframes shakeX {
	0%,
	100% {
		transform: translateX(0);
	}
	20% {
		transform: translateX(-6px);
	}
	40% {
		transform: translateX(6px);
	}
	60% {
		transform: translateX(-4px);
	}
	80% {
		transform: translateX(4px);
	}
}
.q-card.invalid {
	animation: shakeX 0.28s ease;
}
/* Wizard */
.wizard {
	position: relative;
}
.w-step {
	animation: fadeStep 0.18s ease;
}
@keyframes fadeStep {
	from {
		opacity: 0.75;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.wizard-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	position: sticky;
	bottom: 8px;
	margin-top: 8px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 8px 10px;
}
.wizard-steps {
	display: flex;
	gap: 6px;
}
.wiz-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line);
}
.wiz-dot.active {
	background: var(--accent);
	transform: scale(1.15);
	transition: 0.15s;
}

.w-step.invalid {
	animation: shakeX 0.28s ease;
}
@keyframes shakeX {
	0%,
	100% {
		transform: translateX(0);
	}
	20% {
		transform: translateX(-6px);
	}
	40% {
		transform: translateX(6px);
	}
	60% {
		transform: translateX(-4px);
	}
	80% {
		transform: translateX(4px);
	}
}
