/* Astro Image — front-end styles */

.astroimg {
	--ai-fg: #eef2ff;
	--ai-muted: #9aa6c9;
	--ai-glow: rgba(0, 0, 0, 0.45);

	box-sizing: border-box;
	margin: 0 auto;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

.astroimg--light {
	--ai-fg: #1a2238;
	--ai-muted: #5b6688;
	--ai-glow: rgba(40, 60, 110, 0.22);
}

.astroimg .astroimg__figure {
	margin: 0;
	padding: 0;
}

.astroimg .astroimg__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.astroimg .astroimg__frame {
	position: relative;
	display: block;
	line-height: 0;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 14px 36px var(--ai-glow);
}

.astroimg.is-rounded .astroimg__frame {
	border-radius: 14px;
}

.astroimg .astroimg__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	max-width: 100%;
}

/* LIVE badge */
.astroimg .astroimg__live {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 999px;
	line-height: 1;
}

.astroimg .astroimg__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff4d4d;
	box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
	animation: astroimg-pulse 1.8s ease-out infinite;
}

@keyframes astroimg-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
	70% { box-shadow: 0 0 0 7px rgba(255, 77, 77, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.astroimg .astroimg__dot { animation: none; }
}

/* Caption row */
.astroimg .astroimg__caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-top: 10px;
	color: var(--ai-muted);
}

.astroimg .astroimg__caption-text {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--ai-fg);
}

.astroimg .astroimg__ts {
	font-size: 0.74rem;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	color: var(--ai-muted);
}

.astroimg .astroimg__empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--ai-muted);
	font-size: 0.9rem;
	border: 1px dashed rgba(140, 150, 180, 0.4);
	border-radius: 12px;
}
