/*!
 * MyGeneratorLab — front.css
 * Split from main.css for conditional loading (v3.6.0).
 */

/* 6. Hero (magazine homepage)
-------------------------------------------------- */

.mgl-hero-section {
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
	padding: 36px 0 8px;
}

.mgl-hero-grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 24px;
}

.mgl-hero-main {
	position: relative;
	border-radius: var(--mgl-radius-lg);
	overflow: hidden;
	background: var(--mgl-ink);
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	box-shadow: var(--mgl-shadow-md);
}

.mgl-hero-main-image {
	position: absolute;
	inset: 0;
}

.mgl-hero-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mgl-hero-main::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 12, 0) 30%, rgba(10, 10, 12, 0.55) 62%, rgba(10, 10, 12, 0.92) 100%);
	pointer-events: none;
}

.mgl-hero-main-body {
	position: relative;
	z-index: 2;
	padding: 36px;
	max-width: 640px;
}

.mgl-hero-main-title {
	font-size: 36px;
	margin: 14px 0 12px;
	line-height: 1.15;
}

.mgl-hero-main-title a {
	color: #fff;
}

.mgl-hero-main-title a:hover {
	color: #ffd9c7;
	text-decoration: none;
}

.mgl-hero-main-excerpt {
	color: rgba(255, 255, 255, 0.82);
	font-size: 16.5px;
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mgl-hero-main-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 13.5px;
}

.mgl-hero-main-meta img {
	border-radius: 50%;
}

.mgl-hero-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mgl-hero-card {
	display: grid;
	grid-template-columns: 148px 1fr;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--mgl-border);
	border-radius: var(--mgl-radius);
	padding: 12px;
	box-shadow: var(--mgl-shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	flex: 1;
}

.mgl-hero-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--mgl-shadow-md);
}

.mgl-hero-card-image {
	border-radius: 8px;
	overflow: hidden;
	display: block;
}

.mgl-hero-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	display: block;
}

.mgl-hero-card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.mgl-hero-card-title {
	font-size: 16.5px;
	margin: 8px 0 6px;
	line-height: 1.35;
}

.mgl-hero-card-title a {
	color: var(--mgl-ink);
}

.mgl-hero-card-title a:hover {
	color: var(--mgl-primary);
	text-decoration: none;
}

.mgl-hero-card-date {
	color: var(--mgl-muted);
	font-size: 12.5px;
}


/* 7. Section headers
-------------------------------------------------- */

.mgl-home-section {
	padding: 52px 0 8px;
}

.mgl-home-section-alt {
	background: var(--mgl-bg-soft);
	margin-top: 48px;
	padding-bottom: 56px;
}

.mgl-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--mgl-border);
	position: relative;
}

.mgl-section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 72px;
	height: 2px;
	background: var(--mgl-primary);
}

.mgl-section-title {
	font-size: 27px;
	margin: 0;
}

.mgl-section-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	font-size: 14.5px;
	color: var(--mgl-ink);
	white-space: nowrap;
}

.mgl-section-link:hover {
	color: var(--mgl-primary);
	text-decoration: none;
}

.mgl-section-link .mgl-icon {
	width: 16px;
	height: 16px;
}


/* 11. Newsletter band
-------------------------------------------------- */

.mgl-newsletter {
	background: linear-gradient(135deg, #1c1c1f 0%, #2a2a2e 100%);
	margin-top: 56px;
	padding: 56px 0;
	position: relative;
	overflow: hidden;
}

.mgl-newsletter::before {
	content: "";
	position: absolute;
	top: -80px;
	right: -80px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 87, 34, 0.25) 0%, rgba(255, 87, 34, 0) 70%);
}

.mgl-newsletter-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	position: relative;
	z-index: 1;
}

.mgl-newsletter-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(255, 87, 34, 0.15);
	color: var(--mgl-primary);
	margin-bottom: 16px;
}

.mgl-newsletter-icon .mgl-icon {
	width: 26px;
	height: 26px;
}

.mgl-newsletter-title {
	color: #fff;
	font-size: 28px;
	margin: 0 0 10px;
}

.mgl-newsletter-text {
	color: #b9bcc2;
	font-size: 16px;
	margin: 0;
}

.mgl-newsletter-placeholder {
	display: flex;
	gap: 10px;
}

.mgl-newsletter-placeholder input[type="email"] {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	font-size: 16px;
	font-family: inherit;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	min-width: 0;
}

