﻿@charset "utf-8";

/* ============================================================
   mcat05 — 타임라인 아카이브형
   좌측 이슈 네비 고정 + 우측 이슈별 기사 목록 스크롤
   ============================================================ */

.ta-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
}

/* ============================================================
   히어로
   ============================================================ */
.ta-hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 60px;
	border-bottom: 1px solid var(--color-border);
	overflow: hidden;
}

.ta-hero-inner {
	width: 100%;
	max-width: 1400px;
	display: flex;
	align-items: center;
	gap: 0;
}

/* 좌: 텍스트 */
.ta-hero-text {
	flex: 0 0 42%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 120px 60px 80px 0;
	position: relative;
	z-index: 2;
}

.ta-hero-label {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
	margin-bottom: 20px;
	opacity: 0;
}

.ta-hero-tit {
	font-size: clamp(52px, calc(26px + 5vw), 100px);
	font-weight: 900;
	color: var(--color-text-main);
	font-family: var(--font-sub-title);
	line-height: 1;
	margin-bottom: 24px;
	clip-path: inset(0 100% 0 0);
}

.ta-hero-sub {
	font-size: clamp(16px, calc(4px + 1.5vw), 20px);
	color: var(--color-text-sub);
	margin-bottom: 48px;
	opacity: 0;
}

.ta-hero-count {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.ta-hero-count-num {
	font-size: clamp(28px, calc(14px + 2.3vw), 48px);
	font-weight: 900;
	color: var(--color-text-main);
	font-family: var(--font-sub-title);
}

.ta-hero-count-label {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--color-text-muted);
}

/* 우: 팬 영역 */
.ta-fan {
	flex: 1;
	position: relative;
	height: 560px;
}

.ta-fan-card {
	position: absolute;
	width: clamp(200px, 20vw, 280px);
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	overflow: hidden;
	transform-origin: 50% 85%;
	box-shadow:
		0 12px 48px rgba(0, 0, 0, 0.22),
		0 2px 8px rgba(0, 0, 0, 0.12);
	will-change: transform;
	color: inherit;
}

/* nth-child로 초기 z-index — GSAP 호버 시 덮어씀 */
.ta-fan-card:nth-child(1) {
	z-index: 1;
}
.ta-fan-card:nth-child(2) {
	z-index: 2;
}
.ta-fan-card:nth-child(3) {
	z-index: 3;
}
.ta-fan-card:nth-child(4) {
	z-index: 4;
}
.ta-fan-card:nth-child(5) {
	z-index: 5;
}
.ta-fan-card:nth-child(6) {
	z-index: 6;
}

.ta-fan-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.ta-fan-vol {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 16px 16px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
	color: #fff;
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	text-align: center;
	pointer-events: none;
}

/* ============================================================
   본문 — 2열 그리드
   ============================================================ */
.ta-body {
	display: grid;
	grid-template-columns: 200px 1fr;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px;
	gap: 0 80px;
}

/* ============================================================
   좌: 이슈 네비 (sticky)
   ============================================================ */
.ta-nav {
	position: sticky;
	top: 90px;
	align-self: start;
	padding: 56px 0;
	transition: top 0.25s ease;
}

.ta-nav-line {
	position: absolute;
	left: 5px;
	top: 72px;
	bottom: 72px;
	width: 1px;
	background: var(--color-border);
}

.ta-nav-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ta-nav-item {
	position: relative;
	padding-left: 26px;
}

.ta-nav-item::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 11px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--color-border);
	border: 2px solid var(--color-bg-main);
	box-sizing: border-box;
	transition:
		background 0.3s,
		transform 0.25s;
}

.ta-nav-item.is-active::before {
	background: var(--color-primary);
	transform: scale(1.3);
}

.ta-nav-link {
	display: block;
	padding: 8px 0;
	color: inherit;
}

.ta-nav-vol {
	display: block;
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
	transition: color 0.3s;
}

.ta-nav-item.is-active .ta-nav-vol {
	color: var(--color-text-main);
}

.ta-nav-date {
	display: block;
	font-size: 13px;
	color: var(--color-text-muted);
	opacity: 0.6;
}

/* ============================================================
   우: 이슈 섹션들
   ============================================================ */
.ta-issues {
	padding: 56px 0 100px;
}

.ta-issue {
	padding-bottom: 72px;
	margin-bottom: 72px;
	border-bottom: 1px solid var(--color-border);
}

.ta-issue:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.ta-issue-head {
	margin-bottom: 36px;
}

.ta-issue-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.ta-issue-vol {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-primary);
}

.ta-issue-date {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--color-text-muted);
}

.ta-issue-theme {
	font-size: clamp(26px, calc(14px + 2vw), 42px);
	font-weight: 900;
	color: var(--color-text-main);
	font-family: var(--font-sub-title);
	line-height: 1.2;
	margin-bottom: 10px;
}

.ta-issue-desc {
	font-size: clamp(15px, calc(3px + 1.5vw), 19px);
	color: var(--color-text-sub);
}

