/**
 * Ana sayfa — "Hesaplama Araçları" bölümü (hızlı maliyet tahmini).
 * Yalnızca front-page.php'de yüklenir. Tüm seçiciler .hc- ön eklidir.
 * Mobil öncelikli.
 */

.hc-section {
	--hc-ink: #0A0D14;
	--hc-amber: var(--brand-primary, #F5A623);
	--hc-amber-2: var(--brand-primary-hover, #DC8F12);
	--hc-line: rgba(255, 255, 255, 0.1);
	--hc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--hc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 56px 0;
	background: var(--hc-ink);
	color: rgba(255, 255, 255, 0.74);
}

.hc-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.hc-orb {
	position: absolute;
	right: -160px;
	top: -160px;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 166, 35, 0.45), transparent 70%);
	filter: blur(30px);
	animation: hcFloat 14s ease-in-out infinite;
}

.hc-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 80%);
}

.hc-inner {
	display: grid;
	gap: 28px;
	align-items: center;
}

.hc-title {
	margin: 10px 0 12px;
	font-family: var(--font-display, sans-serif);
	font-size: clamp(1.65rem, 6.2vw, 2.5rem);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: #FFF;
}

.hc-title span {
	color: var(--hc-amber);
}

.hc-desc {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	max-width: 520px;
}

.hc-feats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.86rem;
}

.hc-feats li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.hc-feats svg {
	width: 16px;
	height: 16px;
	color: var(--hc-amber);
}

.hc-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.hc-links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--hc-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: #FFF;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 200ms, background 200ms, transform 150ms;
}

.hc-links a svg {
	width: 15px;
	height: 15px;
	color: var(--hc-amber);
}

.hc-links a:hover {
	border-color: rgba(245, 166, 35, 0.6);
	background: rgba(245, 166, 35, 0.1);
	transform: translateY(-1px);
}

/* ---------------- Mini hesaplayıcı ---------------- */
.hc-calc {
	position: relative;
	padding: 18px;
	border-radius: 22px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
	border: 1px solid var(--hc-line);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hc-calc::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	padding: 1px;
	background: conic-gradient(from var(--hc-angle, 0deg), transparent 0 70%, rgba(245, 166, 35, 0.85) 80%, transparent 90%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: hcSpin 6s linear infinite;
}

@property --hc-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

.hc-calc-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.hc-calc-head b {
	display: block;
	font-family: var(--font-display, sans-serif);
	font-size: 1.05rem;
	font-weight: 900;
	color: #FFF;
}

.hc-calc-head small {
	display: block;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.55);
}

.hc-calc-ic {
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, #FFD27A, var(--hc-amber));
	color: var(--hc-ink);
}

.hc-calc-ic svg {
	width: 20px;
	height: 20px;
}

.hc-live {
	position: relative;
	margin-left: auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #34D399;
}

.hc-live::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid #34D399;
	animation: hcPing 1.8s infinite;
}

.hc-calc.is-busy .hc-live,
.hc-calc.is-busy .hc-live::after {
	background: var(--hc-amber);
	border-color: var(--hc-amber);
}

.hc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.hc-field + .hc-row,
.hc-row + .hc-result {
	margin-top: 16px;
}

.hc-label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.72);
}

.hc-label output {
	font-family: var(--font-display, sans-serif);
	font-size: 1.05rem;
	font-weight: 900;
	color: #FFF;
	font-variant-numeric: tabular-nums;
}

/* Kaydırıcı */
.hc-field input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 32px;
	background: transparent;
	cursor: pointer;
	touch-action: pan-y;
}

.hc-field input[type="range"]::-webkit-slider-runnable-track {
	height: 8px;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--hc-amber) var(--p, 16%), rgba(255, 255, 255, 0.12) var(--p, 16%));
}

.hc-field input[type="range"]::-moz-range-track {
	height: 8px;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--hc-amber) var(--p, 16%), rgba(255, 255, 255, 0.12) var(--p, 16%));
}

.hc-field input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 28px;
	height: 28px;
	margin-top: -10px;
	border-radius: 50%;
	background: #FFF;
	border: 6px solid var(--hc-amber);
	box-shadow: 0 6px 16px -4px rgba(245, 166, 35, 0.7);
	transition: transform 150ms;
}

