/**
 * assets/css/infinite-scroll.css
 *
 * Smooth, modern loading animations and end-of-feed markers for Infinite Scroll.
 */

.ifja-infinite-scroll-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 0 2rem;
	width: 100%;
	text-align: center;
	min-height: 56px;
}

.ifja-infinite-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 0.75rem 1.5rem;
	background: #ffffff;
	border: 1px solid var(--ifja-border, #e2e8f0);
	border-radius: 9999px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
	color: #0f3e6d;
	font-weight: 700;
	font-size: 0.875rem;
	animation: ifja-fade-in 0.2s ease-in-out;
}

.ifja-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(15, 62, 109, 0.2);
	border-top-color: #0f3e6d;
	border-radius: 50%;
	animation: ifja-spin 0.75s linear infinite;
}

@keyframes ifja-spin {
	to { transform: rotate(360deg); }
}

@keyframes ifja-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.ifja-btn--load-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.75rem;
	background-color: #0f3e6d;
	color: #ffffff !important;
	border: 2px solid #0f3e6d;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s ease-in-out;
	box-shadow: 0 2px 6px rgba(15, 62, 109, 0.25);
}

.ifja-btn--load-more:hover,
.ifja-btn--load-more:focus-visible {
	background-color: #1e5c99;
	border-color: #1e5c99;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 62, 109, 0.35);
}

.ifja-infinite-end {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.25rem;
	background: #f8fafc;
	border: 1px dashed var(--ifja-border, #cbd5e1);
	border-radius: 8px;
	color: #64748b;
	font-size: 0.8125rem;
	font-weight: 600;
}
