/* SEO Pro - SEO Diagnosis Modal */

/* ==== Modal shell ==== */
.spl-sd-modal {
	position: fixed; inset: 0;
	z-index: 99999;
	display: none;
	font-family: inherit;
}
.spl-sd-modal.is-open { display: block; }

.spl-sd-modal__overlay {
	position: absolute; inset: 0;
	background: rgba(15, 23, 42, .68);
	backdrop-filter: blur(2px);
	cursor: pointer;
}
.spl-sd-modal__dialog {
	position: relative;
	max-width: 760px;
	width: calc(100% - 24px);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	margin: 16px auto;
	box-shadow: 0 30px 80px rgba(0,0,0,.35);
	overflow-x: hidden;
	animation: splSDIn .25s ease-out;
}
@keyframes splSDIn { from {opacity:0; transform:translateY(20px) scale(.97)} to {opacity:1; transform:none} }

.spl-sd-modal__close {
	position: absolute; top: 14px; right: 16px;
	background: rgba(0,0,0,0); border: 0;
	color: #94A3B8;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
}
.spl-sd-modal__close:hover { color: #1E3A8A; }

.spl-sd-modal__inner { display: none; padding: 36px 36px 28px; }
.spl-sd-modal__inner.is-active { display: block; }

@media (max-width: 600px) {
	.spl-sd-modal__dialog { border-radius: 12px; margin: 8px auto; }
	.spl-sd-modal__inner { padding: 28px 20px 22px; }
}

/* ==== Form ==== */
.spl-sd-form-head { text-align: center; margin-bottom: 22px; }
.spl-sd-eyebrow {
	display:inline-block;
	background: #DBEAFE; color: #1E3A8A;
	padding: 4px 14px; border-radius: 999px;
	font-size: 12px; font-weight: 800;
	margin-bottom: 12px;
	letter-spacing: .06em;
}
.spl-sd-form-head h2 {
	font-size: 22px; font-weight: 800; color: #0F172A;
	margin: 0 0 8px; line-height: 1.5;
}
.spl-sd-form-head p { color: #64748B; font-size: 13px; margin: 0; }

.spl-sd-form { padding: 0; }
.spl-sd-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.spl-sd-field { display: flex; flex-direction: column; }
.spl-sd-field--full { grid-column: 1 / -1; }
.spl-sd-field span {
	font-size: 12.5px; font-weight: 700;
	color: #1E293B; margin-bottom: 4px;
}
.spl-sd-field em {
	font-style: normal;
	color: #DC2626; margin-left: 4px; font-weight: 700;
}
.spl-sd-field input, .spl-sd-field textarea {
	width: 100%;
	padding: 11px 12px;
	font-size: 14px;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	background: #F8FAFC;
	font-family: inherit;
	transition: border-color .15s, background .15s;
}
.spl-sd-field input:focus {
	outline: none;
	border-color: #2563EB;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}

.spl-sd-honeypot {
	position: absolute;
	left: -9999px; top: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

.spl-sd-consent {
	display: flex; align-items: flex-start; gap: 8px;
	margin: 16px 0 8px;
	font-size: 13px; color: #475569;
}
.spl-sd-consent input { margin-top: 3px; }
.spl-sd-consent a { color: #2563EB; text-decoration: underline; }

.spl-sd-submit {
	display: block;
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #2563EB, #1E3A8A);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 15px; font-weight: 800;
	cursor: pointer;
	margin-top: 12px;
	box-shadow: 0 8px 20px rgba(37,99,235,.28);
}
.spl-sd-submit:hover { transform: translateY(-1px); }
.spl-sd-submit:disabled { opacity: .6; cursor: not-allowed; }

.spl-sd-note {
	font-size: 11.5px;
	color: #64748B;
	margin-top: 14px;
	line-height: 1.7;
}

@media (max-width: 600px) {
	.spl-sd-grid { grid-template-columns: 1fr; }
	.spl-sd-form-head h2 { font-size: 18px; }
}

/* ==== Loading ==== */
.spl-sd-loading { text-align: center; padding: 18px 0; }
.spl-sd-spinner {
	width: 56px; height: 56px;
	border: 4px solid #DBEAFE;
	border-top-color: #2563EB;
	border-radius: 50%;
	margin: 0 auto 18px;
	animation: splSpin .9s linear infinite;
}
@keyframes splSpin { to { transform: rotate(360deg); } }
.spl-sd-loading h3 { color: #1E3A8A; margin-bottom: 8px; font-size: 19px; }
.spl-sd-loading__msg { color: #64748B; font-size: 13.5px; margin-bottom: 18px; }
.spl-sd-progress {
	list-style: none; padding: 0; margin: 14px auto 0; max-width: 360px;
	font-size: 13px; text-align: left; color: #94A3B8;
}
.spl-sd-progress li { padding: 6px 0; padding-left: 24px; position: relative; }
.spl-sd-progress li::before {
	content: "○";
	position: absolute; left: 0; top: 6px;
	color: #CBD5E1;
}
.spl-sd-progress li.is-active { color: #1E3A8A; font-weight: 700; }
.spl-sd-progress li.is-active::before { content: "●"; color: #2563EB; animation: splPulse 1s infinite; }
.spl-sd-progress li.is-done { color: #10B981; }
.spl-sd-progress li.is-done::before { content: "✓"; color: #10B981; }
@keyframes splPulse { 50% { opacity: .4; } }

/* ==== Result ==== */
.spl-sd-result__head { text-align: center; margin-bottom: 22px; }
.spl-sd-result__head h2 { color: #0F172A; font-size: 22px; margin: 0 0 6px; }
.spl-sd-result__id { font-size: 12px; color: #64748B; }
.spl-sd-result__id code {
	background: #F1F5F9; padding: 2px 8px;
	border-radius: 4px; font-size: 12px;
}

.spl-sd-scores { margin-bottom: 24px; }

.spl-sd-score--main {
	background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
	color: #fff;
	border-radius: 14px;
	padding: 24px;
	text-align: center;
	margin-bottom: 14px;
}
.spl-sd-score__label {
	font-size: 12px;
	letter-spacing: .12em;
	opacity: .85;
	font-weight: 700;
	margin-bottom: 4px;
}
.spl-sd-score__num {
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.02em;
}
.spl-sd-score__num::after {
	content: " / 100";
	font-size: 18px;
	opacity: .7;
	font-weight: 700;
}
.spl-sd-score__bar {
	height: 8px;
	background: rgba(255,255,255,.25);
	border-radius: 999px;
	margin-top: 14px;
	overflow: hidden;
}
.spl-sd-score__bar > span {
	display: block; height: 100%;
	background: linear-gradient(90deg, #60A5FA, #FFFFFF);
	border-radius: 999px;
	transition: width .8s ease;
}

.spl-sd-score-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
	gap: 8px;
}
.spl-sd-score__cell {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	padding: 12px 8px;
	text-align: center;
	min-width: 0;
	overflow: hidden;
}
.spl-sd-score__cell .lab {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	color: #64748B;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: keep-all;
	letter-spacing: -.01em;
}
.spl-sd-score__cell .num {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: #0F172A;
}
.spl-sd-score__cell .bar {
	display: block;
	height: 4px;
	margin-top: 8px;
	background: #F1F5F9;
	border-radius: 999px;
	overflow: hidden;
}
.spl-sd-score__cell .bar > span {
	display: block; height: 100%;
	background: #2563EB;
	border-radius: 999px;
	transition: width .8s ease;
}
.spl-sd-score__cell.is-low .num { color: #DC2626; }
.spl-sd-score__cell.is-low .bar > span { background: #DC2626; }
.spl-sd-score__cell.is-mid .num { color: #F59E0B; }
.spl-sd-score__cell.is-mid .bar > span { background: #F59E0B; }
.spl-sd-score__cell.is-high .num { color: #10B981; }
.spl-sd-score__cell.is-high .bar > span { background: #10B981; }

@media (max-width: 600px) {
	.spl-sd-score-grid { grid-template-columns: repeat(2, 1fr); }
	.spl-sd-score__num { font-size: 48px; }
}

/* ==== Insights ==== */
.spl-sd-insights {
	background: #F8FAFC;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 22px 26px;
	margin-bottom: 24px;
}
.spl-sd-insights h3, .spl-sd-insights h2 {
	font-size: 16px;
	color: #1E3A8A;
	margin: 0 0 12px;
}
.spl-sd-insights ul { list-style: none; margin: 0; padding: 0; }
.spl-sd-insights li {
	padding: 10px 0;
	border-bottom: 1px dashed #E5E7EB;
	font-size: 13.5px;
	color: #1F2937;
	line-height: 1.65;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.spl-sd-insights li:last-child { border-bottom: 0; }
.lvl-tag {
	flex-shrink: 0;
	display: inline-block;
	font-size: 10.5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-weight: 800;
	letter-spacing: .04em;
	margin-top: 1px;
}
.lvl-critical .lvl-tag { background: #FEE2E2; color: #B91C1C; }
.lvl-warn .lvl-tag { background: #FEF3C7; color: #B45309; }
.lvl-tip .lvl-tag { background: #DBEAFE; color: #1E3A8A; }
.lvl-info .lvl-tag { background: #F1F5F9; color: #64748B; }

/* ==== CTA ==== */
.spl-sd-cta {
	background: linear-gradient(135deg, #1E3A8A, #2563EB);
	color: #fff;
	padding: 28px;
	border-radius: 14px;
	text-align: center;
}
.spl-sd-cta h3, .spl-sd-cta h2 {
	color: #fff;
	font-size: 19px;
	margin: 0 0 8px;
}
.spl-sd-cta p {
	color: #DBEAFE;
	font-size: 13.5px;
	line-height: 1.75;
	margin: 0 0 16px;
}
.spl-sd-cta strong { color: #fff; }
.spl-sd-cta .btn {
	background: #fff;
	color: #1E3A8A !important;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 800;
	display: inline-block;
	text-decoration: none;
	box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
.spl-sd-cta .btn:hover { transform: translateY(-1px); }
.spl-sd-cta__note {
	font-size: 11.5px;
	margin-top: 14px;
	color: rgba(255,255,255,.7);
}
.spl-sd-result__permalink {
	font-size: 11.5px;
	color: rgba(255,255,255,.7);
	margin-top: 10px;
}
.spl-sd-result__permalink a {
	color: #FFF !important;
	text-decoration: underline;
	word-break: break-all;
}

/* ==== Error ==== */
.spl-sd-error { text-align: center; padding: 30px 0 14px; }
.spl-sd-error h3 { color: #B91C1C; }
.spl-sd-error__msg { color: #64748B; margin-bottom: 18px; }

/* ==== Standalone result page (?spl_sd_result=) ==== */
.spl-sd-result-page .entry-meta {
	display: flex; flex-wrap: wrap; gap: 12px;
	font-size: 12.5px; color: #64748B;
}
.spl-sd-result-page .entry-meta code {
	background: #F1F5F9; padding: 2px 6px; border-radius: 4px;
}
.spl-sd-result-page .spl-sd-scores,
.spl-sd-result-page .spl-sd-insights,
.spl-sd-result-page .spl-sd-cta { margin-top: 24px; }
