/**
 * Smart MFO Sync — News Hub Styles
 */

/* ============ ARCHIVE / FEED ============ */

.smfo-news-archive {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px;
}

.smfo-news-archive-header {
	margin-bottom: 20px;
}

.smfo-news-archive-header h1 {
	font-size: clamp(24px, 4vw, 34px);
	margin: 0 0 8px;
	color: #111827;
	font-weight: 800;
}

.smfo-news-archive-header p {
	color: #6b7280;
	margin: 0;
}

/* Tabs категорій */
.smfo-news-cats-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
	scrollbar-width: thin;
}

.smfo-news-cats-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 16px;
	color: #4b5563;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px 8px 0 0;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
	transition: all 0.15s;
}

.smfo-news-cats-tabs a:hover {
	color: #2271b1;
	background: #f9fafb;
}

.smfo-news-cats-tabs a.active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	background: #f0f9ff;
}

.smfo-news-cats-tabs small {
	color: #9ca3af;
	font-weight: 400;
}

/* Feed */
.smfo-news-feed {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 30px;
}

.smfo-news-card {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 18px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
	transition: all 0.15s;
}

.smfo-news-card:hover {
	border-color: #2271b1;
	box-shadow: 0 4px 16px rgba(34, 113, 177, 0.08);
}

.smfo-news-card-thumb {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.smfo-news-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smfo-news-card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.smfo-news-card-cat {
	display: inline-block;
	background: #dbeafe;
	color: #1e40af;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 10px;
	text-decoration: none;
	margin-bottom: 8px;
	align-self: flex-start;
}

.smfo-news-card-body h2 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.smfo-news-card-body h2 a {
	color: #111827;
	text-decoration: none;
}

.smfo-news-card-body h2 a:hover {
	color: #2271b1;
}

.smfo-news-card-body p {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 10px;
}

.smfo-news-card-meta {
	margin-top: auto;
	color: #9ca3af;
}

.smfo-news-card-meta small {
	font-size: 12px;
}

/* Empty state */
.smfo-news-empty {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 60px 20px;
	text-align: center;
}

.smfo-news-empty h2 {
	color: #6b7280;
	margin: 0 0 8px;
}

/* ============ SINGLE NEWS ============ */

.smfo-news-single {
	max-width: 760px;
	margin: 0 auto;
	padding: 16px;
}

.smfo-news-breadcrumbs {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 14px;
}

.smfo-news-breadcrumbs a {
	color: #2271b1;
	text-decoration: none;
}

.smfo-news-breadcrumbs span {
	margin: 0 4px;
	color: #d1d5db;
}

.smfo-news-header {
	margin-bottom: 24px;
}

.smfo-news-cat-badge {
	display: inline-block;
	background: #dbeafe;
	color: #1e40af;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 12px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.smfo-news-header h1 {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 16px;
	color: #111827;
	letter-spacing: -0.5px;
}

.smfo-news-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	color: #6b7280;
	font-size: 13px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e7eb;
}

.smfo-news-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.smfo-news-lead {
	font-size: 18px;
	line-height: 1.55;
	color: #374151;
	font-weight: 500;
	margin-bottom: 16px;
}

.smfo-news-featured {
	margin: 24px auto;
	max-width: 800px;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f4f6;
}

.smfo-news-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	image-rendering: -webkit-optimize-contrast;
}

/* Content */
.smfo-news-content {
	font-size: 16px;
	line-height: 1.7;
	color: #1f2937;
}

.smfo-news-content h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 36px 0 14px;
	color: #111827;
	line-height: 1.3;
}

.smfo-news-content h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 28px 0 10px;
	color: #1f2937;
}

.smfo-news-content p {
	margin: 0 0 18px;
}

.smfo-news-content ul,
.smfo-news-content ol {
	margin: 0 0 18px;
	padding-left: 24px;
}

.smfo-news-content li {
	margin-bottom: 8px;
}

.smfo-news-content strong {
	color: #111827;
	font-weight: 700;
}

.smfo-news-content a {
	color: #2271b1;
	text-decoration: underline;
}

/* CTA Block */
.smfo-news-cta-block {
	margin: 36px 0;
	padding: 24px;
	background: linear-gradient(135deg, #1e40af 0%, #2271b1 100%);
	color: #fff;
	border-radius: 14px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 18px;
	align-items: center;
}

.smfo-news-cta-icon {
	font-size: 40px;
	line-height: 1;
}

.smfo-news-cta-text h3 {
	margin: 0 0 4px;
	font-size: 18px;
	color: #fff;
	font-weight: 700;
}

.smfo-news-cta-text p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.92);
}

.smfo-news-cta-text strong {
	color: #fde047;
}

.smfo-news-cta-btn {
	display: inline-block;
	background: #fde047;
	color: #1e40af !important;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.15s;
}

.smfo-news-cta-btn:hover {
	transform: scale(1.05);
}

/* Related news */
.smfo-news-related {
	margin: 40px 0 20px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.smfo-news-related h2 {
	font-size: 22px;
	margin: 0 0 18px;
	color: #111827;
}

.smfo-news-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.smfo-news-related-card {
	display: block;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	transition: all 0.15s;
}

.smfo-news-related-card:hover {
	border-color: #2271b1;
	transform: translateY(-2px);
}

.smfo-news-related-thumb {
	aspect-ratio: 16 / 10;
}

.smfo-news-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smfo-news-related-card h3 {
	font-size: 14px;
	color: #111827;
	margin: 12px;
	line-height: 1.35;
}

.smfo-news-related-card small {
	display: block;
	margin: 0 12px 12px;
	color: #9ca3af;
	font-size: 12px;
}

/* AI Disclaimer — compliance-required but visually unobtrusive (small print style). */
.smfo-news-disclaimer {
	margin-top: 32px;
	padding: 8px 12px;
	background: #f9fafb;
	border-left: 2px solid #d1d5db;
	border-radius: 4px;
	font-size: 11px;
	color: #6b7280;
	line-height: 1.5;
	font-style: italic;
}

/* ============ MOBILE ============ */

@media (max-width: 700px) {
	.smfo-news-card {
		grid-template-columns: 100px 1fr;
		gap: 12px;
		padding: 12px;
	}

	.smfo-news-card-body h2 {
		font-size: 15px;
	}

	.smfo-news-card-body p {
		display: none;
	}

	.smfo-news-cta-block {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 20px;
	}

	.smfo-news-cta-icon {
		font-size: 32px;
	}

	.smfo-news-featured {
		margin: 20px -16px;
		border-radius: 0;
	}
}

@media (max-width: 500px) {
	.smfo-news-card {
		grid-template-columns: 1fr;
	}

	.smfo-news-card-thumb {
		max-width: 100%;
	}
}
