/**
 * WP Pagination Buttons Stylesheet
 *
 * Scoped styles for rectangular pagination buttons with customizable corner radius,
 * shadow controls, dual-tone color schemes, universal ad network containers,
 * policy-compliant advertising labels, and responsive mobile layouts.
 */

:root {
	--wpb-next-bg: #f26522;
	--wpb-next-text: #ffffff;
	--wpb-prev-bg: #132b4a;
	--wpb-prev-text: #ffffff;
	--wpb-label-color: #1f2937;
}

/* Suppress default theme pagination links on paginated posts */
.wpb-has-pagination .page-links,
.wpb-has-pagination .post-nav-links {
	display: none !important;
}

/* Main pagination container (clean, no borders, no background) */
.wpb-pagination {
	margin: 32px 0 24px 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	clear: both;
	width: 100%;
	box-sizing: border-box;
}

/* Pagination label (left-aligned, clean typography) */
.wpb-pagination__label {
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	margin: 0 0 16px 0;
	color: var(--wpb-label-color, #1f2937);
	line-height: 1.4;
}

/* Flex row buttons container */
.wpb-pagination__buttons {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

/* Base button styles: rectangular card with soft rounded corners */
.wpb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0%;
	min-width: 0;
	border: none;
	font-weight: 700;
	text-decoration: none !important;
	text-align: center;
	line-height: 1.25;
	letter-spacing: 0.02em;
	box-sizing: border-box;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

/* Corner radius shape options */
.wpb-pagination--radius-soft .wpb-button {
	border-radius: 6px;
}

.wpb-pagination--radius-pill .wpb-button {
	border-radius: 999px;
}

.wpb-pagination--radius-square .wpb-button {
	border-radius: 0;
}

/* Elevation shadow options */
.wpb-pagination--shadow .wpb-button {
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wpb-pagination--no-shadow .wpb-button {
	box-shadow: none !important;
}

/* Next button (Vibrant Orange) */
.wpb-button--next {
	background-color: var(--wpb-next-bg, #f26522);
	color: var(--wpb-next-text, #ffffff) !important;
}

.wpb-button--next:hover {
	filter: brightness(0.92);
	transform: translateY(-1px);
	color: var(--wpb-next-text, #ffffff) !important;
	text-decoration: none !important;
}

.wpb-pagination--shadow .wpb-button--next:hover {
	box-shadow: 0 6px 14px rgba(242, 101, 34, 0.35);
}

.wpb-button--next:active {
	filter: brightness(0.88);
	transform: translateY(0);
}

.wpb-button--next:focus-visible {
	outline: 3px solid var(--wpb-next-bg, #f26522);
	outline-offset: 3px;
}

/* Previous button (Dark Navy Blue) */
.wpb-button--prev {
	background-color: var(--wpb-prev-bg, #132b4a);
	color: var(--wpb-prev-text, #ffffff) !important;
}

.wpb-button--prev:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
	color: var(--wpb-prev-text, #ffffff) !important;
	text-decoration: none !important;
}

.wpb-pagination--shadow .wpb-button--prev:hover {
	box-shadow: 0 6px 14px rgba(19, 43, 74, 0.35);
}

.wpb-button--prev:active {
	filter: brightness(0.9);
	transform: translateY(0);
}

.wpb-button--prev:focus-visible {
	outline: 3px solid var(--wpb-prev-bg, #132b4a);
	outline-offset: 3px;
}

/* Size modifiers */
.wpb-pagination--small .wpb-button,
.wpb-button--small {
	min-height: 42px;
	padding: 10px 20px;
	font-size: 14px;
}

.wpb-pagination--medium .wpb-button,
.wpb-button--medium {
	min-height: 52px;
	padding: 14px 28px;
	font-size: 16px;
}

.wpb-pagination--large .wpb-button,
.wpb-button--large {
	min-height: 60px;
	padding: 18px 36px;
	font-size: 18px;
}

/* Responsive layout: stack buttons vertically at 600px and below with Next on top */
@media (max-width: 600px) {
	.wpb-pagination__buttons {
		flex-direction: column-reverse;
		gap: 12px;
		width: 100%;
	}

	.wpb-button {
		width: 100%;
		flex: none;
	}
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.wpb-button {
		transition: none;
		transform: none !important;
	}

	.wpb-button:hover,
	.wpb-button:active,
	.wpb-button:focus-visible {
		transform: none !important;
	}
}

/* Ad slots styling */
.wpb-ad {
	margin: 28px auto;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
	clear: both;
}

/* Policy-compliant ADVERTISING label with horizontal subtle divider lines */
.wpb-ad__label {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #94a3b8;
	margin-bottom: 12px;
}

.wpb-ad__label::before,
.wpb-ad__label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8f0;
	margin: 0 14px;
}

.wpb-ad__content {
	display: block;
	max-width: 100%;
	overflow: hidden;
	margin: 0 auto;
}

.wpb-ad ins,
.wpb-ad iframe,
.wpb-ad img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}
