/* calculator.css — Interactive Conversion & Energy Cost Calculators */

.ev-calculator-page {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

/* ── Interactive Calculator Widget Card ───────────────── */
.ev-calculator {
	background: #ffffff;
	border: 1px solid var(--ev-border, #e2e8f0);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	padding: 28px;
	margin-bottom: 36px;
	position: relative;
	overflow: hidden;
}

.ev-calculator::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ev-green, #00875a), var(--ev-orange, #ea580c));
}

.ev-calculator__header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.ev-calc-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: var(--ev-green-light, #e6f4ee);
	color: var(--ev-green, #00875a);
	font-weight: 700;
	font-size: 0.88rem;
	border-radius: 20px;
	border: 1px solid rgba(0, 135, 90, 0.15);
}

.ev-copy-btn {
	background: #ffffff;
	border: 1px solid var(--ev-border, #cbd5e1);
	color: var(--ev-slate, #475569);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ev-copy-btn:hover {
	border-color: var(--ev-green, #00875a);
	color: var(--ev-green, #00875a);
	background: #f8fafc;
}

.ev-copy-btn--copied {
	background: var(--ev-green, #00875a) !important;
	color: #ffffff !important;
	border-color: var(--ev-green, #00875a) !important;
}

/* ── Calculator Inputs Grid ──────────────────────────── */
.ev-calculator__inputs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
}

.ev-calculator__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ev-calculator__label {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ev-navy, #0f172a);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ev-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.ev-calculator__input {
	width: 100%;
	font-size: 1.6rem;
	font-weight: 800;
	font-family: inherit;
	color: var(--ev-navy, #0f172a);
	background: #f8fafc;
	border: 2px solid var(--ev-border, #cbd5e1);
	border-radius: 12px;
	padding: 14px 60px 14px 18px;
	outline: 2px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ev-calculator__input:focus-visible {
	border-color: var(--ev-green, #00875a);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.12);
	outline-color: var(--ev-green, #00875a);
	outline-offset: 2px;
}

.ev-calculator__input--result {
	background: var(--ev-green-light, #e6f4ee);
	border-color: rgba(0, 135, 90, 0.3);
	color: var(--ev-green, #00875a);
	cursor: default;
}

.ev-input-suffix {
	position: absolute;
	right: 18px;
	font-weight: 700;
	font-size: 1rem;
	color: var(--ev-slate, #64748b);
	pointer-events: none;
}

.ev-input-wrapper--result .ev-input-suffix {
	color: var(--ev-green, #00875a);
}

.ev-calculator__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #f1f5f9;
	border-radius: 50%;
	color: var(--ev-slate, #475569);
	margin-top: 24px;
}

/* ── Preset Buttons ──────────────────────────────────── */
.ev-calculator__presets {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--ev-border, #f1f5f9);
}

.ev-presets-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ev-slate, #64748b);
	margin-right: 4px;
}

.ev-preset-pill {
	background: #f1f5f9;
	border: 1px solid transparent;
	color: var(--ev-navy, #0f172a);
	font-size: 0.84rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ev-preset-pill:hover,
.ev-preset-pill:focus-visible {
	background: var(--ev-green-light, #e6f4ee);
	color: var(--ev-green, #00875a);
	border-color: var(--ev-green, #00875a);
	outline: 2px solid var(--ev-green, #00875a);
	outline-offset: 2px;
}

/* ── SEO Conversion Table ────────────────────────────── */
.ev-calc-table-section {
	margin-bottom: 36px;
}

.ev-table-responsive {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid var(--ev-border, #e2e8f0);
}

.ev-calc-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.ev-calc-table thead th {
	background: #f8fafc;
	color: var(--ev-navy, #0f172a);
	font-weight: 700;
	font-size: 0.9rem;
	padding: 14px 18px;
	text-align: left;
	border-bottom: 2px solid var(--ev-border, #e2e8f0);
}

.ev-calc-table tbody tr {
	border-bottom: 1px solid var(--ev-border, #f1f5f9);
	transition: background 0.1s ease;
}

.ev-calc-table tbody tr:hover {
	background: #f8fafc;
}

.ev-calc-table tbody td {
	padding: 12px 18px;
	font-size: 0.95rem;
	color: var(--ev-navy, #0f172a);
}

.ev-table-highlight {
	color: var(--ev-green, #00875a) !important;
	font-weight: 700;
}

.ev-table-dimmed {
	color: var(--ev-slate, #94a3b8);
	font-size: 0.85rem;
}

/* ── Related Calculators Grid ────────────────────────── */
.ev-calc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.ev-calculator-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	background: #ffffff;
	border: 1px solid var(--ev-border, #e2e8f0);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ev-calculator-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	border-color: var(--ev-green, #00875a);
}

.ev-calculator-card__icon {
	color: var(--ev-green, #00875a);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ev-green-light, #e6f4ee);
	width: 40px;
	height: 40px;
	border-radius: 10px;
	flex-shrink: 0;
}

.ev-calculator-card__title {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--ev-navy, #0f172a);
	flex-grow: 1;
}

.ev-calculator-card__arrow {
	color: var(--ev-slate, #94a3b8);
	font-size: 1.1rem;
	transition: transform 0.15s ease, color 0.15s ease;
}

.ev-calculator-card:hover .ev-calculator-card__arrow {
	transform: translateX(3px);
	color: var(--ev-green, #00875a);
}

/* ── Mobile Optimization ─────────────────────────────── */
@media (max-width: 640px) {
	.ev-calculator__inputs {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ev-calculator__arrow {
		margin: 0 auto;
		transform: rotate(90deg);
	}

	.ev-calculator {
		padding: 20px 16px;
	}

	.ev-calculator__input {
		font-size: 1.3rem;
		padding: 12px 50px 12px 14px;
	}
}
