/**
 * AI Readiness Scanner Page Styles
 *
 * @package Citelayer
 * @since   1.3.0
 */

/* Score Card */
.citelayer-scanner-score-card {
	display: flex;
	align-items: center;
	gap: 2em;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 2em;
	margin-bottom: 2em;
}

.score-circle {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 6px solid #ddd;
}

.score-circle.score-good {
	border-color: #00a32a;
	background: rgba(0, 163, 42, 0.05);
}

.score-circle.score-warn {
	border-color: #dba617;
	background: rgba(219, 166, 23, 0.05);
}

.score-circle.score-fail {
	border-color: #d63638;
	background: rgba(214, 54, 56, 0.05);
}

.score-value {
	font-size: 2.5em;
	font-weight: 700;
	line-height: 1;
}

.score-good .score-value { color: #00a32a; }
.score-warn .score-value { color: #dba617; }
.score-fail .score-value { color: #d63638; }

.score-label {
	font-size: 0.85em;
	color: #666;
}

.score-meta {
	flex: 1;
}

.score-title {
	margin: 0 0 0.25em;
	font-size: 1.4em;
}

.score-timestamp {
	color: #666;
	margin: 0 0 1em;
	font-size: 0.9em;
}

.score-actions {
	display: flex;
	gap: 0.5em;
}

/* Progress Bar */
.citelayer-scan-progress {
	margin-bottom: 2em;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: #2271b1;
	border-radius: 4px;
	transition: width 0.3s ease;
	width: 0;
}

.progress-label {
	margin: 0.5em 0 0;
	color: #666;
	font-size: 0.9em;
}

/* Check Results */
.results-section-title {
	font-size: 1.15em;
	margin: 0 0 1em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #eee;
}

.citelayer-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 1em;
	margin-bottom: 1.5em;
}

.check-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1.25em;
	border-left: 4px solid #ddd;
}

.check-card.check-pass { border-left-color: #00a32a; }
.check-card.check-warn { border-left-color: #dba617; }
.check-card.check-fail { border-left-color: #d63638; }
.check-card.check-info { border-left-color: #72aee6; }

.check-header {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin-bottom: 0.5em;
}

.check-title {
	margin: 0;
	font-size: 1em;
	font-weight: 600;
}

.check-status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.7em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-pass { background: #d4edda; color: #155724; }
.status-warn { background: #fff3cd; color: #856404; }
.status-fail { background: #f8d7da; color: #721c24; }
.status-info { background: #d1ecf1; color: #0c5460; }

.check-message {
	margin: 0 0 0.75em;
	color: #555;
	font-size: 0.9em;
}

/* Detail Table */
.check-details {
	margin-top: 0.5em;
}

.check-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
}

.check-table td {
	padding: 4px 6px;
	border-bottom: 1px solid #f0f0f0;
}

.detail-check {
	font-weight: 500;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.detail-status {
	width: 20px;
	text-align: center;
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.status-dot.status-pass { background: #00a32a; }
.status-dot.status-warn { background: #dba617; }
.status-dot.status-fail { background: #d63638; }
.status-dot.status-info { background: #72aee6; }

.detail-info {
	color: #666;
	font-size: 0.9em;
}

/* Empty State */
.citelayer-empty-state {
	text-align: center;
	padding: 3em 2em;
	background: #f9f9f9;
	border-radius: 6px;
	color: #666;
}

/* Info Box */
.citelayer-info-box {
	background: #f0f6fc;
	border: 1px solid #c3daf0;
	border-radius: 6px;
	padding: 1em 1.25em;
	color: #1d4679;
}

/* Responsive */
@media (max-width: 782px) {
	.citelayer-scanner-score-card {
		flex-direction: column;
		text-align: center;
	}

	.score-actions {
		justify-content: center;
	}

	.citelayer-check-grid {
		grid-template-columns: 1fr;
	}
}
