/**
 * ALÇIDER Bina Hesaplayıcı — stiller.
 * Tüm seçiciler .alcider-calc 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-calc {
	--bkk-font: inherit;
	--bkk-accent: var(--wp--preset--color--primary, #2E5BBA);
	--bkk-text: var(--wp--preset--color--foreground, #1C2530);
	--bkk-muted: #5A6573;
	--bkk-surface: var(--wp--preset--color--base, #FBF9F3);
	--bkk-border: rgba(0, 0, 0, .10);
	--bkk-positive: #1F8A6D;
	--bkk-heavy: #B85C38;

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

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

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

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

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

.alcider-calc .bkk-desc {
	margin: 0 0 28px;
	font-size: inherit;
	line-height: 1.6;
	color: var(--bkk-muted);
	max-width: 60ch;
}

/* ---------------------------------------------------------
   Düzen
   --------------------------------------------------------- */

.alcider-calc .bkk-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 36px;
	align-items: start;
}

/* ---------------------------------------------------------
   Girdiler (slider'lar)
   --------------------------------------------------------- */

.alcider-calc .bkk-inputs {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

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

.alcider-calc .bkk-field-head label {
	font-size: .92em;
	font-weight: 600;
	color: var(--bkk-text);
}

.alcider-calc .bkk-field-value {
	font-family: var(--bkk-font);
	font-weight: 700;
	font-size: .95em;
	color: var(--bkk-accent);
	min-width: 1.5em;
	text-align: right;
}

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

.alcider-calc input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--bkk-accent) var(--bkk-fill, 0%), var(--bkk-border) var(--bkk-fill, 0%));
}

.alcider-calc 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(--bkk-accent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}

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

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

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

.alcider-calc input[type="range"]:focus-visible::-webkit-slider-thumb,
.alcider-calc input[type="range"]:focus-visible::-moz-range-thumb {
	outline: 2px solid var(--bkk-accent);
	outline-offset: 2px;
}

.alcider-calc .bkk-total-area {
	margin: 6px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--bkk-border);
	font-size: inherit;
	color: var(--bkk-muted);
}

.alcider-calc .bkk-total-area strong {
	color: var(--bkk-text);
	font-weight: 700;
}

/* ---------------------------------------------------------
   Sonuçlar
   --------------------------------------------------------- */

.alcider-calc .bkk-results {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.alcider-calc .bkk-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.alcider-calc .bkk-card {
	padding: 20px;
	border-radius: 14px;
	color: #fff;
}

.alcider-calc .bkk-card--positive {
	background: var(--bkk-positive);
}

.alcider-calc .bkk-card--accent {
	background: var(--bkk-accent);
}

.alcider-calc .bkk-card-label {
	display: block;
	font-size: .8em;
	font-weight: 600;
	letter-spacing: .02em;
	opacity: .9;
	margin-bottom: 8px;
}

.alcider-calc .bkk-card-value {
	display: block;
	font-size: 1.6em;
	font-weight: 800;
	line-height: 1.1;
}

/* Karşılaştırma barı */

.alcider-calc .bkk-compare {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.alcider-calc .bkk-compare-row {
	display: grid;
	grid-template-columns: 96px 1fr 84px;
	align-items: center;
	gap: 10px;
}

.alcider-calc .bkk-compare-label {
	font-size: .85em;
	color: var(--bkk-muted);
}

.alcider-calc .bkk-compare-track {
	height: 10px;
	border-radius: 999px;
	background: var(--bkk-border);
	overflow: hidden;
}

.alcider-calc .bkk-compare-bar {
	height: 100%;
	border-radius: 999px;
	width: 0%;
	transition: width .6s ease;
}

.alcider-calc .bkk-compare-bar--heavy {
	background: var(--bkk-heavy);
	width: 100%;
}

.alcider-calc .bkk-compare-bar--light {
	background: var(--bkk-positive);
}

.alcider-calc .bkk-compare-num {
	font-size: .82em;
	font-weight: 600;
	color: var(--bkk-text);
	text-align: right;
}

/* Bina silüeti */

.alcider-calc .bkk-building-wrap {
	display: flex;
	justify-content: center;
	padding: 8px 0;
}

.alcider-calc .bkk-building {
	position: relative;
	transition: transform .6s ease;
}

.alcider-calc .bkk-building-svg {
	width: 90px;
	height: 120px;
	display: block;
}

.alcider-calc .bkk-lighter-badge {
	position: absolute;
	top: -6px;
	right: -14px;
	background: var(--bkk-positive);
	color: #fff;
	font-size: .72em;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .4s ease, transform .4s ease;
	white-space: nowrap;
}

.alcider-calc .bkk-lighter-badge.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Otomobil eşdeğeri */

.alcider-calc .bkk-cars {
	text-align: center;
}

.alcider-calc .bkk-cars-text {
	margin: 0 0 12px;
	font-size: inherit;
	color: var(--bkk-muted);
}

.alcider-calc .bkk-cars-text strong {
	color: var(--bkk-text);
	font-weight: 700;
}

.alcider-calc .bkk-cars-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	min-height: 20px;
}

.alcider-calc .bkk-car-icon {
	display: inline-flex;
	width: 32px;
	height: 16px;
	opacity: 0;
	transform: scale(.6);
	animation: bkk-car-in .35s ease forwards;
}

.alcider-calc .bkk-car-icon svg {
	width: 100%;
	height: 100%;
}

.alcider-calc .bkk-car-extra {
	display: inline-flex;
	align-items: center;
	font-size: .82em;
	font-weight: 700;
	color: var(--bkk-muted);
	padding: 0 4px;
}

@keyframes bkk-car-in {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

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

/* ---------------------------------------------------------
   Responsive (<760px: kartlar ve sliderlar alt alta)
   --------------------------------------------------------- */

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

	.alcider-calc .bkk-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.alcider-calc .bkk-cards {
		grid-template-columns: 1fr;
	}

	.alcider-calc .bkk-compare-row {
		grid-template-columns: 78px 1fr 72px;
	}

	.alcider-calc input[type="range"] {
		height: 28px;
	}

	.alcider-calc input[type="range"]::-webkit-slider-thumb {
		width: 24px;
		height: 24px;
		margin-top: -9px;
	}

	.alcider-calc input[type="range"]::-moz-range-thumb {
		width: 24px;
		height: 24px;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.alcider-calc .bkk-compare-bar,
	.alcider-calc .bkk-building,
	.alcider-calc .bkk-lighter-badge {
		transition: none;
	}

	.alcider-calc .bkk-car-icon {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
