/* 메인 도서 섹션 — 모던 UI */

.main-best-book--modern {
	padding: 22px 0 24px;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f4f7fb 100%);
	overflow: hidden;
}

.main-best-book--modern .section {
	max-width: 1100px;
	margin: 0 auto;
}

.book-modern-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.book-modern-head__main {
	display: flex;
	align-items: center;
	gap: 28px;
	min-width: 0;
}

.book-modern-head__text {
	flex-shrink: 0;
}

.book-modern-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #0465a6;
}

.book-modern-title {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a1a;
	letter-spacing: -0.03em;
}

.book-modern-subtitle {
	margin: 6px 0 0;
	font-size: 16px;
	color: #6b7280;
	font-weight: 500;
}

.book-modern-more {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-top: 20px;
	height: 33px;
	padding: 0 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #dbe3ec;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.book-modern-more:hover {
	transform: translateY(-2px);
	border-color: #0465a6;
	color: #0465a6;
	box-shadow: 0 8px 20px rgba(4, 101, 166, 0.12);
}

.book-modern-more__icon {
	transition: transform 0.25s ease;
}

.book-modern-more:hover .book-modern-more__icon {
	transform: translateX(3px);
}

/* 탭 */
.book-modern-tabs {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	margin-top: 20px;
	margin-bottom: 0;
	border-radius: 999px;
	background: #f3f5f8;
	border: 1px solid #e8ecf1;
	box-shadow: none;
	flex-shrink: 0;
}

.book-modern-tab {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 108px;
	height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #6b7280;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: color 0.25s ease;
	white-space: nowrap;
	box-sizing: border-box;
}

.book-modern-tab:hover {
	color: #0465a6;
}

.book-modern-tab.active {
	color: #fff;
}

.book-modern-tab-indicator {
	position: absolute;
	top: 4px;
	left: 4px;
	height: calc(100% - 8px);
	border-radius: 999px;
	background: linear-gradient(135deg, #0465a6 0%, #0a84c8 100%);
	box-shadow: 0 2px 8px rgba(4, 101, 166, 0.22);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

/* 패널 */
.book-modern-panels {
	position: relative;
	min-height: 340px;
}

.book-modern-panel {
	display: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.book-modern-panel.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
	animation: bookPanelIn 0.45s ease;
}

@keyframes bookPanelIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

/* 슬라이더 */
.book-modern-wrap {
	position: relative;
	padding: 8px 4px 0;
}

.book-modern-wrap .swiper-book-modern {
	overflow: hidden;
	padding: 6px 2px 12px;
}

.swiper-book-modern .swiper-slide {
	width: auto;
	height: auto;
	box-sizing: border-box;
}

.book-card-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.book-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	background: #fff;
	border: 1px solid #e8edf3;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
	overflow: hidden;
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.book-card-link:hover .book-card {
	transform: translateY(-8px);
	border-color: #c5d9e8;
	box-shadow: 0 16px 36px rgba(4, 101, 166, 0.14);
}

.book-card__cover {
	position: relative;
	padding: 18px 18px 0;
	background: linear-gradient(180deg, #f3f7fb 0%, #fff 100%);
	overflow: hidden;
}

.book-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	padding: 5px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(16, 185, 129, 0.28);
}

.book-card__img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.book-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card-link:hover .book-card__img {
	transform: scale(1.06);
}

.book-card__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.6s ease;
	pointer-events: none;
}

.book-card-link:hover .book-card__shine {
	transform: translateX(120%);
}

.book-card__view {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translate(-50%, 10px);
	opacity: 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(4, 101, 166, 0.92);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: none;
}

.book-card-link:hover .book-card__view {
	opacity: 1;
	transform: translate(-50%, 0);
}

.book-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px 16px 18px;
}

.book-card__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: #1f2937;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.45em * 2);
}

.book-card__price-row {
	margin: auto 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 6px;
	text-align: right;
}

.book-card__price-origin {
	font-size: 13px;
	color: #9ca3af;
	text-decoration: line-through;
}

.book-card__price {
	font-size: 18px;
	font-weight: 800;
	color: #0465a6;
	letter-spacing: -0.02em;
}

.book-card__price--free {
	color: #059669;
}

.book-card__won {
	font-size: 14px;
	font-weight: 600;
}

/* 네비게이션 */
.book-modern-nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
}

.book-modern-nav__btn {
	width: 40px;
	height: 36px;
	border: 1px solid #d5dbe6;
	border-radius: 12px;
	background: #fff;
	color: #475569;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.book-modern-nav__btn:hover:not(.swiper-button-disabled) {
	border-color: #0465a6;
	color: #0465a6;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(4, 101, 166, 0.12);
}

.book-modern-nav__btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

/* 반응형 */
@media (max-width: 834px) {
	.main-best-book--modern {
		padding: 16px 0 18px;
	}

	.book-modern-head {
		flex-direction: column;
		align-items: stretch;
	}

	.book-modern-head__main {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		width: 100%;
	}

	.book-modern-title {
		font-size: 28px;
	}

	.book-modern-tabs {
		width: 100%;
		justify-content: stretch;
		margin-top: 20px;
	}

	.book-modern-tab {
		flex: 1;
		min-width: 0;
		height: 38px;
		padding: 0 12px;
		font-size: 14px;
	}

	.book-modern-panels {
		min-height: 300px;
	}
}

@media (max-width: 480px) {
	.book-modern-more {
		width: 100%;
		justify-content: center;
	}

	.book-card__title {
		font-size: 14px;
	}

	.book-card__price {
		font-size: 16px;
	}
}

/* 도서 섹션 하단 — 게시판·안내 영역 */
.main-best-book--modern + .main-info-board-band,
.main-board-restore {
	position: relative;
	z-index: 5;
	clear: both;
}
