/**
 * @package     Sitecheck
 * @copyright   (C) 2026 StArt Designs. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 *
 * Everything is scoped under .sitecheck and driven by custom properties, so a
 * template can restyle the widget by redefining the variables instead of
 * fighting specificity. Override them in your template's custom.css:
 *
 *   .sitecheck { --sc-accent: #FF3334; --sc-ink: #27314A; }
 */

.sitecheck {
	--sc-accent: #FF3334;
	--sc-accent-dark: #E11D1E;
	--sc-ink: #27314A;
	--sc-text: #252525;
	--sc-muted: #6B7280;
	--sc-line: #E5E8EF;
	--sc-soft: #F5F7FB;
	--sc-ok: #12A150;
	--sc-warn: #E8A200;
	--sc-radius: 10px;
	--sc-shadow: 0 18px 50px rgba(27, 35, 55, .14);

	background: #fff;
	border-radius: 14px;
	padding: 34px;
	box-shadow: var(--sc-shadow);
	color: var(--sc-text);
	font-size: 16px;
	line-height: 1.65;
	max-width: 520px;
}

.sitecheck *,
.sitecheck *::before,
.sitecheck *::after {
	box-sizing: border-box;
}

.sitecheck-title {
	margin: 0 0 6px;
	font-size: 21px;
	line-height: 1.25;
	color: var(--sc-ink);
	font-weight: 700;
}

.sitecheck-sub {
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--sc-muted);
}

.sitecheck-domain {
	color: var(--sc-accent);
	word-break: break-all;
}

/* ------------------------------------------------------------------ fields */

.sitecheck-field {
	margin-bottom: 14px;
}

.sitecheck-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--sc-ink);
	margin-bottom: 6px;
}

.sitecheck-field input {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--sc-line);
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	color: var(--sc-text);
	background: #fff;
}

.sitecheck-field input:focus {
	outline: none;
	border-color: var(--sc-accent);
	box-shadow: 0 0 0 3px rgba(255, 51, 52, .15);
}

.sitecheck-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 15px 30px;
	border-radius: var(--sc-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .2s, transform .2s, box-shadow .2s;
}

.sitecheck-btn-primary {
	background: var(--sc-accent);
	border-color: var(--sc-accent);
	color: #fff;
}

.sitecheck-btn-primary:hover:not(:disabled) {
	background: var(--sc-accent-dark);
	border-color: var(--sc-accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(255, 51, 52, .3);
}

.sitecheck-btn:disabled {
	opacity: .6;
	cursor: default;
}

.sitecheck-privacy {
	font-size: 12px;
	color: var(--sc-muted);
	margin: 14px 0 0;
	text-align: center;
	line-height: 1.6;
}

.sitecheck-bullets {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	font-size: 14px;
}

.sitecheck-bullets li {
	padding-left: 26px;
	position: relative;
	margin-bottom: 9px;
	color: #4A5060;
}

.sitecheck-bullets li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--sc-ok);
	font-weight: 800;
}

/* honeypot: off-screen rather than display:none, which some bots skip */
.sitecheck-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sitecheck-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ----------------------------------------------------------------- stepper */

.sitecheck-steps {
	list-style: none;
	margin: 24px 0 8px;
	padding: 0;
	font-size: 14.5px;
}

.sitecheck-steps li {
	padding: 11px 0 11px 34px;
	position: relative;
	color: #A9AEBB;
	border-bottom: 1px solid var(--sc-line);
	transition: color .3s;
}

.sitecheck-steps li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 15px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid var(--sc-line);
}

.sitecheck-steps li.is-doing {
	color: var(--sc-ink);
	font-weight: 600;
}

.sitecheck-steps li.is-doing::before {
	border-color: var(--sc-accent);
	border-top-color: transparent;
	animation: sitecheck-spin .7s linear infinite;
}

.sitecheck-steps li.is-done {
	color: #4A5060;
}

.sitecheck-steps li.is-done::before {
	content: "\2713";
	border: 0;
	width: auto;
	height: auto;
	top: 10px;
	left: 6px;
	color: var(--sc-ok);
	font-weight: 800;
	font-size: 15px;
}

