@charset "utf-8";

/* ============================================================
   march19 — 대출 카드형 아카이브 (도서관 시리즈)
   도서관 대출 카드 3D 플립 + 연도 필터
   ============================================================ */

body.page-light-header #header,
body.page-light-header #header.on,
body.page-light-header #header.act {
	background-color: #f0ebe2 !important;
}

/* ── 히어로 ── */
.lc-hero {
	background: repeating-linear-gradient(transparent, transparent 27px, rgba(160, 130, 80, 0.1) 27px, rgba(160, 130, 80, 0.1) 28px), #f0ebe2;
	min-height: 56vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 40px 60px;
}

.lc-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.lc-hero-label {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.4);
}

.lc-hero-ornament {
	display: flex;
	align-items: center;
	width: 200px;
	gap: 0;
}

.lc-hero-ornament::before,
.lc-hero-ornament::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.4));
}

.lc-hero-ornament::after {
	background: linear-gradient(to left, transparent, rgba(201, 168, 76, 0.4));
}

.lc-hero-ornament span {
	font-size: 10px;
	color: rgba(201, 168, 76, 0.55);
	padding: 0 8px;
}

.lc-hero-tit {
	font-size: clamp(36px, calc(22px + 3vw), 72px);
	font-family: "MaruBuri", serif;
	font-weight: 700;
	color: #1c2412;
}

.lc-hero-sub {
	font-size: clamp(18px, calc(12px + 0.8vw), 22px);
	font-family: "MaruBuri", serif;
	color: rgba(60, 45, 20, 0.5);
}

/* ── 필터 ── */
.lc-filter-wrap {
	position: sticky;
	top: 90px;
	z-index: 2;
	background: rgba(240, 235, 226, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(160, 130, 80, 0.15);
	transition: top 0.25s ease;
}

@media (max-width: 999px) {
	.lc-filter-wrap {
		top: 70px;
	}
}

.lc-filter-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	gap: 0;
}

.lc-filter {
	padding: 18px 28px;
	font-size: clamp(18px, calc(12px + 0.8vw), 20px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 400;
	color: rgba(60, 45, 20, 0.4);
	background: none;
	border: none;
	cursor: pointer;
	position: relative;
	transition: color 0.2s;
}

.lc-filter::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 28px;
	right: 28px;
	height: 2px;
	background: rgba(201, 168, 76, 0.7);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.lc-filter.is-active {
	color: #1c2412;
	font-weight: 600;
}

.lc-filter.is-active::after {
	transform: scaleX(1);
}

.lc-filter:hover {
	color: #1c2412;
}

/* ── 바디 ── */
.lc-body {
	background: #f0ebe2;
	padding: 60px 40px 120px;
}

.lc-hint {
	text-align: center;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.35);
	margin-bottom: 48px;
}

/* ── 카드 그리드 ── */
.lc-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

/* ── 카드 (3D 플립) ── */
.lc-card {
	perspective: 900px;
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px);
}

.lc-card.is-hidden {
	display: none;
}

.lc-card-inner {
	position: relative;
	width: 100%;
	aspect-ratio: 0.72 / 1; /* 도서관 카드 비율 */
	transform-style: preserve-3d;
	transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.lc-card.is-flipped .lc-card-inner {
	transform: rotateY(-180deg);
}

/* ── 카드 앞뒤 공통 ── */
.lc-card-front,
.lc-card-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 2px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.08),
		0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── 앞면 — 낡은 크림 대출 카드 ── */
