﻿@charset "utf-8";

/* ============================================================
	mmain06 — 매거진 스택형 메인
	이슈 표지 카드가 스크롤 시 순서대로 위로 슬라이드 아웃되며
	다음 이슈가 드러나는 스택 덱 방식
	============================================================ */

/* ============================================================
	이슈 스택
	============================================================ */
.ms-stack {
	position: relative;
}

.ms-issue {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: stretch;
}

.ms-issue-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform-origin: center;
	will-change: transform;
}

.ms-issue-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 50%, rgba(0, 0, 0, 0.55) 100%);
}

/* 이슈별 오버레이 색조 변주 */
.ms-issue--04 .ms-issue-overlay {
	background: linear-gradient(135deg, rgba(10, 20, 50, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.55) 100%);
}
.ms-issue--03 .ms-issue-overlay {
	background: linear-gradient(135deg, rgba(30, 10, 10, 0.75) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.52) 100%);
}
.ms-issue--02 .ms-issue-overlay {
	background: linear-gradient(135deg, rgba(5, 30, 20, 0.76) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.52) 100%);
}
.ms-issue--01 .ms-issue-overlay {
	background: linear-gradient(135deg, rgba(30, 20, 5, 0.76) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.52) 100%);
}

/* ── 이슈 내부 콘텐츠 ── */
.ms-issue-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 80px 80px 64px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* ── 메타 (VOL, 날짜, 뱃지) ── */
.ms-issue-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.ms-vol {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
}

.ms-date {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	color: rgba(255, 255, 255, 0.6);
}

.ms-current-badge {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 20px;
	background: var(--color-primary);
	color: #fff;
}

.ms-current-badge--first {
	background: var(--color-accent);
}

/* ── 이슈 타이틀 본문 ── */
.ms-issue-body {
	max-width: 720px;
}

.ms-issue-theme {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 12px;
}

.ms-issue-tit {
	font-size: clamp(44px, calc(24px + 3.5vw), 90px);
	font-weight: 900;
	color: #fff;
	font-family: var(--font-sub-title);
	line-height: 1.1;
	margin-bottom: 36px;
	will-change: opacity, transform;
}

/* ── 이슈 내 기사 리스트 ── */
.ms-ia-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ms-ia {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ms-ia-cat {
	flex-shrink: 0;
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, 0.3);
	padding: 3px 10px;
	border-radius: 10px;
}

.ms-ia-tit {
	font-size: clamp(15px, calc(11px + 0.7vw), 20px);
	color: rgba(255, 255, 255, 0.85);
}

/* ── 스크롤 힌트 (첫 이슈만) ── */
.ms-issue-scroll {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 48px;
}

.ms-scroll-txt {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	color: rgba(255, 255, 255, 0.45);
	font-weight: 700;
}

.ms-scroll-line {
	display: block;
	width: 48px;
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
	position: relative;
	overflow: hidden;
}

.ms-scroll-line::after {
	content: "";
	position: absolute;
	left: -100%;
	top: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	animation: scrollLineSlide 2s ease-in-out infinite;
}

@keyframes scrollLineSlide {
	0% {
		left: -100%;
	}
	50% {
		left: 0;
	}
	100% {
		left: 100%;
	}
}

/* ── 이전 호 링크 (이슈 02-04에 표시) ── */
a.ms-issue-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	margin-top: 48px;
	padding: 10px 20px;
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	color: #fff;
	text-decoration: none;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	transition:
		background 0.2s ease,
		border-color 0.2s ease;
}

.ms-issue-link::after {
	content: "→";
	transition: transform 0.2s ease;
}

.ms-issue-link:hover::after {
	transform: translateX(4px);
}

