/* Smart Pager – Frontend Styles */

/* =====================================================
   BASE
   ===================================================== */
.smart-pager {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 32px 0;
	font-family: inherit;
}

.sp-list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
	align-items: center;
	justify-content: center;
}

.sp-item {
	margin: 0;
	padding: 0;
}

.sp-item a,
.sp-item span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-radius: 4px;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	cursor: pointer;
}

.sp-item a:hover {
	background: #f0f0f0;
	border-color: #bbb;
}

.sp-item.sp-current span {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

.sp-item.sp-dots span {
	border: none;
	background: transparent;
	cursor: default;
}

/* =====================================================
   STYLE: ROUNDED
   ===================================================== */
.sp-style-rounded .sp-item a,
.sp-style-rounded .sp-item span {
	border-radius: 50px;
}

/* =====================================================
   STYLE: MINIMAL
   ===================================================== */
.sp-style-minimal .sp-item a,
.sp-style-minimal .sp-item span {
	border: none;
	background: transparent;
}

.sp-style-minimal .sp-item a:hover {
	background: #f5f5f5;
}

.sp-style-minimal .sp-item.sp-current span {
	background: #0073aa;
	color: #fff;
	border-radius: 4px;
}

/* =====================================================
   STYLE: DOTS
   ===================================================== */
.sp-style-dots .sp-item a,
.sp-style-dots .sp-item span {
	border-radius: 50%;
	width: 38px;
	min-width: 38px;
	padding: 0;
}

/* =====================================================
   STYLE: FLAT
   ===================================================== */
.sp-style-flat .sp-item a,
.sp-style-flat .sp-item span {
	border-radius: 0;
}

.sp-style-flat .sp-list {
	gap: 0;
}

.sp-style-flat .sp-item:not(:last-child) a,
.sp-style-flat .sp-item:not(:last-child) span {
	border-right: none;
}

/* =====================================================
   LOAD MORE BUTTON
   ===================================================== */
.sp-load-more-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.sp-load-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 28px;
	font-size: 15px;
	font-weight: 600;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.sp-load-more-btn:hover {
	background: #005f8d;
}

.sp-load-more-btn:active {
	transform: scale(0.98);
}

.sp-load-more-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* =====================================================
   SPINNER
   ===================================================== */
.sp-lm-spinner,
.sp-ajax-spinner {
	display: inline-block;
	width: 22px;
	height: 22px;
	border: 3px solid #ddd;
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: sp-spin 0.7s linear infinite;
}

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

/* =====================================================
   AJAX FADE
   ===================================================== */
.sp-ajax-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 480px) {
	.sp-item a,
	.sp-item span {
		min-width: 34px;
		height: 34px;
		font-size: 13px;
	}
}
