/* SEO Audit Tool - diagnostic report styling
   Scoped under .sat-widget so it doesn't leak into the host theme. */

.sat-widget {
	--sat-bg: #FAFAF8;
	--sat-ink: #1A1D23;
	--sat-muted: #6B7280;
	--sat-line: #E5E3DC;
	--sat-accent: #0F766E;
	--sat-critical: #DC2626;
	--sat-warning: #B45309;
	--sat-notice: #64748B;
	--sat-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	max-width: 760px;
	margin: 0 auto;
	color: var(--sat-ink);
	background: var(--sat-bg);
	border: 1px solid var(--sat-line);
	padding: 32px;
}

.sat-form {
	display: flex;
	gap: 0;
	border: 1px solid var(--sat-ink);
}

.sat-form input[type="url"] {
	flex: 1;
	padding: 14px 16px;
	border: none;
	background: transparent;
	font-size: 15px;
	font-family: var(--sat-mono);
	color: var(--sat-ink);
}

.sat-form input[type="url"]:focus {
	outline: 2px solid var(--sat-accent);
	outline-offset: -2px;
}

.sat-form button {
	padding: 14px 22px;
	background: var(--sat-ink);
	color: var(--sat-bg);
	border: none;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}

.sat-form button:hover {
	background: var(--sat-accent);
}

/* --- Progress --- */
.sat-progress {
	margin-top: 24px;
}

.sat-progress-bar {
	background: var(--sat-line);
	height: 2px;
	overflow: hidden;
	margin-bottom: 10px;
}

.sat-progress-fill {
	background: var(--sat-accent);
	height: 100%;
	width: 0%;
	transition: width 0.3s ease;
}

.sat-progress-text {
	font-family: var(--sat-mono);
	font-size: 13px;
	color: var(--sat-muted);
	margin: 0;
}

/* --- Report header: dial + stats --- */
.sat-report-header {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--sat-line);
	margin-bottom: 24px;
}

.sat-dial {
	flex-shrink: 0;
	position: relative;
	width: 96px;
	height: 96px;
}

.sat-dial svg { transform: rotate(-90deg); }

.sat-dial-track { fill: none; stroke: var(--sat-line); stroke-width: 6; }
.sat-dial-fill  { fill: none; stroke: var(--sat-accent); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }

.sat-dial-number {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sat-mono);
	font-size: 24px;
	font-weight: 600;
}

.sat-report-meta { flex: 1; }

.sat-report-url {
	font-family: var(--sat-mono);
	font-size: 14px;
	color: var(--sat-muted);
	margin: 0 0 4px;
	word-break: break-all;
}

.sat-report-crawled {
	font-size: 13px;
	color: var(--sat-muted);
	margin: 0 0 14px;
}

.sat-stat-row {
	display: flex;
	gap: 24px;
}

.sat-stat {
	font-size: 13px;
	color: var(--sat-muted);
}

.sat-stat strong {
	font-family: var(--sat-mono);
	font-size: 18px;
	display: block;
	line-height: 1.1;
}

.sat-stat.critical strong { color: var(--sat-critical); }
.sat-stat.warning strong  { color: var(--sat-warning); }
.sat-stat.notice strong   { color: var(--sat-notice); }

/* --- Issue rows --- */
.sat-issues-list {
	display: flex;
	flex-direction: column;
}

.sat-issue-row {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--sat-line);
	border-left: 3px solid transparent;
	padding-left: 12px;
}

.sat-issue-row.critical { border-left-color: var(--sat-critical); }
.sat-issue-row.warning  { border-left-color: var(--sat-warning); }
.sat-issue-row.notice   { border-left-color: var(--sat-notice); }

.sat-issue-body { flex: 1; min-width: 0; }

.sat-issue-message {
	font-size: 14px;
	margin: 0 0 3px;
}

.sat-issue-url {
	font-family: var(--sat-mono);
	font-size: 12px;
	color: var(--sat-muted);
	margin: 0;
	word-break: break-all;
}

.sat-issue-tag {
	font-family: var(--sat-mono);
	font-size: 11px;
	color: var(--sat-muted);
	white-space: nowrap;
	padding-top: 2px;
}



/* Custom HTML/Elementor audit integration */
#sc-audit-progress {
	margin: 28px auto 0;
	max-width: 760px;
}
#sc-audit-progress .sc-audit-progress-bar {
	height: 6px;
	background: rgba(255,255,255,.12);
	border-radius: 99px;
	overflow: hidden;
}
#sc-audit-progress .sc-audit-progress-fill {
	height: 100%;
	width: 0;
	background: #c6f135;
	border-radius: 99px;
	transition: width .3s ease;
}
#sc-audit-progress .sc-audit-progress-text {
	margin: 10px 0 0;
	color: #b7bdd6;
	font-size: 13px;
	text-align: center;
}
#sc-audit-results {
	max-width: 980px;
	margin: 45px auto 0;
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 20px 55px rgba(0,0,0,.18);
	text-align: left;
	color: #1A1D23;
}
#sc-audit-results .sat-report-header {
	margin: 0 0 24px;
}
#sc-audit-results .sat-no-issues {
	padding: 20px;
	text-align: center;
	border: 1px solid #E5E3DC;
	border-radius: 10px;
	color: #6B7280;
}
#sc-audit-results .sat-error {
	padding: 16px 18px;
	border-radius: 10px;
	background: #fde6e6;
	color: #b42318;
}
#sc-audit-form button[disabled] {
	opacity: .65;
	cursor: wait;
	transform: none !important;
	box-shadow: none !important;
}
@media (max-width: 640px) {
	#sc-audit-results {
		padding: 18px;
		margin-top: 28px;
		border-radius: 14px;
	}
	#sc-audit-results .sat-report-header {
		flex-direction: column;
		align-items: flex-start;
	}
	#sc-audit-results .sat-stat-row {
		gap: 16px;
		flex-wrap: wrap;
	}
}