@keyframes sitecheck-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.sitecheck-steps li.is-doing::before { animation: none; }
	.sitecheck-btn { transition: none; }
}

/* ----------------------------------------------------------------- verdict */

.sitecheck-verdict {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	border-radius: var(--sc-radius);
	margin-bottom: 22px;
	background: var(--sc-soft);
	border: 1px solid var(--sc-line);
}

.sitecheck-verdict b {
	display: block;
	font-size: 16px;
	color: var(--sc-ink);
	line-height: 1.35;
	margin-bottom: 3px;
}

.sitecheck-verdict em {
	font-style: normal;
	font-size: 13.5px;
	color: #4A5060;
	display: block;
	line-height: 1.55;
}

.sitecheck-verdict-icon::before {
	content: "\24D8";
	font-size: 22px;
	line-height: 1.1;
	color: var(--sc-muted);
}

.sitecheck-verdict.sitecheck-level-red {
	background: rgba(255, 51, 52, .09);
	border-color: rgba(255, 51, 52, .28);
}

.sitecheck-verdict.sitecheck-level-red .sitecheck-verdict-icon::before {
	content: "\26A0";
	color: var(--sc-accent);
}

.sitecheck-verdict.sitecheck-level-amber {
	background: rgba(232, 162, 0, .12);
	border-color: rgba(232, 162, 0, .32);
}

.sitecheck-verdict.sitecheck-level-amber .sitecheck-verdict-icon::before {
	content: "\26A0";
	color: #9A6C00;
}

.sitecheck-verdict.sitecheck-level-green {
	background: rgba(18, 161, 80, .09);
	border-color: rgba(18, 161, 80, .28);
}

.sitecheck-verdict.sitecheck-level-green .sitecheck-verdict-icon::before {
	content: "\2713";
	color: var(--sc-ok);
}

/* ------------------------------------------------------------------- table */

.sitecheck-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 24px;
}

.sitecheck-table td {
	padding: 11px 0;
	border-bottom: 1px solid var(--sc-line);
	vertical-align: middle;
}

.sitecheck-cell-label {
	color: var(--sc-muted);
}

.sitecheck-cell-value {
	text-align: right;
	padding-right: 12px !important;
	color: var(--sc-ink);
	font-weight: 600;
}

.sitecheck-cell-status {
	text-align: right;
	width: 110px;
}

.sitecheck-pill {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 99px;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
	background: rgba(107, 114, 128, .12);
	color: var(--sc-muted);
}

.sitecheck-pill.sitecheck-level-red {
	background: rgba(255, 51, 52, .12);
	color: var(--sc-accent-dark);
}

.sitecheck-pill.sitecheck-level-amber {
	background: rgba(232, 162, 0, .16);
	color: #9A6C00;
}

.sitecheck-pill.sitecheck-level-green {
	background: rgba(18, 161, 80, .12);
	color: var(--sc-ok);
}

.sitecheck-speed-pending {
	font-size: 13px;
	color: var(--sc-muted);
	margin: -12px 0 20px;
}

/* -------------------------------------------------------------------- gate */

.sitecheck-gate {
	background: var(--sc-soft);
	border-radius: var(--sc-radius);
	padding: 22px;
	margin-bottom: 16px;
}

.sitecheck-gate h4 {
	font-size: 17px;
	margin: 0 0 8px;
	color: var(--sc-ink);
	font-weight: 700;
}

.sitecheck-gate p {
	font-size: 13.5px;
	color: #4A5060;
	margin: 0 0 16px;
	line-height: 1.6;
}

.sitecheck-lead-done {
	margin: 0;
	font-size: 14.5px;
	color: var(--sc-ok);
	font-weight: 600;
}

.sitecheck-reset {
	background: none;
	border: 0;
	color: var(--sc-muted);
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.sitecheck-reset:hover {
	color: var(--sc-accent);
}

@media (max-width: 480px) {
	.sitecheck { padding: 24px 20px; }
	.sitecheck-cell-status { width: 90px; }
	.sitecheck-table { font-size: 13px; }
}
