/**
 * ALÇIDER Fiyat Karşılaştırıcı — stiller.
 * Tüm seçiciler .alcider-fk ile scope'lanmıştır; global eleman seçicisi
 * veya !important kullanılmaz. Renk/font tema değişkenlerinden miras alınır,
 * tema bunları tanımlamamışsa makul varsayılanlara düşülür.
 */

.alcider-fk {
	--fk-font: inherit;
	--fk-accent: var(--wp--preset--color--primary, #2E5BBA);
	--fk-text: var(--wp--preset--color--foreground, #1C2530);
	--fk-muted: #5A6573;
	--fk-surface: var(--wp--preset--color--base, #FBF9F3);
	--fk-border: rgba(0, 0, 0, .10);
	--fk-gypsum: var(--fk-accent);
	--fk-heavy: #8A8378;

	font-family: var(--fk-font);
	font-size: inherit;
	line-height: 1.5;
	color: var(--fk-text);
	box-sizing: border-box;
	max-width: 880px;
	margin: 0 auto;
	padding: 36px;
	background: var(--fk-surface);
	border: 1px solid var(--fk-border);
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
}

.alcider-fk *,
.alcider-fk *::before,
.alcider-fk *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------
   Başlık bölümü
   --------------------------------------------------------- */

.alcider-fk .fk-eyebrow {
	margin: 0 0 10px;
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fk-accent);
}

.alcider-fk .fk-title {
	margin: 0 0 14px;
	font-size: 1.7em;
	line-height: 1.25;
	font-weight: 700;
	color: var(--fk-text);
}

.alcider-fk .fk-desc {
	margin: 0 0 22px;
	font-size: inherit;
	line-height: 1.6;
	color: var(--fk-muted);
	max-width: 62ch;
}

.alcider-fk .fk-callout {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 14px;
	background: var(--fk-accent);
	color: #fff;
	font-size: .98em;
	line-height: 1.5;
}

.alcider-fk .fk-callout strong {
	font-size: 1.35em;
	font-weight: 800;
	margin-right: 6px;
}

/* ---------------------------------------------------------
   Hesaplayıcı: "Kendi projenizi karşılaştırın"
   --------------------------------------------------------- */

.alcider-fk .fk-calculator {
	margin: 0 0 28px;
	padding: 22px 24px;
	border: 1px solid var(--fk-border);
	border-radius: 14px;
	background: rgba(0, 0, 0, .015);
}

.alcider-fk .fk-calc-title {
	margin: 0 0 16px;
	font-size: .9em;
	font-weight: 700;
	color: var(--fk-text);
}

.alcider-fk .fk-calc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 18px;
}

.alcider-fk .fk-field label {
	display: block;
	font-size: .82em;
	font-weight: 600;
	color: var(--fk-muted);
	margin-bottom: 6px;
}

.alcider-fk .fk-field select {
	width: 100%;
	padding: 10px 12px;
	font-family: var(--fk-font);
	font-size: .88em;
	color: var(--fk-text);
	background: #fff;
	border: 1px solid var(--fk-border);
	border-radius: 8px;
	cursor: pointer;
}

.alcider-fk .fk-field-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.alcider-fk .fk-field-head label {
	margin-bottom: 0;
}

.alcider-fk .fk-field-value {
	font-family: var(--fk-font);
	font-weight: 700;
	font-size: .9em;
	color: var(--fk-accent);
}

.alcider-fk input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 22px;
	background: transparent;
	cursor: pointer;
	outline: none;
}

.alcider-fk input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: var(--fk-border);
}

.alcider-fk input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	margin-top: -7px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--fk-accent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}

.alcider-fk input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: var(--fk-border);
}

.alcider-fk input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--fk-accent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}

.alcider-fk .fk-result-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 18px;
}

.alcider-fk .fk-result-card {
	padding: 16px 18px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--fk-border);
}

.alcider-fk .fk-result-card--accent {
	background: var(--fk-accent);
	border-color: var(--fk-accent);
}

.alcider-fk .fk-result-card--accent .fk-result-label,
.alcider-fk .fk-result-card--accent .fk-result-value {
	color: #fff;
}

.alcider-fk .fk-result-label {
	display: block;
	font-size: .78em;
	font-weight: 600;
	color: var(--fk-muted);
	margin-bottom: 6px;
}

.alcider-fk .fk-result-value {
	display: block;
	font-size: 1.3em;
	font-weight: 800;
	color: var(--fk-text);
}

/* ---------------------------------------------------------
   Lejant
   --------------------------------------------------------- */

.alcider-fk .fk-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0 0 20px;
}

.alcider-fk .fk-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .85em;
	font-weight: 600;
	color: var(--fk-muted);
}

.alcider-fk .fk-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.alcider-fk .fk-legend-dot--gypsum {
	background: var(--fk-gypsum);
}

.alcider-fk .fk-legend-dot--heavy {
	background: var(--fk-heavy);
}

/* ---------------------------------------------------------
   Bar listesi
   --------------------------------------------------------- */

.alcider-fk .fk-bars {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.alcider-fk .fk-bar-row {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .5s ease, transform .5s ease;
}

.alcider-fk .fk-bar-row.is-visible {
	opacity: 1;
	transform: none;
}

.alcider-fk .fk-bar-row.is-selected .fk-bar-name {
	color: var(--fk-accent);
}

.alcider-fk .fk-bar-row.is-selected .fk-bar-track {
	box-shadow: 0 0 0 2px var(--fk-accent);
}

.alcider-fk .fk-bar-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.alcider-fk .fk-bar-name {
	font-size: .92em;
	font-weight: 600;
	color: var(--fk-text);
}

.alcider-fk .fk-bar-price {
	font-family: var(--fk-font);
	font-weight: 800;
	font-size: .95em;
	color: var(--fk-text);
	white-space: nowrap;
}

.alcider-fk .fk-bar-track {
	height: 14px;
	border-radius: 999px;
	background: var(--fk-border);
	overflow: hidden;
}

.alcider-fk .fk-bar-fill {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	transition: width 1s cubic-bezier(.16, 1, .3, 1);
}

.alcider-fk .fk-bar-row--gypsum .fk-bar-fill {
	background: var(--fk-gypsum);
}

.alcider-fk .fk-bar-row--heavy .fk-bar-fill {
	background: var(--fk-heavy);
}

.alcider-fk .fk-bar-detail {
	margin: 6px 0 0;
	font-size: .78em;
	color: var(--fk-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
}

.alcider-fk .fk-bar-meta {
	font-weight: 600;
	color: var(--fk-text);
}

.alcider-fk .fk-footnote {
	margin: 28px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--fk-border);
	font-size: .8em;
	color: var(--fk-muted);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 760px) {
	.alcider-fk {
		padding: 24px;
		border-radius: 14px;
	}

	.alcider-fk .fk-bar-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.alcider-fk .fk-calc-row,
	.alcider-fk .fk-result-cards {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------
   Hareket azaltma tercihi
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.alcider-fk .fk-bar-row,
	.alcider-fk .fk-bar-fill {
		transition: none;
	}
}