/* ── 이슈 넘버 카운터 (우측 하단) ── */
.ms-issue-counter {
	position: absolute;
	right: 48px;
	bottom: 64px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.ms-counter-cur {
	font-size: clamp(24px, calc(16px + 1.6vw), 42px);
	font-weight: 900;
	color: #fff;
	font-family: var(--font-sub-title);
}

.ms-counter-sep {
	display: block;
	width: 1px;
	height: 32px;
	background: rgba(255, 255, 255, 0.35);
}

.ms-counter-total {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
	현재 이슈 기사 목록
	============================================================ */
.ms-articles {
	padding: 96px 0 80px;
	background: var(--color-bg-main);
}

.ms-articles-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 60px;
}

.ms-articles-head {
	margin-bottom: 40px;
}

.ms-articles-label {
	display: block;
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	color: var(--color-primary);
	margin-bottom: 8px;
}

.ms-articles-tit {
	font-size: clamp(24px, calc(16px + 1.6vw), 42px);
	font-weight: 900;
	color: var(--color-text-main);
	font-family: var(--font-sub-title);
}

/* ── 기사 그리드 ── */
.ms-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.ms-card {
	display: block;
	text-decoration: none;
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-bg-card);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.ms-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ms-card--featured {
	grid-column: span 2;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
}

.ms-card-img {
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.ms-card--featured .ms-card-img {
	aspect-ratio: auto;
	height: 100%;
	min-height: 280px;
}

.ms-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.ms-card:hover .ms-card-img img {
	transform: scale(1.06);
}

.ms-card-body {
	padding: 24px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ms-card-cat {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	color: var(--color-primary);
}

.ms-card-tit {
	font-size: clamp(18px, calc(13px + 0.9vw), 24px);
	font-weight: 700;
	color: var(--color-text-main);
	line-height: 1.2;
	transition: color 0.2s ease;
}

.ms-card:hover .ms-card-tit {
	color: var(--color-primary);
}

.ms-card-desc {
	font-size: clamp(15px, calc(11px + 0.7vw), 20px);
	color: var(--color-text-sub);
	line-height: 1.2;
}

/* ── 더보기 버튼 ── */
.ms-articles-more {
	margin-top: 56px;
	text-align: center;
}

.ms-btn-more {
	display: inline-block;
	padding: 14px 48px;
	border: 2px solid var(--color-text-main);
	border-radius: 4px;
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	color: var(--color-text-main);
	text-decoration: none;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.ms-btn-more:hover {
	background: var(--color-text-main);
	color: var(--color-bg-main);
}

/* ============================================================
	구독 CTA
	============================================================ */
.ms-subscribe {
	background: var(--color-bg-inverse);
	padding: 96px 0;
}

.ms-subscribe-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}

.ms-sub-label {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.38);
	margin-bottom: 16px;
}

.ms-sub-tit {
	font-size: clamp(24px, calc(16px + 1.6vw), 42px);
	font-weight: 900;
	font-family: var(--font-sub-title);
	color: var(--color-text-inverse);
	margin-bottom: 14px;
	line-height: 1.2;
}

.ms-sub-desc {
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	color: rgba(255, 255, 255, 0.48);
	margin-bottom: 40px;
}

.ms-sub-form {
	display: flex;
	gap: 12px;
}

.ms-sub-input {
	flex: 1;
	height: 52px;
	padding: 0 20px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	color: #fff;
	outline: none;
	transition: border-color 0.2s ease;
}

.ms-sub-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.ms-sub-input:focus {
	border-color: rgba(255, 255, 255, 0.55);
}

.ms-sub-btn {
	flex-shrink: 0;
	height: 52px;
	padding: 0 32px;
	background: var(--color-primary);
	color: #fff;
	font-size: clamp(14px, calc(10.8px + 0.72vw), 18px);
	font-weight: 700;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ms-sub-btn:hover {
	background: var(--color-primary-hover);
}

/* ============================================================
	반응형 — 필수 구간 999 / 768 / 499
	============================================================ */
@media all and (max-width: 999px) {
	.ms-issue-inner {
		padding: 70px 48px 56px;
	}

	.ms-issue-counter {
		right: 28px;
		bottom: 56px;
	}

	.ms-articles-inner {
		padding: 0 36px;
	}

	.ms-articles {
		padding: 72px 0 64px;
	}

	.ms-grid {
		gap: 20px;
	}
}

@media all and (max-width: 768px) {
	.ms-issue-inner {
		padding: 60px 28px 48px;
	}

	.ms-issue-counter {
		right: 20px;
		bottom: 48px;
	}

	.ms-ia-list {
		gap: 10px;
	}

	.ms-articles-inner {
		padding: 0 20px;
	}

	.ms-articles {
		padding: 56px 0 48px;
	}

	.ms-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ms-card--featured {
		grid-column: span 1;
		grid-template-columns: 1fr;
	}

	.ms-card--featured .ms-card-img {
		aspect-ratio: 16 / 9;
		height: auto;
		min-height: unset;
	}

	.ms-subscribe {
		padding: 64px 0;
	}

	.ms-sub-form {
		flex-direction: column;
	}

	.ms-sub-input,
	.ms-sub-btn {
		width: 100%;
	}
}

@media all and (max-width: 499px) {
	.ms-issue-inner {
		padding: 56px 20px 40px;
	}

	.ms-issue-meta {
		gap: 10px;
		flex-wrap: wrap;
	}

	.ms-ia {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.ms-issue-counter {
		display: none;
	}

	.ms-issue-scroll,
	.ms-issue-link {
		margin-top: 32px;
	}

	.ms-articles-more {
		margin-top: 40px;
	}

	.ms-btn-more {
		padding: 14px 32px;
		width: 100%;
		text-align: center;
	}
}
