/**
 * Nokta Detector Finder - Frontend Styles
 */

.ndf-wrapper {
	--ndf-red: #d71920;
	--ndf-red-dark: #b90e15;
	--ndf-ink: #151515;
	--ndf-muted: #616166;
	--ndf-line: #dedee1;
	--ndf-soft: #f4f4f5;
	--ndf-white: #ffffff;
	font-family: 'Poppins', 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
	line-height: 1.5;
	color: var(--ndf-ink);
}

.ndf-wrapper * {
	box-sizing: border-box;
}

/* Full layout mode */
.ndf-section.ndf-finder {
	background: #19191c;
	color: #ffffff;
	padding: 60px 20px;
	border-radius: 4px;
	margin: 20px 0;
}

.ndf-wrap {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.ndf-finder-layout {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 60px;
	align-items: center;
}

/* Left intro column */
.ndf-finder-intro .ndf-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #ff6b6e;
	margin-bottom: 16px;
}

.ndf-finder-intro h2 {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 20px;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.ndf-brand-highlight {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--ndf-red);
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.16em;
	text-decoration-skip-ink: none;
}

.ndf-finder-intro p {
	color: #bdbdc2;
	font-size: 15px;
	line-height: 1.6;
	max-width: 420px;
	margin: 0 0 16px;
}

.ndf-extra-note {
	color: #99999e !important;
	font-size: 13.5px !important;
	margin-top: 24px !important;
}

.ndf-extra-note a {
	color: #ff8588;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
}

.ndf-extra-note a:hover {
	text-decoration: underline;
}

/* Standalone box layout */
.ndf-standalone-box {
	max-width: 720px;
	margin: 20px auto;
}

/* Finder Box Card */
.ndf-finder-box {
	background: #ffffff;
	color: var(--ndf-ink);
	padding: 36px;
	border-top: 4px solid var(--ndf-red);
	min-height: 340px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	position: relative;
	border-radius: 0 0 4px 4px;
}

.ndf-step-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--ndf-red);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.ndf-finder-box h3 {
	font-size: 25px;
	line-height: 1.25;
	margin: 0 0 22px 0;
	color: var(--ndf-ink);
	font-weight: 700;
	outline: none;
}

/* Choices Grid */
.ndf-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ndf-choice {
	background: #ffffff;
	border: 1px solid #ccc;
	padding: 16px;
	text-align: left;
	min-height: 58px;
	font-weight: 600;
	font-size: 14px;
	color: var(--ndf-ink);
	cursor: pointer;
	border-radius: 0;
	transition: all 0.15s ease-in-out;
	display: flex;
	align-items: center;
	line-height: 1.35;
	outline: none;
	font-family: inherit;
}

.ndf-choice:hover {
	border-color: var(--ndf-red);
	background: #fff7f7;
	color: var(--ndf-red);
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(215, 25, 32, 0.08);
}

.ndf-choice:focus-visible {
	border-color: var(--ndf-red);
	outline: 2px solid var(--ndf-red);
	outline-offset: 2px;
}

/* Bottom Bar */
.ndf-finder-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	font-size: 13px;
	color: var(--ndf-muted);
}

.ndf-back-btn {
	border: 0;
	background: none;
	padding: 6px 0;
	text-decoration: underline;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	color: var(--ndf-ink);
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ndf-back-btn:hover {
	color: var(--ndf-red);
}

/* Progress bar */
.ndf-progress {
	display: flex;
	gap: 7px;
	margin-top: 26px;
}

.ndf-progress span {
	height: 3px;
	flex: 1;
	background: #d9d9dc;
	transition: background 0.25s ease;
	border-radius: 2px;
}

.ndf-progress span.active {
	background: var(--ndf-red);
}

/* Results view */
.ndf-results-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 16px;
	max-height: 480px;
	overflow-y: auto;
	padding-right: 6px;
}

/* Custom scrollbar for results */
.ndf-results-list::-webkit-scrollbar {
	width: 5px;
}
.ndf-results-list::-webkit-scrollbar-track {
	background: #f1f1f1;
}
.ndf-results-list::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.ndf-result-item {
	border-bottom: 1px solid var(--ndf-line);
	padding: 16px 0;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.ndf-result-item:last-child {
	border-bottom: none;
}

.ndf-result-img-box {
	width: 84px;
	height: 84px;
	flex-shrink: 0;
	background: #fafafa;
	border: 1px solid #eaeaea;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 4px;
}

.ndf-result-img-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.ndf-result-info {
	flex: 1;
}

.ndf-result-title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--ndf-ink);
	margin-bottom: 3px;
}

.ndf-result-price {
	display: inline-block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ndf-red);
	margin-bottom: 6px;
	background: #fdf2f2;
	padding: 2px 7px;
	border-radius: 3px;
}

.ndf-result-desc {
	color: var(--ndf-muted);
	font-size: 13px;
	line-height: 1.45;
	margin: 4px 0 10px 0;
}

.ndf-text-link {
	color: var(--ndf-red);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}

.ndf-text-link:hover {
	color: var(--ndf-red-dark);
	text-decoration: underline;
}

.ndf-result-note {
	font-size: 13px;
	color: var(--ndf-muted);
	margin: 16px 0 20px;
	line-height: 1.5;
	border-top: 1px solid #eee;
	padding-top: 14px;
}

/* Actions in result */
.ndf-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.ndf-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	background: var(--ndf-red);
	border: 1px solid var(--ndf-red);
	color: #ffffff !important;
	font-weight: 600;
	font-size: 14px;
	min-height: 44px;
	border-radius: 4px;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.ndf-btn-primary:hover {
	background: var(--ndf-red-dark);
	border-color: var(--ndf-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(215, 25, 32, 0.2);
}

.ndf-restart-btn {
	border: 0;
	background: none;
	padding: 8px 14px;
	text-decoration: underline;
	cursor: pointer;
	color: var(--ndf-ink);
	font-weight: 600;
	font-size: 13px;
	font-family: inherit;
}

.ndf-restart-btn:hover {
	color: var(--ndf-red);
}

.ndf-empty-results {
	padding: 24px 0;
	text-align: center;
	color: var(--ndf-muted);
	font-size: 14px;
}

/* Responsive */
@media (max-width: 1050px) {
	.ndf-finder-layout {
		grid-template-columns: 1fr;
		gap: 35px;
	}
	.ndf-finder-intro h2 {
		font-size: 36px;
	}
}

@media (max-width: 700px) {
	.ndf-section.ndf-finder {
		padding: 40px 15px;
	}
	.ndf-finder-box {
		padding: 22px 18px;
	}
	.ndf-choices {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.ndf-choice {
		padding: 14px;
		font-size: 13.5px;
		min-height: 50px;
	}
	.ndf-finder-intro h2 {
		font-size: 30px;
	}
	.ndf-result-item {
		flex-direction: column;
		gap: 10px;
	}
	.ndf-result-img-box {
		width: 100%;
		height: 120px;
	}
	.ndf-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.ndf-btn-primary {
		width: 100%;
	}
	.ndf-restart-btn {
		text-align: center;
	}
}