.mgl-newsletter-placeholder input[type="email"]::placeholder {
	color: #8a8f96;
}

.mgl-newsletter-placeholder input[type="email"]:focus {
	outline: 2px solid var(--mgl-primary);
	border-color: var(--mgl-primary);
}

.mgl-newsletter-note {
	color: #8a8f96;
	font-size: 12.5px;
	margin: 10px 0 0;
}


/* 28. Responsive (split)
-------------------------------------------------- */
@media (max-width: 1024px) {
	.mgl-hero-grid {
		grid-template-columns: 1fr;
	}
	.mgl-hero-main {
		min-height: 380px;
	}
	.mgl-hero-side {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
	.mgl-hero-card {
		grid-template-columns: 1fr;
	}
	.mgl-hero-card-image img {
		aspect-ratio: 16 / 9;
	}
	.mgl-newsletter-inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}
@media (max-width: 768px) {
	.mgl-hero-section {
		padding-top: 24px;
	}
	.mgl-hero-main {
		min-height: 340px;
	}
	.mgl-hero-main-body {
		padding: 24px;
	}
	.mgl-hero-main-title {
		font-size: 26px;
	}
	.mgl-hero-side {
		grid-template-columns: 1fr;
	}
	.mgl-hero-card {
		grid-template-columns: 120px 1fr;
	}
	.mgl-newsletter-placeholder {
		flex-direction: column;
	}
}

/* 31. MyGeneratorLab 3.1 modern UI layer (split)
-------------------------------------------------- */
.mgl-hero-section {
	padding-top: 42px; background: radial-gradient(circle at 8% 0%, #fff1e9 0, transparent 34%), linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
.mgl-hero-main {
	border-radius: 24px;
}
.mgl-hero-main-body {
	padding: 42px;
}
.mgl-hero-main-title {
	font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.035em;
}
.mgl-hero-card, .mgl-card {
	border-color: #e9ecf1;
}
.mgl-section-head {
	border-bottom-color: #dfe3ea;
}
.mgl-hero-main-meta .mgl-author-trigger {
	color: #ffffff;
	cursor: pointer !important;
	border-bottom: none !important;
	font-weight: 600;
}
.mgl-hero-main-meta .mgl-author-trigger:hover {
	color: #ffd9c7;
	text-decoration: none;
}
@media (max-width: 768px) {
	.mgl-hero-main-body {
		padding: 28px 24px;
	}
}

/* 32. MyGeneratorLab article UX, responsive TOC, navigation and subscriptions (split)
-------------------------------------------------- */
.mgl-newsletter {
	margin-top: 0; padding: 0;
}
.mgl-newsletter-inner {
	padding-top: 28px; padding-bottom: 28px;
}
.mgl-newsletter-success {
	margin: 10px 0 0; color: #86efac; font-weight: 800; font-size: 13px;
}
.mgl-newsletter-placeholder {
	margin: 0;
}

/* 38. Archive and other pages — comprehensive responsive polish (split)
-------------------------------------------------- */
@media (max-width: 560px) {
	.mgl-hero-card {
		grid-template-columns: 1fr;
	}
	.mgl-hero-card-image img {
		aspect-ratio: 16 / 9;
	}
}
.mgl-card-image, .mgl-hero-card-image {
	overflow: hidden; width: 100%;
}
@media (max-width: 480px) {
	.mgl-newsletter-placeholder {
		flex-direction: column;
	}
	.mgl-newsletter-title {
		font-size: 22px;
	}
}

/* 38. Final article UX polish — TOC alignment, author media and post cards (split)
-------------------------------------------------- */
.mgl-author-identity,
.mgl-author-trigger,
.mgl-card-author .mgl-author-trigger,
.mgl-hero-main-meta .mgl-author-trigger {
	cursor: pointer !important;
}
.mgl-hero-main-meta .mgl-author-identity {
	isolation: isolate;
}
.mgl-card,
.mgl-hero-card {
	min-width: 0;
}
.mgl-card-image img,
.mgl-hero-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Shared hero rules (also in single.css for article hero) */
.mgl-hero-main, .mgl-article-hero {
	box-shadow: 0 20px 50px rgba(16, 24, 40, .16);
}
.mgl-article-hero-inner,
.mgl-article-hero-content,
.mgl-hero-main-meta {
	overflow: visible;
}
