/**
 * Smart MFO Sync — Taxonomy Template Styles
 */

.smfo-taxonomy {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px;
	color: #111827;
}

/* ============ HERO ============ */

.smfo-tax-hero {
	background: linear-gradient(135deg, #1a56db 0%, #1e40af 50%, #1e3a8a 100%);
	color: #fff;
	border-radius: 20px;
	padding: 36px 24px;
	margin-bottom: 16px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(30, 64, 175, 0.25);
}

.smfo-tax-hero-icon {
	font-size: 56px;
	line-height: 1;
	margin-bottom: 12px;
}

.smfo-tax-hero h1 {
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 800;
	margin: 0 0 12px;
	color: #fff;
	line-height: 1.15;
	letter-spacing: -0.5px;
}

.smfo-tax-desc {
	font-size: clamp(14px, 2vw, 17px);
	color: rgba(255, 255, 255, 0.92);
	margin: 0 auto 24px;
	max-width: 700px;
	line-height: 1.55;
}

.smfo-tax-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	max-width: 500px;
	margin: 0 auto;
}

.smfo-tax-stats > div {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	padding: 14px 10px;
	backdrop-filter: blur(8px);
}

.smfo-tax-stats strong {
	display: block;
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 800;
	color: #fde047;
	line-height: 1;
	margin-bottom: 4px;
}

.smfo-tax-stats span {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ============ MFO LIST ============ */

.smfo-tax-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 30px;
}

.smfo-tax-card {
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 16px;
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 24px;
	align-items: center;
	transition: all 0.2s;
}

.smfo-tax-card:hover {
	border-color: #2271b1;
	box-shadow: 0 8px 24px rgba(34, 113, 177, 0.12);
	transform: translateY(-1px);
}

.smfo-tax-card-head {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 14px;
}

.smfo-tax-card-logo {
	width: 100px;
	height: 60px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	overflow: hidden;
}

.smfo-tax-card-logo img {
	max-width: 100% !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	display: block;
}

.smfo-tax-card-name {
	flex: 1;
	min-width: 0;
}

.smfo-tax-card-name h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.2;
}

.smfo-tax-card-name h3 a {
	color: #111827;
	text-decoration: none;
}

.smfo-tax-card-name h3 a:hover {
	color: #2271b1;
}

.smfo-tax-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 10px;
	margin-right: 6px;
}

.smfo-tax-badge-free {
	background: #dcfce7;
	color: #166534;
}

.smfo-tax-card-rating {
	margin-top: 6px;
	font-size: 12px;
	color: #6b7280;
}

.smfo-tax-stars {
	color: #f59e0b;
	letter-spacing: 1px;
	font-size: 13px;
}

/* Params block */

.smfo-tax-card-params {
	grid-column: 1 / 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	background: #f9fafb;
	border-radius: 10px;
	padding: 12px;
}

.smfo-tax-card-params > div {
	text-align: center;
}

.smfo-tax-card-params strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 2px;
	font-variant-numeric: tabular-nums;
}

.smfo-tax-card-params span {
	font-size: 10px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Actions */

.smfo-tax-card-actions {
	grid-column: 2 / 3;
	grid-row: 1 / 3;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.smfo-tax-card-cta {
	display: block;
	background: #15803d;
	color: #fff !important;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 16px;
	border-radius: 10px;
	text-decoration: none !important;
	transition: background 0.15s;
}

.smfo-tax-card-cta:hover {
	background: #166534;
}

.smfo-tax-card-detail {
	display: block;
	color: #2271b1;
	text-align: center;
	font-size: 12px;
	text-decoration: none;
	padding: 6px;
}

.smfo-tax-card-detail:hover {
	text-decoration: underline;
}

/* ============ EMPTY STATE ============ */

.smfo-tax-empty {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 60px 20px;
	text-align: center;
}

.smfo-tax-empty h2 {
	font-size: 22px;
	color: #4b5563;
	margin: 0 0 12px;
}

.smfo-tax-empty a {
	color: #2271b1;
}

/* ============ PAGINATION (default WP) ============ */

.smfo-taxonomy .pagination,
.smfo-taxonomy nav.navigation {
	margin: 24px 0;
	text-align: center;
}

.smfo-taxonomy .nav-links {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.smfo-taxonomy .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #4b5563;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.15s;
}

.smfo-taxonomy .nav-links .page-numbers:hover {
	border-color: #2271b1;
	color: #2271b1;
}

.smfo-taxonomy .nav-links .page-numbers.current {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

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

@media (max-width: 800px) {
	.smfo-tax-card {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.smfo-tax-card-actions {
		grid-column: 1 / 2;
		grid-row: 3 / 4;
	}

	.smfo-tax-card-params {
		grid-column: 1 / 2;
	}
}

@media (max-width: 600px) {
	.smfo-tax-card-params {
		grid-template-columns: repeat(2, 1fr);
	}

	.smfo-tax-stats {
		grid-template-columns: repeat(3, 1fr);
		font-size: 11px;
	}

	.smfo-taxonomy {
		padding: 8px;
	}

	.smfo-tax-hero {
		padding: 24px 16px;
		border-radius: 14px;
	}
}

@media (max-width: 400px) {
	.smfo-tax-card {
		padding: 14px;
	}

	.smfo-tax-card-head {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}