.hc-field input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #FFF;
	border: 6px solid var(--hc-amber);
}

.hc-field input[type="range"]:active::-webkit-slider-thumb {
	transform: scale(1.15);
}

.hc-field input[type="range"]:focus-visible {
	outline: 2px solid var(--hc-amber);
	outline-offset: 4px;
	border-radius: 8px;
}

.hc-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

@media (min-width: 420px) {
	.hc-row {
		grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
		gap: 12px;
	}
}

/* Kat adımlayıcı */
.hc-step {
	display: flex;
	align-items: stretch;
	height: 48px;
	border-radius: 12px;
	border: 1px solid var(--hc-line);
	background: rgba(255, 255, 255, 0.05);
	overflow: hidden;
}

.hc-step button {
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: #FFF;
	cursor: pointer;
	touch-action: manipulation;
	transition: background 150ms;
}

.hc-step button:active {
	background: rgba(245, 166, 35, 0.2);
}

.hc-step button svg {
	width: 18px;
	height: 18px;
}

.hc-step output {
	flex: 1;
	display: grid;
	place-items: center;
	font-family: var(--font-display, sans-serif);
	font-size: 1.15rem;
	font-weight: 900;
	color: #FFF;
}

/* Kalite segmenti */
.hc-seg {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3px;
	height: 48px;
	padding: 3px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
}

.hc-seg button {
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 220ms, color 220ms, transform 150ms;
}

.hc-seg button.is-on {
	background: #FFF;
	color: var(--hc-ink);
}

.hc-seg button:active {
	transform: scale(0.96);
}

/* Sonuç */
.hc-result {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--hc-line);
}

.hc-r-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
}

.hc-r-val {
	font-family: var(--font-display, sans-serif);
	font-size: clamp(1.9rem, 9vw, 2.5rem);
	font-weight: 900;
	line-height: 1.1;
	color: var(--hc-amber);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.hc-r-sub {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.6);
	font-variant-numeric: tabular-nums;
}

.hc-r-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	overflow: hidden;
	opacity: 0;
	transition: opacity 200ms;
}

.hc-r-bar span {
	position: absolute;
	inset: 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, var(--hc-amber), transparent);
	animation: hcSlide 900ms linear infinite;
}

.hc-calc.is-busy .hc-r-bar {
	opacity: 1;
}

.hc-r-val.hc-bump {
	animation: hcBump 300ms var(--hc-ease);
}

/* Ana düğme */
.hc-cta {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	margin-top: 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, #FFD27A, var(--hc-amber) 55%, #E8920F);
	color: var(--hc-ink);
	font-family: var(--font-display, sans-serif);
	font-size: 0.95rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 16px 34px -14px rgba(245, 166, 35, 0.95);
	transition: transform 200ms var(--hc-ease), box-shadow 200ms;
}

.hc-cta::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-18deg);
	animation: hcSheen 3.6s 1s ease-in-out infinite;
}

.hc-cta svg {
	width: 20px;
	height: 20px;
	transition: transform 220ms var(--hc-ease);
}

.hc-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 40px -14px rgba(245, 166, 35, 1);
}

.hc-cta:hover svg {
	transform: translateX(4px);
}

.hc-cta:active {
	transform: scale(0.98);
}

.hc-note {
	margin: 10px 2px 0;
	font-size: 0.76rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
}

/* ---------------- Kırılımlar ---------------- */
@media (min-width: 640px) {
	.hc-section {
		padding: 72px 0;
	}

	.hc-calc {
		padding: 24px;
	}
}

@media (min-width: 1024px) {
	.hc-section {
		padding: 96px 0;
	}

	.hc-inner {
		grid-template-columns: 1fr 460px;
		gap: 64px;
	}
}

/* ---------------- Animasyonlar ---------------- */
@keyframes hcFloat { 50% { transform: translate(-30px, 30px) scale(1.06); } }
@keyframes hcSpin { to { --hc-angle: 360deg; } }
@keyframes hcPing { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes hcSlide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes hcBump { 50% { transform: scale(1.04); } }
@keyframes hcSheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
	.hc-section *,
	.hc-section *::before,
	.hc-section *::after {
		animation: none !important;
		transition-duration: 1ms !important;
	}
}
