﻿@charset "utf-8";

/* ============================================================
	mmain05 — 뉴스피드/대시보드형 메인
	============================================================ */

/* 네비 더보기 CTA 링크 — 프라이머리 배경 */
body.page-light-header .navi-more-list > a {
	background: var(--color-primary);
	color: #fff !important;
}

/* ============================================================
	본문
	============================================================ */
.nf-wrap {
	padding-top: 90px;
	min-height: 100vh;
	background: var(--color-bg-main, #fff);
}

/* ============================================================
	이슈 배너
	============================================================ */
.nf-banner {
	background: var(--color-bg-card, #f9fafb);
	border-bottom: 1px solid var(--color-border, #eee);
	padding: 14px 40px;
}

.nf-banner-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.nf-banner-tag {
	flex-shrink: 0;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--color-primary, #3b82f6);
	background: rgba(59, 130, 246, 0.12);
	padding: 4px 10px;
	border-radius: 4px;
}

.nf-banner-txt {
	flex: 1;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--color-text-sub, #6b7280);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nf-banner-link {
	flex-shrink: 0;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--color-primary, #3b82f6);
	font-weight: 500;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.nf-banner-link:hover {
	opacity: 0.75;
}

/* ============================================================
	3단 레이아웃
	============================================================ */
.nf-body {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 40px 80px;
	display: grid;
	grid-template-columns: 180px 1fr 280px;
	gap: 40px;
	align-items: start;
}

/* ============================================================
	좌측 — 카테고리 필터
	============================================================ */
.nf-sidebar-left {
	position: sticky;
	top: 110px;
}

.nf-filter-label {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--color-text-muted, #9ca3af);
	margin-bottom: 10px;
}

.nf-filter-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nf-filter-btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 9px 12px;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 400;
	color: var(--color-text-sub, #6b7280);
	border-radius: 6px;
	background: transparent;
	border: none;
	cursor: pointer;
	transition:
		background 0.15s,
		color 0.15s;
}

.nf-filter-btn:hover {
	background: var(--color-hover, #f3f4f6);
	color: var(--color-text-main, #111827);
}

.nf-filter-btn.is-active {
	background: var(--color-hover, #f3f4f6);
	color: var(--color-text-main, #111827);
	font-weight: 600;
}

.nf-filter-divider {
	height: 1px;
	background: var(--color-border, #eee);
	margin: 20px 0;
}

.nf-issue-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nf-issue-vol {
	font-family: "GMarketSans", sans-serif;
	font-size: clamp(20px, calc(16px + 0.5vw), 26px);
	font-weight: 700;
	color: var(--color-text-main, #111827);
}

.nf-issue-date {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--color-text-muted, #9ca3af);
}

.nf-issue-desc {
	margin-top: 8px;
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--color-text-muted, #9ca3af);
}

/* ============================================================
	중앙 — 피드
	============================================================ */
.nf-feed {
	min-width: 0;
}

/* 카드 공통 */
.nf-card {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 0.5s ease,
		transform 0.5s ease;
}

.nf-card.is-visible {
	opacity: 1;
	transform: none;
}

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

.nf-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* 피처드 카드 */
.nf-card--featured {
	margin-bottom: 32px;
}

.nf-card--featured .nf-card-link {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--color-border, #eee);
	transition: box-shadow 0.25s;
}

.nf-card--featured .nf-card-link:hover {
	box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
}

.nf-card--featured .nf-card-img {
	/*aspect-ratio: 4 / 3;*/
	overflow: hidden;
}

.nf-card--featured .nf-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.nf-card--featured .nf-card-link:hover .nf-card-img img {
	transform: scale(1.04);
}

.nf-card--featured .nf-card-body {
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
}

.nf-card--featured .nf-card-tit {
	font-family: "GMarketSans", sans-serif;
	font-size: clamp(20px, calc(14px + 0.8vw), 28px);
	font-weight: 700;
	color: var(--color-text-main, #111827);
	word-break: keep-all;
}

.nf-card--featured .nf-card-desc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--color-text-sub, #6b7280);
	word-break: keep-all;
}

/* 리스트 카드 */
.nf-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.nf-card--row {
	border-bottom: 1px solid var(--color-border, #eee);
}

.nf-card--row:first-child {
	border-top: 1px solid var(--color-border, #eee);
}

.nf-card--row .nf-card-link {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 20px;
	padding: 20px 4px;
	transition: background 0.15s;
	border-radius: 8px;
}

.nf-card--row .nf-card-link:hover {
	background: var(--color-hover, #f3f4f6);
	padding-left: 12px;
	padding-right: 12px;
	margin: 0 -8px;
}

.nf-card--row .nf-card-img {
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.nf-card--row .nf-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.nf-card--row .nf-card-link:hover .nf-card-img img {
	transform: scale(1.06);
}

.nf-card--row .nf-card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nf-card--row .nf-card-tit {
	font-size: clamp(16px, calc(11px + 0.9vw), 20px);
	font-weight: 600;
	color: var(--color-text-main, #111827);
	word-break: keep-all;
}

.nf-card--row .nf-card-desc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--color-text-sub, #6b7280);
	word-break: keep-all;
	margin-top: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 카테고리 태그 */
.nf-card-cat {
	display: inline-block;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
}

.nf-cat--bnk {
	color: #1d4ed8;
	background: #eff6ff;
}
.nf-cat--life {
	color: #065f46;
	background: #ecfdf5;
}
.nf-cat--wealth {
	color: #92400e;
	background: #fffbeb;
}
.nf-cat--culture {
	color: #6b21a8;
	background: #faf5ff;
}

/* 메타 (작성자/날짜) */
.nf-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.nf-card-writer,
.nf-card-date {
	font-size: 15px;
	color: var(--color-text-muted, #9ca3af);
}

.nf-card-writer::after {
	content: "\00B7";
	margin-left: 10px;
}

/* 결과 없음 */
.nf-empty {
	display: none;
	padding: 60px 0;
	text-align: center;
	color: var(--color-text-muted, #9ca3af);
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
}

.nf-empty.is-visible {
	display: block;
}

/* ============================================================
	우측 — 위젯
	============================================================ */
.nf-sidebar-right {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.nf-widget {
	border: 1px solid var(--color-border, #eee);
	border-radius: 12px;
	padding: 24px 20px;
}

.nf-widget-tit {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	color: var(--color-text-main, #111827);
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-border, #eee);
}

/* 에디터 픽 */
.nf-pick-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nf-pick-item {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.nf-pick-item:hover {
	opacity: 0.72;
}

.nf-pick-img {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
}

.nf-pick-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nf-pick-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nf-pick-cat {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 500;
	color: var(--color-text-muted, #9ca3af);
	text-transform: uppercase;
}

.nf-pick-tit {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 500;
	color: var(--color-text-main, #111827);
	word-break: keep-all;
}

/* 구독 CTA */
.nf-widget--cta {
	background: var(--color-primary, #3b82f6);
	border-color: transparent;
}

.nf-cta-label {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 8px;
}

.nf-cta-tit {
	font-family: "GMarketSans", sans-serif;
	font-size: clamp(18px, calc(14px + 0.5vw), 22px);
	font-weight: 700;
	color: #fff;
	margin-bottom: 10px;
}

.nf-cta-desc {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: rgba(255, 255, 255, 0.75);
	word-break: keep-all;
	margin-bottom: 18px;
}

.nf-cta-btn {
	display: block;
	text-align: center;
	padding: 11px 0;
	background: #fff;
	color: var(--color-primary, #3b82f6);
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition: opacity 0.2s;
}

.nf-cta-btn:hover {
	opacity: 0.88;
}

/* 인기 기사 */
.nf-rank-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nf-rank-list > li > a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.nf-rank-list > li > a:hover {
	opacity: 0.7;
}

.nf-rank-num {
	font-family: "GMarketSans", sans-serif;
	font-size: clamp(16px, calc(11px + 0.9vw), 20px);
	font-weight: 700;
	color: var(--color-border-strong, #d1d5db);
	flex-shrink: 0;
}

.nf-rank-tit {
	font-size: clamp(14px, calc(10px + 0.8vw), 18px);
	color: var(--color-text-main, #111827);
	word-break: keep-all;
}

/* ============================================================
	반응형 — 999px 이하
	============================================================ */
@media all and (max-width: 999px) {
	.nf-wrap {
		padding-top: 70px;
	}

	.nf-banner {
		padding: 12px 20px;
	}

	.nf-body {
		grid-template-columns: 1fr;
		padding: 24px 20px 60px;
		gap: 32px;
	}

	.nf-sidebar-left {
		position: static;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
	}

	.nf-filter-label {
		display: none;
	}

	.nf-filter-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}

	.nf-filter-divider,
	.nf-issue-info {
		display: none;
	}

	.nf-filter-btn {
		padding: 6px 14px;
		border: 1px solid var(--color-border, #eee);
	}

	.nf-filter-btn.is-active {
		background: var(--color-text-main, #111827);
		color: #fff;
		border-color: transparent;
	}

	.nf-card--featured .nf-card-link {
		grid-template-columns: 1fr;
	}

	.nf-card--featured .nf-card-img {
		aspect-ratio: 16 / 9;
	}

	.nf-sidebar-right {
		position: static;
	}
}

/* ============================================================
	반응형 — 768px 이하
	============================================================ */
@media all and (max-width: 768px) {
	.nf-banner-txt {
		display: none;
	}

	.nf-body {
		padding: 20px 15px 48px;
	}

	.nf-card--row .nf-card-link {
		grid-template-columns: 90px 1fr;
		gap: 14px;
	}
}

/* ============================================================
	반응형 — 499px 이하
	============================================================ */
@media all and (max-width: 499px) {
	.nf-card--row .nf-card-link {
		grid-template-columns: 80px 1fr;
		gap: 12px;
		padding: 16px 4px;
	}

	.nf-card--row .nf-card-desc {
		display: none;
	}
}
