/* SEO Intelligence Dashboard Styles */

.seo-intelligence-dashboard {
	margin-top: 20px;
}

/* SEO Cards Grid */
.seo-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.seo-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.seo-card-header {
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: white;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.seo-card-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.seo-card-content {
	padding: 20px;
}

/* Health Score Card */
.seo-health-card .seo-card-header {
	background: linear-gradient(135deg, #00a32a 0%, #007a1f 100%);
}

.health-score-display {
	text-align: center;
}

.score-circle {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e8f5e8 0%, #d1f2eb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	border: 4px solid #00a32a;
}

.score-circle.needs-work {
	background: linear-gradient(135deg, #fdf2f2 0%, #fadbd8 100%);
	border-color: #d63638;
}

.score-number {
	font-size: 24px;
	font-weight: 700;
	color: #00a32a;
}

.needs-work .score-number {
	color: #d63638;
}

.score-status {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}

.improvement-cta {
	background: #fff3cd;
	padding: 10px;
	border-radius: 4px;
	font-size: 12px;
	color: #856404;
}

/* Alerts Card */
.seo-alerts-card .seo-card-header {
	background: linear-gradient(135deg, #d63638 0%, #b02a2a 100%);
}

.alert-count {
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.seo-alerts-list {
	max-height: 200px;
	overflow-y: auto;
}

.seo-alert {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	border-left: 4px solid #dba617;
	background: #fff9e6;
	margin-bottom: 8px;
	border-radius: 4px;
}

.seo-alert.alert-high {
	border-left-color: #d63638;
	background: #fdf2f2;
}

.alert-content {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.alert-emoji {
	font-size: 16px;
}

.alert-message {
	font-size: 13px;
	color: #1d2327;
}

.generate-content-btn {
	font-size: 11px !important;
	padding: 4px 8px !important;
	height: auto !important;
	line-height: 1.2 !important;
}

/* Opportunities Card */
.seo-opportunities-card .seo-card-header {
	background: linear-gradient(135deg, #dba617 0%, #b89000 100%);
}

.opportunity-score {
	text-align: center;
	background: rgba(255, 255, 255, 0.2);
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 700;
}

/* Tabs */
.seo-intelligence-tabs {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	overflow: hidden;
}

.nav-tab-wrapper {
	border-bottom: 1px solid #c3c4c7;
	background: #f6f7f7;
	margin: 0;
}

.nav-tab {
	border: none;
	background: transparent;
	padding: 15px 20px;
	font-weight: 500;
}

.nav-tab-active {
	background: #fff;
	color: #2271b1;
	border-bottom: 2px solid #2271b1;
}

.seo-tab-content {
	min-height: 400px;
}

.seo-tab-panel {
	display: none;
	padding: 20px;
}

.seo-tab-panel.active {
	display: block;
}

/* Loading States */
.loading-state {
	text-align: center;
	padding: 40px;
	color: #646970;
}

.loading-state .spinner {
	float: none;
	margin-right: 10px;
}

/* No data states */
.no-alerts, .no-opportunities, .no-data {
	text-align: center;
	padding: 30px;
	color: #646970;
	font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
	.seo-cards-grid {
		grid-template-columns: 1fr;
	}

	.nav-tab {
		padding: 10px 12px;
		font-size: 12px;
	}

	.seo-alert {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.alert-action {
		text-align: center;
	}
}

/* Success States */
.content-created-success {
	background: #d1f2eb;
	border: 1px solid #a3e4d7;
	color: #00695c;
	padding: 15px;
	border-radius: 4px;
	margin: 15px 0;
	text-align: center;
}

.content-created-success strong {
	display: block;
	font-size: 16px;
	margin-bottom: 5px;
}

/* Addiction Elements */
.streak-counter {
	background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
	color: #8b4513;
	padding: 8px 12px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 12px;
	display: inline-block;
}

.opportunity-badge {
	background: #00a32a;
	color: white;
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 600;
	margin-left: 5px;
}

.urgency-pulse {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { opacity: 1; }
	50% { opacity: 0.7; }
	100% { opacity: 1; }
}