/* 기사 카드 그리드 */
.ta-article-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.ta-article {
	opacity: 0;
	transform: translateY(24px);
}

.ta-article-link {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: inherit;
}

.ta-article-img {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
}

.ta-article-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ta-article-link:hover .ta-article-img img {
	transform: scale(1.05);
}

.ta-article-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ta-article-cat {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 600;
	color: var(--color-primary);
}

.ta-article-tit {
	font-size: clamp(18px, calc(6px + 1.6vw), 24px);
	font-weight: 700;
	color: var(--color-text-main);
	font-family: var(--font-sub-title);
	line-height: 1.3;
}

.ta-article-date {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	color: var(--color-text-muted);
}

/* ============================================================
   아웃트로
   ============================================================ */
.ta-outro {
	padding: 80px 0 100px;
	border-top: 1px solid var(--color-border);
}

.ta-outro-inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.ta-outro-label {
	font-size: clamp(14px, calc(4px + 1.4vw), 18px);
	font-weight: 700;
	color: var(--color-text-muted);
}

.ta-outro-tit {
	font-size: clamp(28px, calc(14px + 2.5vw), 48px);
	font-weight: 800;
	color: var(--color-text-main);
	font-family: var(--font-sub-title);
	line-height: 1.2;
}

.ta-outro-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ta-outro-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: inherit;
}

.ta-outro-img {
	aspect-ratio: 3 / 2;
	border-radius: 12px;
	overflow: hidden;
}

.ta-outro-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ta-outro-card:hover .ta-outro-img img {
	transform: scale(1.05);
}

.ta-outro-name {
	font-size: clamp(16px, calc(4px + 1.5vw), 20px);
	font-weight: 700;
	color: var(--color-text-main);
}

/* ============================================================
   반응형 — 999px
   ============================================================ */
@media all and (max-width: 999px) {
	.ta-hero {
		padding: 0 32px;
	}
	.ta-hero-text {
		flex: 0 0 46%;
		padding: 100px 40px 60px 0;
	}
	.ta-fan {
		height: 460px;
	}

	.ta-body {
		grid-template-columns: 160px 1fr;
		padding: 0 32px;
		gap: 0 48px;
	}

	.ta-wrap {
		padding: 0 32px;
	}
}

/* ============================================================
   반응형 — 768px (모바일: 네비 → 상단 수평 스트립)
   ============================================================ */
@media all and (max-width: 768px) {
	.ta-hero {
		padding: 0 20px;
		align-items: stretch; /* inner가 100vh 꽉 채우도록 */
	}

	.ta-hero-inner {
		flex-direction: column;
		padding: 100px 0 0;
		min-height: 100vh;
	}

	.ta-hero-text {
		flex: none;
		width: 100%;
		padding: 0 0 40px;
	}
	.ta-hero-label {
		margin-bottom: 8px;
	}
	.ta-hero-tit {
		margin-bottom: 12px;
	}
	.ta-hero-sub {
		margin-bottom: 16px;
	}

	.ta-fan {
		width: 100%;
		height: 340px;
		margin-top: auto; /* 남은 공간 모두 위로 밀어냄 */
		margin-bottom: 30px;
	}

	.ta-body {
		grid-template-columns: 1fr;
		padding: 0;
		gap: 0;
	}

	.ta-nav {
		position: sticky;
		top: 70px;
		z-index: 10;
		transition: top 0.25s ease;
		background: var(--color-bg-main);
		border-bottom: 1px solid var(--color-border);
		padding: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ta-nav::-webkit-scrollbar {
		display: none;
	}

	.ta-nav-line {
		display: none;
	}

	.ta-nav-list {
		flex-direction: row;
		gap: 0;
		width: max-content;
		padding: 0 20px;
	}

	.ta-nav-item {
		padding-left: 0;
	}
	.ta-nav-item::before {
		display: none;
	}

	.ta-nav-link {
		padding: 14px 18px;
		border-bottom: 2px solid transparent;
		transition: border-color 0.25s;
		white-space: nowrap;
	}

	.ta-nav-item.is-active .ta-nav-link {
		border-bottom-color: var(--color-primary);
	}

	.ta-nav-vol {
		font-size: 15px;
		color: var(--color-text-sub);
	}
	.ta-nav-item.is-active .ta-nav-vol {
		color: var(--color-text-main);
	}
	.ta-nav-date {
		display: none;
	}

	.ta-issues {
		padding: 32px 20px 80px;
	}

	.ta-issue {
		padding-bottom: 48px;
		margin-bottom: 48px;
	}

	.ta-article-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ta-wrap {
		padding: 0 20px;
	}

	.ta-outro {
		padding: 60px 0 80px;
	}

	.ta-outro-links {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ============================================================
   반응형 — 499px
   ============================================================ */
@media all and (max-width: 499px) {
	.ta-fan {
		height: 300px;
	}
	.ta-fan-card {
		width: 150px;
	}

	.ta-issue {
		padding-bottom: 36px;
		margin-bottom: 36px;
	}

	.ta-outro-links {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.ta-outro-links .ta-outro-card:last-child {
		display: none;
	}
}
