/* ==========================================
   march22 — 캠퍼스 웹진 스택 드래그 덱형
   ========================================== */

:root {
	--u27-brown: #1a1208;
	--u27-orange: #c4622d;
	--u27-mocha: #8b6f47;
	--u27-beige: #d4c4a8;
	--u27-serif: "IBM Plex Sans KR", sans-serif;
	--dc-card-w: clamp(240px, 40vw, 360px);
	--dc-card-h: clamp(340px, 56vw, 520px);
}

/* ----------------------------------------
   히어로 (dc-section 내부)
   ---------------------------------------- */
.dc-hero-inner {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	padding-top: clamp(40px, 8vw, 80px);
}

.dc-eyebrow {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: #e08050;
	margin-bottom: 16px;
}

.dc-title {
	font-family: var(--u27-serif);
	font-size: clamp(48px, calc(24px + 5vw), 96px);
	font-weight: 700;
	color: #f0e6d8;
	margin-bottom: 16px;
}

.dc-desc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(212, 196, 168, 0.65);
}

/* ----------------------------------------
   덱 섹션
   ---------------------------------------- */
.dc-section {
	background: #1a1208;
	padding: 90px 0 100px; /* 상단 헤더 높이 확보 */
	position: relative;
	z-index: 0;
	overflow: hidden;
	min-height: 100vh;
}

.dc-section-bg {
	position: absolute;
	inset: -40px;
	background-size: cover;
	background-position: center;
	filter: blur(32px);
	opacity: 0.45;
	transition: opacity 0.6s ease;
	z-index: 0;
}

.dc-section-bg.is-fading {
	opacity: 0;
}

.dc-section-bg-next {
	position: absolute;
	inset: -40px;
	background-size: cover;
	background-position: center;
	filter: blur(32px);
	opacity: 0;
	transition: opacity 0.6s ease;
	z-index: 0;
}

.dc-section-dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	z-index: 0;
}

.dc-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

/* ----------------------------------------
   스테이지 + 네비 버튼
   ---------------------------------------- */
.dc-stage {
	position: relative;
	padding: 0 80px;
}

.dc-deck {
	position: relative;
	flex-shrink: 0;
	width: var(--dc-card-w);
	height: calc(var(--dc-card-h) + 32px);
}

/* ----------------------------------------
   peek 카드 (좌우 인접 이슈)
   ---------------------------------------- */
.dc-peek {
	flex-shrink: 0;
	width: clamp(56px, 9vw, 100px);
	height: var(--dc-card-h);
	border-radius: 14px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	transform: scale(0.9);
	opacity: 0;
	position: relative;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.dc-peek-mask {
	position: absolute;
	inset: 0;
	background: rgba(26, 18, 8, 0.45);
}

/* ----------------------------------------
   카드
   ---------------------------------------- */
.dc-card {
	position: absolute;
	width: var(--dc-card-w);
	height: var(--dc-card-h);
	top: 0;
	left: 0;
	border-radius: 20px;
	overflow: hidden;
	cursor: grab;
	user-select: none;
	touch-action: none;
	will-change: transform;
}

.dc-card:active {
	cursor: grabbing;
}

.dc-card-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
}

.dc-card:hover .dc-card-bg {
	transform: scale(1.04);
}

.dc-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.dc-card-body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(16px, 2.5vw, 28px);
	z-index: 2;
}

.dc-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dc-card-tag {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: #fff;
	font-weight: 600;
}

.dc-card-year {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(255, 255, 255, 0.65);
}

.dc-card-vol {
	font-family: var(--u27-serif);
	font-size: clamp(52px, calc(36px + 5vw), 110px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.08);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

.dc-card-theme {
	font-family: var(--u27-serif);
	font-size: clamp(20px, calc(14px + 1.6vw), 32px);
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
}

.dc-card-subdesc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(255, 255, 255, 0.58);
}

/* ----------------------------------------
   네비 버튼
   ---------------------------------------- */
.dc-nav {
	position: absolute;
	top: calc(var(--dc-card-h) / 2);
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(212, 196, 168, 0.35);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	color: #f0e6d8;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.2s ease,
		border-color 0.2s ease;
	z-index: 5;
}

.dc-nav--prev {
	left: 0;
}
.dc-nav--next {
	right: 0;
}

.dc-nav:hover {
	background: rgba(196, 98, 45, 0.75);
	border-color: transparent;
}

.dc-nav:disabled {
	opacity: 0.25;
	cursor: default;
}

.dc-nav:disabled:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(212, 196, 168, 0.35);
}

/* ----------------------------------------
   카운터
   ---------------------------------------- */
.dc-counter {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.dc-counter-cur {
	font-family: var(--u27-serif);
	font-size: clamp(32px, calc(20px + 2.5vw), 56px);
	font-weight: 700;
	color: #f0e6d8;
}

.dc-counter-sep {
	font-size: clamp(18px, calc(12px + 1.2vw), 28px);
	color: rgba(212, 196, 168, 0.35);
}

.dc-counter-total {
	font-size: clamp(18px, calc(12px + 1.2vw), 24px);
	color: rgba(212, 196, 168, 0.6);
}

/* ----------------------------------------
   상세 정보
   ---------------------------------------- */
.dc-detail {
	max-width: 480px;
	width: 100%;
	padding: 0 20px;
	text-align: center;
}

.dc-detail-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 12px;
}

.dc-detail-season {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: #e08050;
}

.dc-detail-vol {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(212, 196, 168, 0.6);
}

.dc-detail-theme {
	font-family: var(--u27-serif);
	font-size: clamp(24px, calc(16px + 1.8vw), 40px);
	font-weight: 700;
	color: #f0e6d8;
	margin-bottom: 24px;
}

.dc-detail-articles {
	list-style: none;
}

.dc-detail-articles li {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(212, 196, 168, 0.65);
	padding: 10px 0;
	border-bottom: 1px solid rgba(212, 196, 168, 0.18);
	text-align: left;
}

.dc-detail-articles li:first-child {
	border-top: 1px solid rgba(212, 196, 168, 0.18);
}

/* ----------------------------------------
   반응형
   ---------------------------------------- */
@media (max-width: 999px) {
	.dc-section {
		padding: 70px 0 80px;
	}
	.dc-nav {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 768px) {
	.dc-section {
		padding: 70px 0 80px;
	}
	.dc-stage {
		padding: 0 56px;
	}
	.dc-nav {
		width: 40px;
		height: 40px;
	}
	.dc-detail {
		padding: 0 24px;
	}
}

@media (max-width: 499px) {
	.dc-stage {
		padding: 0 48px;
	}
	.dc-nav {
		width: 36px;
		height: 36px;
	}
	.dc-detail {
		padding: 0 16px;
	}
}
