/**
 * Swapr final polish CSS starter
 * Shared loading, empty, error, validation states
 */

.swapr-skeleton-card {
	display: flex;
	gap: 12px;
	padding: 12px;
	border-radius: 16px;
	background: #202634;
	animation: swaprPulse 1.2s ease-in-out infinite;
}

.swapr-skeleton-image {
	width: 72px;
	height: 98px;
	border-radius: 10px;
	background: rgba(255,255,255,0.08);
	flex: 0 0 auto;
}

.swapr-skeleton-lines {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	justify-content: center;
}

.swapr-skeleton-line {
	height: 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	width: 70%;
}

.swapr-skeleton-line.is-wide {
	width: 92%;
}

.swapr-skeleton-line.is-short {
	width: 46%;
}

.swapr-empty-state,
.swapr-inline-error {
	padding: 18px;
	border-radius: 16px;
	background: #202634;
	border: 1px solid rgba(255,255,255,0.06);
}

.swapr-inline-error {
	border-color: rgba(255,110,110,0.24);
}

.swapr-empty-state-title,
.swapr-inline-error-title {
	font-weight: 700;
	margin-bottom: 6px;
}

.swapr-empty-state-copy,
.swapr-inline-error-copy {
	font-size: 13px;
	opacity: 0.8;
}

.swapr-field-error {
	margin-top: 6px;
	font-size: 12px;
	color: #ffb4b4;
}

.swapr-input.is-invalid {
	border-color: rgba(255,110,110,0.5);
	box-shadow: 0 0 0 1px rgba(255,110,110,0.3) inset;
}

.swapr-button.is-busy,
.swapr-text-button.is-busy {
	opacity: 0.65;
	pointer-events: none;
}

.swapr-panel.is-loading {
	opacity: 0.9;
}

@keyframes swaprPulse {
	0%, 100% { opacity: 0.82; }
	50% { opacity: 1; }
}
