/*
 * NUEFELT Blog & Editorial Journal Stylesheet
 * Responsive, clean, minimalist menswear magazine aesthetic.
 */

/* =========================================================
   1. BLOG ARCHIVE & LANDING PAGE
   ========================================================= */

.nf-blog-page {
	background: var(--nf-white, #ffffff);
	padding-bottom: 60px;
}

/* Header Section */
.nf-blog-header {
	background: #fafafa;
	border-bottom: 1px solid var(--nf-line, #e6e6e6);
	padding: 48px 0 40px;
}

.nf-blog-header__inner {
	max-width: none;
}

.nf-blog-eyebrow {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nf-brand, #ff625f);
	margin-bottom: 8px;
}

.nf-blog-title {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--nf-black, #111111);
	margin: 0 0 14px;
}

.nf-blog-intro {
	max-width: 720px;
	font-size: 15px;
	line-height: 1.65;
	color: #555555;
	margin-bottom: 24px;
}

.nf-blog-intro p {
	margin: 0 0 12px;
}
.nf-blog-intro p:last-child {
	margin-bottom: 0;
}

/* Category Filter Bar */
.nf-blog-categories {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 12px;
}

.nf-cat-pill {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: #333333;
	background: #ffffff;
	border: 1px solid #dedede;
	text-decoration: none;
	transition: all 0.18s ease;
	line-height: 1.4;
}

.nf-cat-pill:hover,
.nf-cat-pill.is-active {
	background: var(--nf-black, #111111);
	color: #ffffff;
	border-color: var(--nf-black, #111111);
}

/* Blog Body & Container */
.nf-blog-body {
	padding-top: 40px;
}

/* Featured Article Card */
.nf-blog-featured-card {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--nf-line, #e6e6e6);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 56px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
	transition: box-shadow 0.25s ease;
}

.nf-blog-featured-card:hover {
	box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.nf-blog-featured-card__media-wrap {
	display: block;
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	aspect-ratio: 16 / 10;
	max-height: 380px;
}

.nf-blog-featured-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.nf-blog-featured-card:hover .nf-blog-featured-card__img {
	transform: scale(1.03);
}

.nf-blog-featured-card__content {
	padding: 32px 36px 32px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.nf-blog-card__meta {
	font-size: 12.5px;
	color: #777777;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.nf-blog-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--nf-brand, #ff625f);
	background: rgba(255, 98, 95, 0.08);
	padding: 3px 8px;
	border-radius: 4px;
	text-decoration: none;
}

.nf-blog-meta-dot {
	color: #bbb;
}

.nf-blog-featured-card__title {
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--nf-black, #111111);
	margin: 0 0 14px;
}

.nf-blog-featured-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.nf-blog-featured-card__title a:hover {
	color: var(--nf-brand, #ff625f);
}

.nf-blog-featured-card__excerpt {
	font-size: 14.5px;
	line-height: 1.6;
	color: #555555;
	margin: 0 0 24px;
}

.nf-blog-read-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

/* AJAX Loading & Grid Wrapper */
.nf-blog-grid-wrap {
	position: relative;
	min-height: 260px;
	transition: opacity 0.25s ease;
}

.nf-blog-grid-wrap.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.nf-blog-loading-spinner {
	position: absolute;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	width: 36px;
	height: 36px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	border-top-color: var(--nf-brand, #ff625f);
	animation: nf-spin 0.7s linear infinite;
	z-index: 10;
	display: none;
}

.nf-blog-grid-wrap.is-loading .nf-blog-loading-spinner {
	display: block;
}

@keyframes nf-spin {
	to {
		transform: translateX(-50%) rotate(360deg);
	}
}

/* Standard Article Cards Grid */
.nf-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 24px;
	margin-bottom: 50px;
}

.nf-blog-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #ebebeb;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nf-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.nf-blog-card__media-wrap {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f4f4f4;
}

.nf-blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.nf-blog-card:hover .nf-blog-card__img {
	transform: scale(1.04);
}

.nf-blog-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(17, 17, 17, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 9px;
	border-radius: 4px;
	z-index: 1;
}

.nf-blog-card__content {
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nf-blog-card__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nf-black, #111111);
	margin: 0 0 10px;
}

.nf-blog-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.nf-blog-card__title a:hover {
	color: var(--nf-brand, #ff625f);
}

.nf-blog-card__excerpt {
	font-size: 13.5px;
	line-height: 1.55;
	color: #666666;
	margin: 0 0 16px;
	flex: 1;
}

.nf-blog-card__link {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--nf-black, #111111);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	transition: gap 0.15s ease, color 0.15s ease;
}

.nf-blog-card__link:hover {
	color: var(--nf-brand, #ff625f);
	gap: 10px;
}

/* Placeholder */
.nf-blog-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 200px;
	background: linear-gradient(135deg, #1c1c1f 0%, #2e2f38 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	gap: 8px;
}

.nf-blog-placeholder-icon {
	font-size: 24px;
	color: var(--nf-brand, #ff625f);
}

.nf-blog-placeholder-text {
	font-size: 11px;
	letter-spacing: 0.15em;
	font-weight: 600;
	opacity: 0.8;
}

/* Pagination */
.nf-blog-pagination {
	margin: 40px 0 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

.nf-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 4px;
	font-size: 13.5px;
	font-weight: 500;
	color: #333333;
	border: 1px solid #dddddd;
	text-decoration: none;
	transition: all 0.15s ease;
}

.nf-blog-pagination .page-numbers.current,
.nf-blog-pagination .page-numbers:hover {
	background: var(--nf-black, #111111);
	color: #ffffff;
	border-color: var(--nf-black, #111111);
}

/* Empty State */
.nf-blog-empty {
	text-align: center;
	padding: 60px 20px;
}

.nf-blog-empty__text {
	font-size: 16px;
	color: #666;
	margin-bottom: 20px;
}

/* CTA Bottom Banner */
.nf-blog-cta {
	background: var(--nf-black, #111111);
	color: #ffffff;
	border-radius: 10px;
	padding: 56px 24px;
	text-align: center;
	margin: 40px 0 20px;
}

.nf-blog-cta__inner {
	max-width: 680px;
	margin: 0 auto;
}

.nf-blog-cta__eyebrow {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--nf-brand, #ff625f);
	margin-bottom: 10px;
}

.nf-blog-cta__title {
	font-size: clamp(22px, 3.2vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	margin: 0 0 12px;
}

.nf-blog-cta__copy {
	font-size: 14.5px;
	line-height: 1.6;
	color: #cccccc;
	margin: 0 0 28px;
}

.nf-blog-cta .nf-button,
.nf-blog-cta .nf-button--light,
.nf-blog-cta .nf-button.nf-button--light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff !important;
	border: 1.5px solid #ffffff !important;
	color: #111111 !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 13px 32px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nf-blog-cta .nf-button:hover,
.nf-blog-cta .nf-button--light:hover,
.nf-blog-cta .nf-button.nf-button--light:hover,
.nf-blog-cta a.nf-button:hover {
	background: #f0f0f0 !important;
	border-color: #f0f0f0 !important;
	color: #111111 !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   2. SINGLE BLOG POST ARTICLE
   ========================================================= */

.nf-single-post-page {
	background: #ffffff;
	padding-bottom: 60px;
}

/* Breadcrumbs */
.nf-post-breadcrumbs {
	padding: 24px 0 12px;
	font-size: 12.5px;
	color: #777777;
}

.nf-post-breadcrumbs ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.nf-post-breadcrumbs a {
	color: #555555;
	text-decoration: none;
	transition: color 0.15s ease;
}

.nf-post-breadcrumbs a:hover {
	color: var(--nf-black, #111111);
}

.nf-post-breadcrumbs .nf-sep {
	color: #bbb;
}

.nf-post-breadcrumbs .is-current {
	color: #999999;
}

/* Post Header */
.nf-post-header {
	padding: 20px 0 32px;
}

.nf-post-header__inner {
	max-width: 820px;
	margin: 0 auto;
}

.nf-post-meta-top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.nf-post-title {
	font-size: clamp(28px, 4.5vw, 44px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--nf-black, #111111);
	margin: 0 0 20px;
}

.nf-post-meta-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nf-author-avatar img {
	border-radius: 50%;
	width: 42px;
	height: 42px;
	display: block;
}

.nf-author-details {
	display: flex;
	flex-direction: column;
}

.nf-author-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--nf-black, #111111);
}

.nf-post-date {
	font-size: 12px;
	color: #777777;
}

/* Featured Media */
.nf-post-featured-media {
	max-width: 1040px;
	margin: 0 auto 36px;
}

.nf-post-media-box {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
}

.nf-post-featured-img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.nf-post-media-caption {
	font-size: 12px;
	color: #888888;
	text-align: center;
	padding: 8px 0 0;
	font-style: italic;
}

/* Article Layout & Content */
.nf-post-layout {
	max-width: 820px;
	margin: 0 auto;
}

.nf-post-content {
	font-size: 16.5px;
	line-height: 1.8;
	color: #262626;
}

.nf-post-content .lead-paragraph {
	font-size: 18.5px;
	line-height: 1.7;
	color: #111111;
	font-weight: 400;
	margin-bottom: 24px;
}

.nf-post-content h2 {
	font-size: clamp(22px, 2.5vw, 26px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--nf-black, #111111);
	margin: 40px 0 16px;
}

.nf-post-content h3 {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nf-black, #111111);
	margin: 32px 0 14px;
}

.nf-post-content p {
	margin: 0 0 22px;
}

.nf-post-content blockquote {
	margin: 32px 0;
	padding: 18px 24px;
	background: #f8f8f8;
	border-left: 3px solid var(--nf-brand, #ff625f);
	font-style: italic;
	font-size: 17px;
	line-height: 1.6;
	color: #333333;
}

.nf-post-content ul,
.nf-post-content ol {
	padding-left: 24px;
	margin: 0 0 24px;
}

.nf-post-content li {
	margin-bottom: 8px;
	line-height: 1.65;
}

.nf-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 24px 0;
}

/* Tags */
.nf-post-tags {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 24px;
	margin-top: 36px;
	border-top: 1px solid #eeeeee;
}

.nf-post-tags__label {
	font-size: 13px;
	font-weight: 600;
	color: #555555;
}

.nf-post-tags__list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.nf-tag-pill {
	font-size: 12px;
	color: #555555;
	background: #f4f4f4;
	padding: 4px 12px;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.nf-tag-pill:hover {
	background: #111111;
	color: #ffffff;
}

/* Share Bar */
.nf-post-share-bar {
	margin: 32px 0;
	padding: 18px 22px;
	background: #fafafa;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.nf-share-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #333333;
}

.nf-share-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.nf-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #d5d5d5;
	background: #ffffff;
	color: #333333;
	cursor: pointer;
	transition: all 0.18s ease;
}

.nf-share-btn:hover {
	border-color: #111111;
	color: #111111;
}

.nf-share-wa:hover {
	color: #25d366;
	border-color: #25d366;
}

.nf-share-fb:hover {
	color: #1877f2;
	border-color: #1877f2;
}

/* Brand Box */
.nf-post-brand-box {
	margin: 40px 0;
	padding: 28px;
	background: var(--nf-surface-warm, #f5f3ef);
	border-radius: 8px;
	text-align: center;
}

.nf-post-brand-box__logo {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--nf-brand, #ff625f);
	margin-bottom: 8px;
}

.nf-post-brand-box__text {
	font-size: 14.5px;
	line-height: 1.6;
	color: #444444;
	max-width: 580px;
	margin: 0 auto 18px;
}

.nf-button--sm {
	padding: 8px 20px;
	font-size: 12.5px;
}

/* Navigation Previous / Next */
.nf-post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 36px 0;
	padding-top: 24px;
	border-top: 1px solid #eeeeee;
}

.nf-post-nav-item {
	display: flex;
	flex-direction: column;
}

.nf-post-nav-next {
	text-align: right;
	align-items: flex-end;
}

.nf-post-nav-label {
	font-size: 12px;
	color: #888888;
	margin-bottom: 4px;
}

.nf-post-nav-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--nf-black, #111111);
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.15s ease;
}

.nf-post-nav-title:hover {
	color: var(--nf-brand, #ff625f);
}

/* Related Stories Section */
.nf-related-posts-section {
	padding: 60px 0;
	background: #fafafa;
	border-top: 1px solid #eeeeee;
	margin-top: 60px;
}

.nf-related-posts-section .nf-section-heading {
	margin-bottom: 32px;
}

.nf-related-posts-section .nf-section-heading h2 {
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	margin: 4px 0 0;
	color: var(--nf-black, #111111);
}


/* =========================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 960px) {
	.nf-blog-featured-card {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.nf-blog-featured-card__content {
		padding: 24px;
	}
	.nf-blog-featured-card__media-wrap {
		max-height: 300px;
	}
	.nf-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 20px;
	}
}

@media (max-width: 768px) {
	/* Mobile Category Horizontal Scroll */
	.nf-blog-categories {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		gap: 8px !important;
		padding-top: 10px !important;
		padding-bottom: 12px !important;
		margin-left: -14px !important;
		margin-right: -14px !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	.nf-blog-categories::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
	}

	.nf-cat-pill {
		flex: 0 0 auto !important;
		white-space: nowrap !important;
		font-size: 13px !important;
		padding: 7px 16px !important;
	}

	/* Mobile Single Blog: 4:3 Featured Image Ratio */
	.nf-post-featured-media {
		margin: 0 auto 22px !important;
	}

	.nf-post-media-box {
		width: 100% !important;
		aspect-ratio: 4 / 3 !important;
		overflow: hidden !important;
		border-radius: 8px !important;
		position: relative !important;
	}

	.nf-post-featured-img {
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		aspect-ratio: 4 / 3 !important;
		object-fit: cover !important;
		display: block !important;
	}
}

@media (max-width: 640px) {
	.nf-blog-header {
		padding: 32px 0 24px;
	}
	.nf-blog-title {
		font-size: 26px;
		margin-bottom: 10px;
	}
	.nf-blog-intro {
		font-size: 14px;
		margin-bottom: 18px;
	}
	.nf-blog-grid {
		grid-template-columns: 1fr;
	}
	.nf-blog-cta {
		padding: 40px 18px;
		margin: 32px 0 16px;
	}
	.nf-blog-cta__title {
		font-size: 22px;
	}
	.nf-post-header {
		padding: 16px 0 20px;
	}
	.nf-post-title {
		font-size: 23px;
		margin-bottom: 14px;
	}
	.nf-post-navigation {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.nf-post-nav-next {
		text-align: left;
		align-items: flex-start;
	}
	.nf-post-share-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

