@import "blog-shared.css";

/**
 * Blog listing (posts page). Figma "Blogs Listing" 333:14953.
 */

/* ---- Hero -------------------------------------------------------------- */
.ne-blog-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--ne-primary-600);
}
.ne-blog-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ne-blog-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ne-blog-hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(14, 7, 57, 0.88) 0%, rgba(14, 7, 57, 0.6) 45%, rgba(14, 7, 57, 0.25) 100%);
}
.ne-blog-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ne-space-2xl);
	padding-block: var(--ne-space-6xl);
}
.ne-blog-hero__content { max-width: 620px; }
.ne-blog-hero__title { color: var(--ne-neutral-100); margin: 0 0 var(--ne-space-m); }
.ne-blog-hero__sub { color: var(--ne-neutral-200); font-size: var(--ne-b1-size); line-height: var(--ne-b1-line); margin: 0; }
.ne-blog-hero__jump {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	color: var(--ne-neutral-100);
	transition: background .18s ease;
}
.ne-blog-hero__jump:hover { background: rgba(255, 255, 255, 0.28); }
.ne-blog-hero__jump .ne-icon { width: 24px; height: 24px; transform: rotate(90deg); }

/* ---- Search Blogs card (overlaps hero) --------------------------------- */
.ne-blog-search {
	position: relative;
	z-index: 3;
	margin-top: -56px;
	margin-bottom: var(--ne-space-2xl);
	background: var(--ne-neutral-100);
	border-radius: 20px;
	box-shadow: var(--ne-shadow-deep);
	padding: var(--ne-space-2xl);
}
.ne-blog-search__head {
	display: flex;
	align-items: center;
	gap: var(--ne-space-xs);
	margin-bottom: var(--ne-space-l);
	color: var(--ne-secondary-400);
}
.ne-blog-search__head .ne-icon { width: 22px; height: 22px; }
.ne-blog-search__title { margin: 0; font-size: var(--ne-h6-size); line-height: 1.2; color: var(--ne-primary-500); }
.ne-blog-search__row {
	display: grid;
	grid-template-columns: 1.4fr 1fr auto;
	align-items: end;
	gap: var(--ne-space-m);
}
.ne-blog-search__row .ne-field { margin-bottom: 0; }
.ne-blog-search__submit { height: 48px; }

/* ---- Trending track: taller media on the trending cards ---------------- */
.ne-trending__track .ne-card--post .ne-card__media { aspect-ratio: 16 / 11; }

/* ---- Empty state ------------------------------------------------------- */
.ne-blog-empty {
	padding: var(--ne-space-4xl);
	text-align: center;
	color: var(--ne-neutral-700);
	background: var(--ne-primary-a10);
	border-radius: 16px;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
	.ne-blog-hero { min-height: 440px; }
	.ne-blog-search__row { grid-template-columns: 1fr 1fr; }
	.ne-blog-search__submit { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.ne-blog-hero { min-height: 380px; }
	.ne-blog-hero__jump { display: none; }
	.ne-blog-search { margin-top: -40px; padding: var(--ne-space-l); }
	.ne-blog-search__row { grid-template-columns: 1fr; }
}
