/* Solid Addons — Time Zone widget */

.solidae-tz {
	--solidae-tz-accent: #38bdf8;
	width: 100%;
}

.solidae-tz__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.solidae-tz__clock {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 8px;
	padding: 24px 20px;
	background: #0f172a;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	box-sizing: border-box;
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.solidae-tz__clock:hover {
	transform: translateY(-2px);
}

/* ── Label ── */
.solidae-tz__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e2e8f0;
	margin-bottom: 2px;
}

/* ── Digital time ── */
.solidae-tz__time {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.05;
	color: #ffffff;
}

.solidae-tz__digits {
	display: inline-block;
	min-width: 1.2ch;
	text-align: center;
}

.solidae-tz__sep {
	opacity: 0.55;
	animation: solidae-tz-blink 1s steps(1) infinite;
}

@keyframes solidae-tz-blink {
	50% {
		opacity: 0.15;
	}
}

.solidae-tz__ampm {
	font-size: 0.42em;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--solidae-tz-accent);
	margin-left: 4px;
	align-self: center;
}

/* ── Date / Day ── */
.solidae-tz__date {
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8;
}

/* ── GMT offset chip ── */
.solidae-tz__offset {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #64748b;
	background: rgba(148, 163, 184, 0.12);
	padding: 3px 10px;
	border-radius: 999px;
	margin-top: 2px;
}

/* ── Analog ── */
.solidae-tz__analog {
	width: 160px;
	height: 160px;
	max-width: 100%;
}

.solidae-tz__svg {
	width: 100%;
	height: 100%;
	display: block;
}

.solidae-tz__face {
	fill: #020617;
	stroke: rgba(148, 163, 184, 0.35);
}

.solidae-tz__tick {
	stroke: rgba(226, 232, 240, 0.6);
}

.solidae-tz__hand {
	transform-origin: 50px 50px;
	transition: transform 0.18s cubic-bezier(0.4, 2.1, 0.55, 0.95);
}

.solidae-tz__hand--hour {
	stroke: #e2e8f0;
}

.solidae-tz__hand--minute {
	stroke: #cbd5e1;
}

.solidae-tz__hand--second {
	stroke: var(--solidae-tz-accent);
}

/* Smooth sweep mode updates every frame, so drop the stepped easing */
.solidae-tz--smooth .solidae-tz__hand {
	transition: none;
}

.solidae-tz__center {
	fill: #e2e8f0;
}

/* ── 24-hour world clock (compact rows) ── */
.solidae-tz--world_clock .solidae-tz__grid {
	grid-template-columns: 1fr;
	gap: 0;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 16px;
	overflow: hidden;
}

.solidae-tz--world_clock .solidae-tz__clock {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	gap: 16px;
	padding: 16px 22px;
	border: 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
	border-radius: 0;
}

.solidae-tz--world_clock .solidae-tz__clock:last-child {
	border-bottom: 0;
}

.solidae-tz--world_clock .solidae-tz__clock:hover {
	transform: none;
}

.solidae-tz--world_clock .solidae-tz__label {
	margin-bottom: 0;
	flex: 1 1 auto;
}

.solidae-tz--world_clock .solidae-tz__time {
	font-size: 26px;
	margin-left: auto;
}

.solidae-tz--world_clock .solidae-tz__offset {
	margin-top: 0;
	min-width: 78px;
	text-align: center;
}

/* ── Editor empty state ── */
.solidae-tz-empty {
	padding: 24px;
	text-align: center;
	color: #64748b;
	border: 1px dashed rgba(148, 163, 184, 0.4);
	border-radius: 12px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.solidae-tz__time {
		font-size: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.solidae-tz__sep,
	.solidae-tz__hand {
		animation: none;
		transition: none;
	}
}
