@charset "utf-8";

/* ============================================================
   mcat08 — 커서 팔로우 리스트형
   다크 히어로 + 무한 마퀴 띠 + 기사 행 리스트
   호버 시 커서 옆에 대표 이미지 팔로우
   ============================================================ */

/* ============================================================
   히어로
   ============================================================ */
.cf-hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding-bottom: 240px;
}

.cf-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.06);
	will-change: transform;
}

.cf-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.1) 100%);
}

.cf-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px;
}

.cf-hero-label {
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	text-transform: uppercase;
	margin-bottom: 24px;
	opacity: 0;
}

.cf-hero-tit {
	font-size: clamp(44px, calc(20px + 5vw), 80px);
	font-weight: 900;
	color: #fff;
	font-family: var(--font-sub-title);
	line-height: 1;
	margin-bottom: 36px;
	overflow: hidden;
}

.cf-hero-row {
	display: block;
	clip-path: inset(0 100% 0 0);
	will-change: clip-path;
}

.cf-hero-sub {
	font-size: clamp(16px, calc(8px + 1vw), 20px);
	color: rgba(255, 255, 255, 0.65);
	opacity: 0;
}

/* 스크롤 인디케이터 */
.cf-hero-scroll {
	position: absolute;
	bottom: 140px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.cf-hero-scroll span {
	display: block;
	width: 1px;
	height: 64px;
	background: rgba(255, 255, 255, 0.3);
	position: relative;
	overflow: hidden;
}

.cf-hero-scroll span::after {
	content: "";
	position: absolute;
	top: -100%;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	animation: cfScrollLine 1.6s ease infinite;
}

@keyframes cfScrollLine {
	0% {
		top: -100%;
	}
	100% {
		top: 100%;
	}
}

/* ============================================================
   무한 마퀴 띠 — 히어로 하단 절대 고정
   ============================================================ */
.cf-marquee {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
	background: #111;
	padding: 20px 0;
	overflow: hidden;
	white-space: nowrap;
	user-select: none;
}

.cf-marquee-inner {
	display: flex;
	width: max-content;
	will-change: transform;
}

.cf-marquee-track {
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	font-weight: 600;
	color: #fff;
	flex-shrink: 0;
}

/* ============================================================
   기사 리스트
   ============================================================ */
.cf-list {
	padding: 60px 0 140px;
	background: var(--color-bg-main);
}

.cf-list-wrap {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px;
}

/* 헤더 행 */
.cf-list-head {
	display: grid;
	grid-template-columns: 56px 90px 1fr 90px;
	gap: 0 20px;
	padding: 12px 0;
	border-bottom: 2px solid var(--color-text-main);
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
	text-transform: uppercase;
}

/* 기사 행 */
.cf-row {
	display: grid;
	grid-template-columns: 56px 90px 1fr 90px;
	gap: 0 20px;
	padding: 28px 0;
	border-bottom: 1px solid var(--color-border);
	text-decoration: none;
	color: var(--color-text-main);
	align-items: center;
	transition: background 0.25s ease;
	position: relative;
}

.cf-row::after {
	content: "→";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%) translateX(-6px);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	color: var(--color-primary);
}

.cf-row:hover::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.cf-row:hover {
	background: rgba(0, 0, 0, 0.03);
}

body.dark .cf-row:hover {
	background: rgba(255, 255, 255, 0.04);
}

/* 번호 */
.cf-col-num {
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
	font-variant-numeric: tabular-nums;
}

/* 분류 */
.cf-col-cat {
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	font-weight: 600;
	color: var(--color-text-muted);
}

.cf-row:hover .cf-col-cat {
	color: var(--color-primary);
}

/* 본문 컬럼 */
.cf-col-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cf-row-tit {
	font-size: clamp(18px, calc(10px + 1.2vw), 26px);
	font-weight: 800;
	font-family: var(--font-sub-title);
	transition: opacity 0.2s ease;
}

.cf-row-sub {
	font-size: clamp(14px, calc(8px + 1vw), 18px);
	color: var(--color-text-muted);
	font-style: normal;
}

/* 날짜 */
.cf-col-date {
	font-size: clamp(14px, calc(9.5px + 0.85vw), 18px);
	color: var(--color-text-muted);
	text-align: right;
}

/* ============================================================
   커서 팔로우 이미지
   ============================================================ */
.cf-cursor-img {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 210px;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	border-radius: 4px;
	overflow: hidden;
	will-change: transform, opacity;
	transition: opacity 0.25s ease;
}

.cf-cursor-img.is-visible {
	opacity: 1;
}

.cf-cursor-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 터치 기기에서 커서 이미지 숨김 */
@media (hover: none) {
	.cf-cursor-img {
		display: none;
	}
}

/* 다크모드 */
body.dark .cf-marquee {
	background: #000;
}

body.dark .cf-list {
	border-top: 1px solid var(--color-border);
}

/* ============================================================
   반응형 — 999px (태블릿)
   ============================================================ */
@media (max-width: 999px) {
	.cf-hero-inner {
		padding: 0 40px;
	}

	.cf-hero {
		padding-bottom: 200px;
	}

	.cf-hero-scroll {
		bottom: 100px;
	}

	.cf-list-wrap {
		padding: 0 40px;
	}

	.cf-list-head {
		grid-template-columns: 48px 1fr 80px;
	}

	.cf-list-head .cf-col-cat {
		display: none;
	}

	.cf-row {
		grid-template-columns: 48px 1fr 80px;
	}

	.cf-row .cf-col-cat {
		display: none;
	}
}

/* ============================================================
   반응형 — 768px (모바일)
   ============================================================ */
@media (max-width: 768px) {
	.cf-hero-inner {
		padding: 0 24px;
	}

	.cf-hero-scroll {
		display: none;
	}

	.cf-hero {
		padding-bottom: 100px;
	}

	.cf-list {
		padding: 40px 0 100px;
	}

	.cf-list-wrap {
		padding: 0 24px;
	}

	.cf-list-head {
		display: none;
	}

	.cf-row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 24px 0;
	}

	.cf-col-num {
		display: none;
	}

	.cf-col-date {
		text-align: left;
	}

	.cf-row::after {
		top: 28px;
		transform: translateY(0) translateX(0);
		opacity: 0.35;
	}

	.cf-row:hover::after {
		opacity: 1;
		transform: translateY(0) translateX(0);
	}
}

/* ============================================================
   반응형 — 499px (소형 폰)
   ============================================================ */
@media (max-width: 499px) {
	.cf-hero-inner {
		padding: 0 20px;
	}

	.cf-hero {
		padding-bottom: 80px;
	}

	.cf-list-wrap {
		padding: 0 20px;
	}

	.cf-row {
		padding: 20px 0;
	}

	.cf-marquee {
		padding: 14px 0;
	}
}
