/**
 * Smart MFO Sync — hotline.finance-style single page redesign.
 * Mobile-first.
 */

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

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

.smfo-hl-hero {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 16px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	align-items: start;
}

.smfo-hl-hero-main {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.smfo-hl-logo {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	background: #f9fafb;
	border-radius: 12px;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.smfo-hl-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.smfo-hl-hero-info {
	flex: 1;
	min-width: 0;
}

.smfo-hl-hero-info h1 {
	font-size: clamp(22px, 4vw, 30px);
	font-weight: 800;
	margin: 0 0 6px;
	line-height: 1.2;
	color: #111827;
}

.smfo-hl-subtitle {
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 10px;
}

.smfo-hl-rating-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.smfo-hl-rating-num {
	font-size: 24px;
	font-weight: 800;
	color: #15803d;
}

.smfo-hl-rating-stars {
	font-size: 18px;
	letter-spacing: 1px;
}

.smfo-hl-rating-count {
	font-size: 13px;
	color: #2271b1;
	text-decoration: none;
	border-bottom: 1px dashed #2271b1;
}

.smfo-hl-rating-empty a {
	color: #2271b1;
	text-decoration: none;
	font-size: 13px;
}

.smfo-hl-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.smfo-hl-badge-paused,
.smfo-hl-badge-free {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

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

.smfo-hl-badge-paused {
	background: #fef3c7;
	color: #92400e;
}

/* Hero CTA panel */

.smfo-hl-hero-cta {
	background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
	color: #fff;
	border-radius: 12px;
	padding: 18px;
}

.smfo-hl-quick-params {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}

.smfo-hl-qp {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 10px 6px;
	text-align: center;
}

.smfo-hl-qp strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 2px;
	font-variant-numeric: tabular-nums;
}

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

.smfo-hl-cta-wrap .smfo-cta {
	display: block;
	width: 100%;
	background: #15803d;
	color: #fff !important;
	padding: 14px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s, transform 0.1s;
}

.smfo-hl-cta-wrap .smfo-cta:hover {
	background: #166534;
	transform: translateY(-1px);
}

/* ============ ANCHOR NAV ============ */

.smfo-hl-anchor-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 8px 12px;
	margin-bottom: 16px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.smfo-hl-anchor-nav a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	text-decoration: none;
	transition: all 0.15s;
}

.smfo-hl-anchor-nav a:hover {
	background: #f3f4f6;
	color: #2271b1;
}

/* ============ SECTIONS ============ */

.smfo-hl-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 16px;
	scroll-margin-top: 80px;
}

.smfo-hl-section h2 {
	font-size: clamp(20px, 3vw, 24px);
	font-weight: 700;
	margin: 0 0 16px;
	color: #111827;
}

.smfo-hl-section h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 24px 0 10px;
}

.smfo-hl-section p {
	line-height: 1.7;
	margin: 0 0 12px;
	color: #374151;
}

.smfo-hl-section ul,
.smfo-hl-section ol {
	padding-left: 22px;
	margin: 0 0 16px;
}

.smfo-hl-section ul li,
.smfo-hl-section ol li {
	margin-bottom: 6px;
	line-height: 1.6;
	color: #374151;
}

/* ============ METRICS GRID ============ */

.smfo-hl-metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.smfo-hl-metric {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
}

.smfo-hl-metric strong {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: #15803d;
	margin-bottom: 4px;
	font-variant-numeric: tabular-nums;
}

.smfo-hl-metric span {
	font-size: 12px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.smfo-hl-metrics-note {
	font-size: 12px;
	color: #6b7280;
	margin-top: 8px;
	font-style: italic;
}

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

@media (max-width: 800px) {
	.smfo-hl-hero {
		grid-template-columns: 1fr;
	}

	.smfo-hl-hero-main {
		flex-direction: row;
	}

	.smfo-hl-logo {
		width: 70px;
		height: 70px;
	}
}

@media (max-width: 500px) {
	.smfo-single.smfo-hl-style {
		padding: 8px;
	}

	.smfo-hl-hero,
	.smfo-hl-section {
		padding: 16px;
		border-radius: 12px;
	}

	.smfo-hl-anchor-nav a {
		padding: 6px 10px;
		font-size: 12px;
	}

	.smfo-hl-quick-params {
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
	}

	.smfo-hl-qp {
		padding: 8px 4px;
	}

	.smfo-hl-qp strong {
		font-size: 12px;
	}
}

/* ============ GENERAL DOCUMENTS BUTTONS ============ */

.smfo-gd-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.smfo-gd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s;
	white-space: nowrap;
}

.smfo-gd-btn:hover {
	border-color: #2271b1;
	color: #2271b1;
	background: #f0f6fc;
	transform: translateY(-1px);
}

.smfo-gd-btn-warning {
	border-color: #fcd34d;
	background: #fffbeb;
	color: #92400e;
}

.smfo-gd-btn-warning:hover {
	border-color: #f59e0b;
	background: #fef3c7;
	color: #78350f;
}

/* Compact size for cards */

.smfo-gd-buttons-sm {
	gap: 4px;
	margin-top: 6px;
}

.smfo-gd-buttons-sm .smfo-gd-btn {
	padding: 4px 10px;
	font-size: 11px;
	border-radius: 6px;
}

@media (max-width: 600px) {
	.smfo-gd-buttons {
		flex-direction: column;
	}

	.smfo-gd-btn {
		justify-content: center;
		text-align: center;
	}
}

/* ============ PARTNER INFO SECTION ============ */

.smfo-pi-section {
	border-left: 4px solid #0ea5e9;
	background: #f0f9ff;
}

.smfo-pi-section h2 {
	color: #075985;
}

.smfo-pi-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}

.smfo-pi-table th,
.smfo-pi-table td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid #e0f2fe;
	vertical-align: top;
	font-size: 13px;
}

.smfo-pi-table tr:last-child th,
.smfo-pi-table tr:last-child td {
	border-bottom: none;
}

.smfo-pi-table th {
	background: #f0f9ff;
	color: #075985;
	font-weight: 700;
	width: 40%;
	white-space: nowrap;
}

.smfo-pi-table td {
	color: #1e293b;
	font-weight: 500;
}

.smfo-pi-table td a {
	color: #0369a1;
	text-decoration: none;
}

.smfo-pi-table td a:hover {
	text-decoration: underline;
}

.smfo-pi-disclaimer {
	font-size: 12px;
	color: #075985;
	font-style: italic;
	margin: 0;
	padding-top: 8px;
}

.smfo-pi-disclaimer a {
	color: #0369a1;
	font-weight: 600;
}

@media (max-width: 600px) {
	.smfo-pi-table th,
	.smfo-pi-table td {
		display: block;
		width: 100%;
		padding: 6px 12px;
	}
	.smfo-pi-table th {
		padding-bottom: 0;
		font-size: 11px;
		text-transform: uppercase;
	}
	.smfo-pi-table td {
		padding-top: 2px;
		padding-bottom: 12px;
	}
}

/* ============ PARTNER INFO ALERTS ============ */

.smfo-pi-alert {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 12px;
	font-weight: 500;
}

.smfo-pi-alert-danger {
	background: #fee2e2;
	border-left: 4px solid #dc2626;
	color: #7f1d1d;
}

.smfo-pi-alert-info {
	background: #dcfce7;
	border-left: 4px solid #16a34a;
	color: #14532d;
}

.smfo-pi-alert strong {
	font-weight: 700;
}
