/* QA FIX: extract homepage-specific presentation styles from index.html for cleaner public UI maintenance */

.search-container {
	margin: 2rem 0 3rem 0;
}

.search-wrapper {
	position: relative;
	max-width: 600px;
	margin: 0 auto;
}

.search-input {
	width: 100%;
	padding: 14px 48px 14px 16px;
	font-size: 16px;
	border: 2px solid var(--border);
	border-radius: 8px;
	background: var(--card);
	color: var(--text);
	transition: all 0.2s ease;
	font-family: inherit;
}

.search-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

.search-input::placeholder {
	color: var(--muted);
}

.search-clear {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 24px;
	color: var(--muted);
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
	line-height: 1;
}

.search-clear:hover {
	color: var(--text);
	background: var(--border);
}

.hero-section {
	background:
		radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.16), transparent 42%),
		linear-gradient(165deg, var(--accent-light) 0%, #f8fafc 42%, var(--card) 100%);
	padding: clamp(2.4rem, 5vw, 4rem) 0;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--border);
}

.hero-content {
	text-align: center;
	max-width: 840px;
	margin: 0 auto;
	padding: 0 0.5rem;
}

.hero-kicker,
.section-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(var(--accent-rgb), 0.1);
	color: var(--accent-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.hero-title {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	margin: 0 0 0.75rem 0;
	line-height: 1.08;
	letter-spacing: -0.04em;
	color: var(--accent-dark);
}

.hero-tagline {
	font-size: clamp(0.95rem, 2.2vw, 1.15rem);
	font-weight: 600;
	color: var(--muted);
	margin: 0 0 0.65rem 0;
	line-height: 1.45;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.hero-description {
	font-size: 1.05rem;
	color: var(--text-secondary, var(--muted));
	margin: 0 auto 1.75rem auto;
	line-height: 1.65;
	max-width: 42rem;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.hero-actions .btn {
	min-width: 200px;
}

.featured-article-section {
	margin: 1.5rem 0 1.75rem 0;
	padding: 1.25rem;
	background: var(--panel-surface);
	border: 1px solid var(--surface-outline);
	border-radius: 18px;
	box-shadow: var(--shadow);
}

.featured-article-section:empty {
	display: none;
}

.featured-article-header,
.articles-browser-header {
	text-align: center;
	margin-bottom: 1rem;
}

.section-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem 0;
	color: var(--text);
	letter-spacing: -0.02em;
}

.section-subtitle {
	font-size: 0.9rem;
	color: var(--muted);
	margin: 0;
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

.featured-article-container {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.9rem;
	width: 100%;
}

.featured-article-card {
	background: var(--card);
	border: 1px solid rgba(var(--accent-rgb), 0.24);
	border-radius: 14px;
	padding: 1rem;
	box-shadow: var(--shadow);
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	width: 100%;
}

.featured-article-card:hover {
	box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.14);
	transform: translateY(-2px);
}

.featured-article-content {
	width: 100%;
}

.featured-article-content h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.375rem 0;
	line-height: 1.3;
}

.featured-article-content h3 a {
	color: var(--text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.featured-article-content h3 a:hover {
	color: var(--accent);
}

.featured-article-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.375rem;
	flex-wrap: wrap;
}

.featured-article-excerpt {
	font-size: 0.875rem;
	color: var(--muted);
	line-height: 1.55;
	margin-bottom: 0.5rem;
}

.featured-article-actions {
	display: flex;
	gap: 0.5rem;
}

.featured-article-actions .read-more-btn {
	font-size: 0.8125rem;
	padding: 8px 16px;
}

.articles-browser-header {
	margin-top: 0.5rem;
}

@media (min-width: 768px) {
	.hero-title {
		font-size: 3.5rem;
	}

	.featured-article-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.featured-article-content h3 {
		font-size: 1.125rem;
	}
}

@media (max-width: 768px) {
	.hero-section {
		padding: 2rem 0;
		margin-bottom: 1.5rem;
	}

	.hero-title {
		font-size: 2.25rem;
	}

	.hero-tagline {
		font-size: 1.05rem;
	}

	.hero-description {
		font-size: 0.95rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .btn {
		width: 100%;
		min-width: unset;
	}

	.featured-article-section {
		margin: 1rem 0 1.25rem 0;
		padding: 1rem;
	}

	.featured-article-card {
		padding: 0.75rem;
	}

	.featured-article-content h3 {
		font-size: 0.9375rem;
	}

	.section-title {
		font-size: 1rem;
	}
}
