/**
 * Novel Manager — Chapter Navigation
 *
 * Styling for chapter prev/next/index navigation buttons.
 */

.chapter-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	margin-bottom: 2.5rem;
	max-width: 65ch;
	margin-left: auto;
	margin-right: auto;
}

.chapter-nav .nav-prev {
	flex: 1;
	display: flex;
	justify-content: flex-start;
}

.chapter-nav .nav-index {
	flex: 0 0 auto;
	margin: 0 1rem;
}

.chapter-nav .nav-next {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.chapter-nav a,
.chapter-nav span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid #ccc;
	border-radius: 50px;
	color: #666;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.2s ease;
	text-decoration: none;
	max-width: 100%;
	white-space: nowrap;
}

.chapter-nav a:hover {
	border-color: #c9823a;
	color: #c9823a;
	text-decoration: none;
}

.chapter-nav .nav-index {
	background: #333;
	color: #fff;
	border-color: #333;
}

.chapter-nav .nav-index:hover {
	background: #c9823a;
	border-color: #c9823a;
	color: #fff;
}

.chapter-nav .disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* Responsive */
@media ( max-width: 768px ) {
	.chapter-nav {
		flex-direction: column;
		gap: 0.5rem;
	}

	.chapter-nav a,
	.chapter-nav span {
		width: 100%;
		justify-content: center;
	}

	.chapter-nav .nav-prev,
	.chapter-nav .nav-next,
	.chapter-nav .nav-index {
		flex: 0 0 auto;
		min-width: 0;
		max-width: none;
	}
}
