/* Acres to Square Feet Calculator — Teal & Navy theme */

.atsf-widget {
	--atsf-navy-950: #0a1120;
	--atsf-navy-900: #0f172a;
	--atsf-navy-850: #131f36;
	--atsf-navy-800: #16223b;
	--atsf-navy-700: #1e2c4a;
	--atsf-teal-300: #5eead4;
	--atsf-teal-400: #2dd4bf;
	--atsf-teal-500: #14b8a6;
	--atsf-teal-600: #0d9488;
	--atsf-text-soft: #94a3b8;
	--atsf-text-faint: #4c5c7a;

	max-width: 460px;
	margin: 2rem auto;
	padding: 2rem 1.75rem 1.75rem;
	border-radius: 22px;
	background: linear-gradient(160deg, var(--atsf-navy-900) 0%, var(--atsf-navy-950) 100%);
	box-shadow:
		0 20px 45px -15px rgba(10, 17, 32, 0.55),
		0 0 0 1px rgba(45, 212, 191, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.atsf-widget *,
.atsf-widget *::before,
.atsf-widget *::after {
	box-sizing: border-box;
}

.atsf-widget::before {
	content: "";
	position: absolute;
	top: -60%;
	left: 50%;
	width: 140%;
	height: 140%;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(45, 212, 191, 0.14) 0%, rgba(45, 212, 191, 0) 60%);
	pointer-events: none;
}

.atsf-header {
	text-align: center;
	margin-bottom: 1.5rem;
	position: relative;
}

.atsf-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--atsf-teal-300);
	text-transform: uppercase;
}

.atsf-title {
	margin: 0.35rem 0 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: #f1f5f9;
	letter-spacing: -0.01em;
}

/* ---------- Converter ---------- */

.atsf-converter {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: 0.6rem;
}

.atsf-field {
	display: flex;
	flex-direction: column;
}

.atsf-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--atsf-teal-300);
	margin-bottom: 0.4rem;
}

.atsf-input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	border: 1px solid rgba(94, 234, 212, 0.18);
	background: var(--atsf-navy-800);
	color: #f1f5f9;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.atsf-input::placeholder {
	color: #506080;
	font-weight: 500;
}

.atsf-input:focus {
	border-color: var(--atsf-teal-400);
	box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.atsf-equals {
	padding-bottom: 0.75rem;
	color: var(--atsf-teal-400);
}

.atsf-equals svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
}

/* ---------- Samples ---------- */

.atsf-samples {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1.1rem;
}

.atsf-chip {
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(94, 234, 212, 0.18);
	background: var(--atsf-navy-800);
	color: var(--atsf-teal-300);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.atsf-chip:hover {
	background: var(--atsf-navy-700);
	border-color: rgba(94, 234, 212, 0.4);
}

/* ---------- Conversion grid ---------- */

.atsf-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.55rem;
	margin-top: 1.25rem;
}

.atsf-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	padding: 0.8rem 0.4rem;
	border-radius: 12px;
	background: rgba(30, 44, 74, 0.45);
	border: 1px solid rgba(94, 234, 212, 0.15);
	text-align: center;
}

.atsf-cell-label {
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--atsf-text-faint);
}

.atsf-cell-value {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--atsf-teal-300);
	font-variant-numeric: tabular-nums;
	word-break: break-word;
}

/* ---------- Note ---------- */

.atsf-note {
	margin: 1.1rem 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--atsf-text-faint);
	text-align: center;
}

@media (max-width: 420px) {
	.atsf-converter {
		grid-template-columns: 1fr;
	}
	.atsf-equals {
		justify-self: center;
		padding: 0.25rem 0;
	}
	.atsf-equals svg {
		transform: rotate(90deg);
	}
	.atsf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