.lc-card-front {
	background: repeating-linear-gradient(transparent, transparent 23px, rgba(160, 130, 80, 0.14) 23px, rgba(160, 130, 80, 0.14) 24px), linear-gradient(180deg, #f5edd8 0%, #f2e8cc 100%);
	border: 1px solid rgba(160, 130, 80, 0.2);
}

/* 현재호: 더 선명한 크림 */
.lc-card--current .lc-card-front {
	background: repeating-linear-gradient(transparent, transparent 23px, rgba(160, 130, 80, 0.14) 23px, rgba(160, 130, 80, 0.14) 24px), linear-gradient(180deg, #f8f2e0 0%, #f5edd8 100%);
	border-color: rgba(201, 168, 76, 0.4);
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.1),
		0 8px 32px rgba(201, 168, 76, 0.15);
}

/* ── 뒷면 ── */
.lc-card-back {
	background: linear-gradient(180deg, #f2e8cc 0%, #eedfc0 100%);
	border: 1px solid rgba(160, 130, 80, 0.2);
	transform: rotateY(180deg);
}

/* ── 카드 헤더 ── */
.lc-card-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.lc-card-series {
	font-size: clamp(10px, calc(8px + 0.3vw), 12px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 600;
	color: rgba(60, 45, 20, 0.45);
}

.lc-card-no {
	font-size: clamp(10px, calc(8px + 0.3vw), 12px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.35);
}

.lc-card-divider {
	height: 1px;
	background: rgba(160, 130, 80, 0.25);
	flex-shrink: 0;
}

/* ── 앞면 본문 ── */
.lc-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lc-card-vol {
	font-size: clamp(12px, calc(9px + 0.4vw), 14px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 300;
	color: rgba(60, 45, 20, 0.4);
}

.lc-card-tit {
	font-size: clamp(20px, calc(14px + 1.2vw), 28px);
	font-family: "MaruBuri", serif;
	font-weight: 700;
	color: #1c2412;
	flex: 1;
}

.lc-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.lc-card-cats span {
	font-size: clamp(10px, calc(8px + 0.3vw), 12px);
	font-family: "Pretendard Variable", sans-serif;
	color: rgba(60, 45, 20, 0.5);
	border: 1px solid rgba(160, 130, 80, 0.3);
	padding: 2px 6px;
}

/* ── 스탬프 ── */
.lc-card-stamp {
	display: flex;
	justify-content: flex-end;
}

.lc-stamp {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 2px dashed rgba(160, 60, 40, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	transform: rotate(-12deg);
}

.lc-stamp-date {
	font-size: clamp(9px, calc(7px + 0.2vw), 11px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 700;
	color: rgba(160, 60, 40, 0.7);
}

.lc-stamp-word {
	font-size: clamp(9px, calc(7px + 0.2vw), 10px);
	font-family: "Pretendard Variable", sans-serif;
	color: rgba(160, 60, 40, 0.6);
}

/* 낡은 스탬프 */
.lc-card-stamp--worn .lc-stamp {
	opacity: 0.65;
	border-style: dotted;
}

/* 현재호 스탬프 */
.lc-stamp--current {
	border-color: rgba(201, 168, 76, 0.7);
	border-style: solid;
}

.lc-stamp--current .lc-stamp-date,
.lc-stamp--current .lc-stamp-word {
	color: rgba(160, 110, 20, 0.85);
}

/* ── DATE DUE 푸터 ── */
.lc-card-footer {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lc-due-label {
	font-size: clamp(9px, calc(7px + 0.2vw), 11px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 700;
	color: rgba(60, 45, 20, 0.35);
}

.lc-due-line {
	height: 1px;
	background: rgba(160, 130, 80, 0.2);
}

/* ── 뒷면 — 대출 기록표 ── */
.lc-record {
	width: 100%;
	border-collapse: collapse;
	flex: 1;
}

.lc-record th {
	font-size: clamp(10px, calc(8px + 0.3vw), 12px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 600;
	color: rgba(60, 45, 20, 0.5);
	padding: 0 0 6px;
	border-bottom: 1px solid rgba(160, 130, 80, 0.25);
	text-align: left;
}

/* 에디터 열 좁게, 코멘트 열 넓게 */
.lc-record th:first-child,
.lc-record td:first-child {
	width: 36%;
	white-space: nowrap;
}

.lc-record td {
	font-size: clamp(10px, calc(8px + 0.3vw), 12px);
	font-family: "Pretendard Variable", sans-serif;
	color: rgba(60, 45, 20, 0.65);
	padding: 6px 0;
	border-bottom: 1px solid rgba(160, 130, 80, 0.12);
}

.lc-contents {
	font-size: clamp(10px, calc(8px + 0.3vw), 12px);
	font-family: "Pretendard Variable", sans-serif;
	color: rgba(60, 45, 20, 0.45);
}

.lc-read-btn {
	display: inline-block;
	padding: 8px 16px;
	font-size: clamp(12px, calc(9px + 0.4vw), 14px);
	font-family: "Pretendard Variable", sans-serif;
	font-weight: 400;
	color: #7a5c2a;
	border: 1px solid rgba(201, 168, 76, 0.4);
	text-decoration: none;
	text-align: center;
	transition:
		background 0.2s,
		color 0.2s;
}

.lc-read-btn:hover {
	background: rgba(201, 168, 76, 0.15);
}

.lc-read-btn--current {
	background: rgba(201, 168, 76, 0.1);
	color: rgba(160, 110, 20, 0.9);
	border-color: rgba(201, 168, 76, 0.6);
}

/* ── 반응형 ── */
@media (max-width: 1099px) {
	.lc-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 999px) {
	.lc-filter-wrap {
		top: 70px;
	}
	.lc-body {
		padding: 60px 30px 100px;
	}
	.lc-grid {
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.lc-body {
		padding: 48px 24px 80px;
	}
	.lc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.lc-filter-inner {
		padding: 0 20px;
	}
}

@media (max-width: 499px) {
	.lc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.lc-hero {
		padding: 90px 20px 50px;
	}
}
