/* ==========================================================================
   SEOvault AI — SEO Analyzer Styles
   ========================================================================== */

.seovaultseo-analyzer-page {
	max-width: 1100px;
}

.seovaultseo-analyzer-intro {
	color: var(--seovaultseo-muted);
	font-size: 14px;
	margin-bottom: 20px;
}

/* Header with score circle and actions */
.seovaultseo-analyzer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	background: var(--seovaultseo-card-bg);
	border: 1px solid var(--seovaultseo-border);
	border-radius: var(--seovaultseo-radius);
	padding: 24px 30px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.seovaultseo-analyzer-score-wrap {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* Score circle */
.seovaultseo-analyzer-score-circle {
	position: relative;
	width: 120px;
	height: 120px;
	flex-shrink: 0;
}

.seovaultseo-score-svg {
	width: 120px;
	height: 120px;
	transform: rotate(-90deg);
}

.seovaultseo-score-bg {
	fill: none;
	stroke: var(--seovaultseo-bg);
	stroke-width: 8;
}

.seovaultseo-score-fill {
	fill: none;
	stroke: var(--seovaultseo-primary);
	stroke-width: 8;
	stroke-linecap: round;
	stroke-dasharray: 327;
	stroke-dashoffset: 327;
	transition: stroke-dashoffset 0.8s ease, stroke 0.3s ease;
}

.seovaultseo-score-fill.grade-good {
	stroke: var(--seovaultseo-success);
}

.seovaultseo-score-fill.grade-average {
	stroke: var(--seovaultseo-warning);
}

.seovaultseo-score-fill.grade-bad {
	stroke: var(--seovaultseo-error);
}

.seovaultseo-score-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.seovaultseo-score-number {
	display: block;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: var(--seovaultseo-primary);
}

.seovaultseo-score-label {
	display: block;
	font-size: 11px;
	color: var(--seovaultseo-muted);
	text-transform: uppercase;
	margin-top: 2px;
}

/* Score info */
.seovaultseo-analyzer-score-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.seovaultseo-analyzer-grade {
	font-size: 18px;
	font-weight: 600;
}

.seovaultseo-analyzer-grade.grade-good {
	color: var(--seovaultseo-success);
}

.seovaultseo-analyzer-grade.grade-average {
	color: var(--seovaultseo-warning);
}

.seovaultseo-analyzer-grade.grade-bad {
	color: var(--seovaultseo-error);
}

.seovaultseo-analyzer-last-run {
	font-size: 13px;
	color: var(--seovaultseo-muted);
}

/* Actions */
.seovaultseo-analyzer-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.seovaultseo-analyzer-actions .button-hero {
	padding: 0 20px;
	height: 40px;
	font-size: 14px;
}

.seovaultseo-analyzer-actions .dashicons {
	vertical-align: middle;
	margin-right: 4px;
}

/* Summary stats */
.seovaultseo-analyzer-summary {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.seovaultseo-summary-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--seovaultseo-card-bg);
	border: 1px solid var(--seovaultseo-border);
	border-radius: var(--seovaultseo-radius);
	padding: 12px 20px;
	min-width: 140px;
}

.seovaultseo-summary-stat .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.seovaultseo-summary-ok .dashicons {
	color: var(--seovaultseo-success);
}

.seovaultseo-summary-fail .dashicons {
	color: var(--seovaultseo-error);
}

.seovaultseo-summary-warning .dashicons {
	color: var(--seovaultseo-warning);
}

.seovaultseo-summary-count {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.seovaultseo-summary-label {
	font-size: 13px;
	color: var(--seovaultseo-muted);
}

/* Loading state */
.seovaultseo-analyzer-loading {
	text-align: center;
	padding: 60px 20px;
}

.seovaultseo-analyzer-loading .spinner {
	float: none;
	margin: 0 auto 10px;
}

.seovaultseo-analyzer-loading p {
	color: var(--seovaultseo-muted);
	font-size: 14px;
}

/* Empty state */
.seovaultseo-analyzer-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--seovaultseo-muted);
}

.seovaultseo-analyzer-empty .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	opacity: 0.3;
	margin-bottom: 12px;
}

.seovaultseo-analyzer-empty p {
	font-size: 14px;
}

/* Results */
.seovaultseo-analyzer-results {
	margin-top: 20px;
}

.seovaultseo-analyzer-category {
	margin-bottom: 24px;
}

.seovaultseo-analyzer-category-title {
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--seovaultseo-muted);
	margin: 0 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--seovaultseo-border);
}

/* Test card */
.seovaultseo-test-card {
	background: var(--seovaultseo-card-bg);
	border: 1px solid var(--seovaultseo-border);
	border-radius: var(--seovaultseo-radius);
	margin-bottom: 10px;
	overflow: hidden;
}

.seovaultseo-test-card-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	user-select: none;
}

.seovaultseo-test-card-header:hover {
	background: rgba(0, 0, 0, 0.02);
}

.seovaultseo-test-status-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.seovaultseo-test-status-icon .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #fff;
}

.seovaultseo-test-status-icon.status-ok {
	background: var(--seovaultseo-success);
}

.seovaultseo-test-status-icon.status-fail {
	background: var(--seovaultseo-error);
}

.seovaultseo-test-status-icon.status-warning {
	background: var(--seovaultseo-warning);
}

.seovaultseo-test-body {
	flex: 1;
	min-width: 0;
}

.seovaultseo-test-title {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 2px 0;
	color: #1d2327;
}

.seovaultseo-test-message {
	font-size: 13px;
	color: var(--seovaultseo-muted);
	margin: 0;
	line-height: 1.5;
}

.seovaultseo-test-message a {
	text-decoration: none;
}

.seovaultseo-test-message a:hover {
	text-decoration: underline;
}

.seovaultseo-test-toggle {
	flex-shrink: 0;
	color: var(--seovaultseo-muted);
	font-size: 18px;
	margin-top: 2px;
	transition: transform 0.2s ease;
}

.seovaultseo-test-card.expanded .seovaultseo-test-toggle {
	transform: rotate(180deg);
}

/* Test details (expandable) */
.seovaultseo-test-details {
	display: none;
	padding: 0 18px 16px 54px;
	border-top: 1px solid var(--seovaultseo-border);
	margin-top: 0;
}

.seovaultseo-test-card.expanded .seovaultseo-test-details {
	display: block;
}

.seovaultseo-test-details h4 {
	font-size: 13px;
	font-weight: 600;
	margin: 12px 0 6px 0;
	color: #1d2327;
}

.seovaultseo-test-details p {
	font-size: 13px;
	color: var(--seovaultseo-muted);
	margin: 0 0 8px 0;
	line-height: 1.6;
}

.seovaultseo-test-details .seovaultseo-test-info-list {
	margin: 6px 0 0 0;
	padding-left: 18px;
	font-size: 13px;
	color: var(--seovaultseo-muted);
}

.seovaultseo-test-details .seovaultseo-test-info-list li {
	margin-bottom: 3px;
}

.seovaultseo-test-details .seovaultseo-test-info-list a {
	text-decoration: none;
}

.seovaultseo-test-details .seovaultseo-test-info-list a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.seovaultseo-analyzer-header {
		flex-direction: column;
		text-align: center;
	}

	.seovaultseo-analyzer-score-wrap {
		flex-direction: column;
	}

	.seovaultseo-analyzer-actions {
		flex-direction: column;
		width: 100%;
	}

	.seovaultseo-analyzer-actions .button {
		width: 100%;
	}

	.seovaultseo-analyzer-summary {
		flex-direction: column;
	}

	.seovaultseo-summary-stat {
		min-width: 0;
	}
}
