/* Astro Moon Phases — front-end styles */

.astromoon {
	--am-bg-1: #0b1026;
	--am-bg-2: #05060f;
	--am-fg: #eef2ff;
	--am-muted: #9aa6c9;
	--am-accent: #cdd7ff;
	--am-border: rgba(255, 255, 255, 0.08);
	--am-glow: rgba(220, 230, 255, 0.45);

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	max-width: 420px;
	margin: 0 auto;
	padding: 30px 28px 26px;
	border-radius: 20px;
	background: radial-gradient(120% 120% at 50% 0%, var(--am-bg-1) 0%, var(--am-bg-2) 70%);
	color: var(--am-fg);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.45;
	text-align: center;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.astromoon * {
	box-sizing: border-box;
}

.astromoon--light {
	--am-bg-1: #eef2fb;
	--am-bg-2: #dde4f3;
	--am-fg: #1a2238;
	--am-muted: #5b6688;
	--am-accent: #2b3a78;
	--am-border: rgba(20, 30, 60, 0.1);
	--am-glow: rgba(120, 140, 200, 0.4);
	box-shadow: 0 14px 36px rgba(40, 60, 110, 0.18);
}

.astromoon__visual {
	position: relative;
	flex: 0 0 auto;
	border-radius: 50%;
}

.astromoon__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	filter: drop-shadow(0 0 18px var(--am-glow));
}

.astromoon__shadow {
	transition: d 0.6s ease;
}

.astromoon__rim {
	stroke: rgba(255, 255, 255, 0.12);
	stroke-width: 0.5;
}

.astromoon--light .astromoon__rim {
	stroke: rgba(20, 30, 60, 0.15);
}

.astromoon .astromoon__data {
	width: 100%;
}

.astromoon .astromoon__phase {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 16px;
	padding: 0;
	color: var(--am-fg);
	text-wrap: balance;
}

/* Full-width rows: label left, value right. High-specificity selectors so
   theme widget styles (e.g. .widget li) can't override the layout. */
.astromoon .astromoon__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
	border-top: 1px solid var(--am-border);
}

.astromoon .astromoon__stats li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 18px;
	margin: 0;
	padding: 11px 2px;
	border-bottom: 1px solid var(--am-border);
	list-style: none;
	background: none;
	text-indent: 0;
}

.astromoon .astromoon__stats li::before,
.astromoon .astromoon__stats li::marker {
	content: none;
}

.astromoon .astromoon__stats li span {
	flex: 0 1 auto;
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	line-height: 1.3;
	color: var(--am-muted);
	text-align: left;
}

.astromoon .astromoon__stats li b {
	flex: 0 0 auto;
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--am-accent);
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}
