/**
 * Solomon Schema — Dashboard styles
 *
 * WordPress-admin-native look: core color palette, card pattern,
 * no gradients, no framework. Loaded only on the dashboard screen.
 *
 * @package BW_Schema
 * @since 3.1.0
 */

.bw-schema-page-bw-schema {
	max-width: 860px;
}

/* Tagline under the H1 */
.bw-schema-page-bw-schema .bws-tagline {
	margin: 0 0 20px;
	color: #646970;
	font-size: 14px;
}

/* ---------------------------------------------------------------- cards */

.bws-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	padding: 16px 20px;
}

/* --------------------------------------------------------- status strip */

.bws-status-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.bws-status-main {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.bws-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.bws-status-dot.is-active {
	background: #00a32a;
	box-shadow: 0 0 0 3px rgba(0, 163, 42, 0.15);
}

.bws-status-dot.is-inactive {
	background: #d63638;
	box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.15);
}

.bws-status-label {
	font-weight: 600;
	color: #1d2327;
}

.bws-status-emitting {
	color: #646970;
	font-size: 13px;
}

/* ------------------------------------------------------- health summary */

.bws-health-summary {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
}

.bws-health-label {
	white-space: nowrap;
	color: #1d2327;
	font-size: 13px;
}

.bws-progress {
	flex: 1;
	height: 8px;
	background: #dcdcde;
	border-radius: 4px;
	overflow: hidden;
}

.bws-progress-fill {
	display: block;
	height: 100%;
	background: #2271b1;
	border-radius: 4px;
	transition: width 0.4s ease;
}

.bws-progress-fill.is-complete {
	background: #00a32a;
}

/* ------------------------------------------------------------ check list */

.bws-section-title {
	margin: 24px 0 8px;
	font-size: 15px;
}

.bws-checks {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bws-check {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bws-check:hover,
.bws-check:focus {
	border-color: #2271b1;
	box-shadow: 0 1px 4px rgba(34, 113, 177, 0.15);
}

.bws-check-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
}

.bws-check.is-warn .bws-check-icon {
	background: #fcf0f1;
	color: #d63638;
}

.bws-check.is-pass .bws-check-icon {
	background: #edfaef;
	color: #00a32a;
}

.bws-check-body {
	flex: 1;
	min-width: 0;
}

.bws-check-title {
	display: block;
	font-weight: 600;
	color: #1d2327;
}

.bws-check-detail {
	display: block;
	color: #646970;
	font-size: 13px;
	margin-top: 2px;
}

/* Passing rows are quieter */
.bws-check.is-pass .bws-check-title {
	font-weight: 500;
	color: #3c434a;
}

/* Priority badges — WP core palette */
.bws-badge {
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	white-space: nowrap;
	flex-shrink: 0;
}

.bws-badge-high {
	background: #fcf0f1;
	color: #d63638;
	border: 1px solid #f0b7b8;
}

.bws-badge-medium {
	background: #fcf9e8;
	color: #996800;
	border: 1px solid #f5e6ab;
}

.bws-badge-low {
	background: #f0f0f1;
	color: #646970;
	border: 1px solid #dcdcde;
}

.bws-check-effort,
.bws-check-progress {
	color: #646970;
	font-size: 12px;
	white-space: nowrap;
	flex-shrink: 0;
}

.bws-check-go {
	color: #2271b1;
	flex-shrink: 0;
}

/* -------------------------------------------------------- all-clear card */

.bws-all-clear {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border-left: 4px solid #00a32a;
	margin-top: 8px;
}

.bws-all-clear-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #edfaef;
	color: #00a32a;
	font-weight: 700;
	flex-shrink: 0;
}

.bws-all-clear p {
	margin: 4px 0 0;
	color: #646970;
}

/* ------------------------------------------------------ passing details */

.bws-passing {
	margin-top: 20px;
}

.bws-passing > summary {
	cursor: pointer;
	color: #2271b1;
	font-weight: 600;
	font-size: 13px;
	padding: 4px 0;
	user-select: none;
}

.bws-passing > summary:hover {
	color: #135e96;
}

.bws-passing[open] > summary {
	margin-bottom: 8px;
}

/* ---------------------------------------------------------------- footer */

.bws-footer {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid #dcdcde;
	color: #646970;
	font-size: 12px;
}

.bws-footer a {
	text-decoration: none;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 600px) {
	.bws-status-strip {
		flex-direction: column;
		align-items: flex-start;
	}

	.bws-health-summary {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.bws-check {
		flex-wrap: wrap;
	}

	.bws-check-body {
		flex-basis: calc(100% - 80px);
	}

	.bws-badge,
	.bws-check-effort,
	.bws-check-progress {
		margin-left: 38px;
	}
}
