/* MCP.city — Page-specific styles */

/* Page Header */
.mcpcity-page-header {
	padding: 60px 0 32px;
	text-align: center;
	border-bottom: 1px solid var(--border);
}
.mcpcity-page-header h1 {
	font-size: 2.5rem;
	margin-bottom: 8px;
}
.mcpcity-page-header p {
	color: var(--text-dim);
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
}

/* Dashboard */
.mcpcity-identity-card {
	margin-bottom: 32px;
}
.mcpcity-identity-row {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}
.mcpcity-identity-field label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}
.mcpcity-dashboard-section {
	margin-bottom: 48px;
}
.mcpcity-dashboard-section h2 {
	font-size: 1.5rem;
	margin-bottom: 8px;
}
.mcpcity-section-desc {
	color: var(--text-dim);
	font-size: 0.875rem;
	margin-bottom: 20px;
}
.mcpcity-api-keys-list {
	margin-bottom: 24px;
}
.mcpcity-api-key-form {
	margin-top: 16px;
}
.mcpcity-api-key-form h3 {
	margin-bottom: 16px;
}
.mcpcity-form {
	max-width: 600px;
}
.mcpcity-loading {
	color: var(--text-dim);
	padding: 20px 0;
	text-align: center;
}

/* Provider Form */
.mcpcity-provider-form {
	margin-top: 32px;
}
.mcpcity-provider-form h3 {
	margin-bottom: 8px;
}
.mcpcity-provider-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mcpcity-provider-header {
	display: flex;
	gap: 12px;
	align-items: center;
}
.mcpcity-provider-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
}
.mcpcity-provider-desc {
	color: var(--text-dim);
	font-size: 0.875rem;
}

/* Pricing */
.mcpcity-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}
.mcpcity-pricing-card {
	position: relative;
	text-align: center;
	padding: 32px 24px;
}
.mcpcity-pricing-highlighted {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}
.mcpcity-pricing-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.mcpcity-pricing-card h3 {
	font-size: 1.25rem;
	margin-bottom: 8px;
}
.mcpcity-pricing-desc {
	color: var(--text-dim);
	font-size: 0.875rem;
	margin-bottom: 24px;
}
.mcpcity-pricing-price {
	margin-bottom: 24px;
}
.mcpcity-pricing-amount {
	font-size: 2.5rem;
	font-weight: 800;
}
.mcpcity-pricing-period {
	color: var(--text-dim);
	font-size: 1rem;
}
.mcpcity-pricing-features {
	list-style: none;
	text-align: left;
	margin-bottom: 24px;
}
.mcpcity-pricing-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 0.875rem;
	color: var(--text-dim);
}
.mcpcity-pricing-features svg {
	color: var(--green);
	flex-shrink: 0;
}
.mcpcity-pricing-cta {
	width: 100%;
	justify-content: center;
}
.mcpcity-micropay-info {
	text-align: center;
	margin-top: 24px;
}

/* Docs */
.mcpcity-docs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 24px;
}
.mcpcity-docs-section h3 {
	margin-bottom: 12px;
}
.mcpcity-docs-section h4 {
	font-size: 0.875rem;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 20px 0 8px;
}
.mcpcity-docs-section pre {
	margin: 8px 0;
}
.mcpcity-docs-section table {
	margin: 12px 0;
}
@media (max-width: 768px) {
	.mcpcity-docs-grid { grid-template-columns: 1fr; }
}

/* No results */
.mcpcity-no-results {
	text-align: center;
	padding: 40px;
	color: var(--text-dim);
}

/* Hidden cards (filtering) */
.mcpcity-cat-card.hidden { display: none; }

/* Breadcrumbs */
.mcpcity-breadcrumb {
	font-size: 0.8125rem;
	color: var(--text-dim);
	margin-bottom: 16px;
}
.mcpcity-breadcrumb a { color: var(--text-dim); }
.mcpcity-breadcrumb a:hover { color: var(--text); }
.mcpcity-breadcrumb span { color: var(--text); }

/* Capability category page */
.mcpcity-cat-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.mcpcity-cat-hero-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: var(--surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}
.mcpcity-cat-hero h1 {
	font-size: 2rem;
	text-align: center;
}
.mcpcity-cat-hero p {
	color: var(--text-dim);
	text-align: center;
	max-width: 500px;
}
.mcpcity-cat-hero-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
}

/* Tool detail list */
.mcpcity-tool-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 32px;
}
.mcpcity-tool-detail {
	padding: 16px 20px;
}
.mcpcity-tool-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.mcpcity-tool-detail-header h3 {
	margin: 0;
	font-size: 1rem;
}
.mcpcity-tool-detail-header code {
	color: var(--green);
	font-size: 0.9375rem;
}
.mcpcity-tool-detail-desc {
	color: var(--text-dim);
	font-size: 0.875rem;
	margin: 0;
}

/* How to use box */
.mcpcity-howto {
	margin-bottom: 32px;
}
.mcpcity-howto h3 {
	margin-bottom: 16px;
}
.mcpcity-howto ol {
	padding-left: 20px;
	color: var(--text-dim);
	line-height: 2;
}
.mcpcity-howto code {
	color: var(--green);
}

/* Related categories */
.mcpcity-related h3 {
	font-size: 1.125rem;
	margin-bottom: 16px;
}
.mcpcity-related-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Sandbox & Test Pages */
.mcpcity-sandbox-header, .mcpcity-test-header {
	background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
	color: #fff;
}
.mcpcity-sandbox-header h1, .mcpcity-test-header h1 { color: #fff; }
.mcpcity-sandbox-header p, .mcpcity-test-header p { color: #8b949e; }
.mcpcity-sandbox-badge {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 16px;
	flex-wrap: wrap;
}
.badge { padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.badge-free { background: #1a7f37; color: #fff; }
.badge-info { background: #0969da; color: #fff; }
.badge-premium { background: #8957e5; color: #fff; }

.mcpcity-sandbox-status {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 32px;
}
.mcpcity-sandbox-session {
	display: flex;
	align-items: center;
	gap: 16px;
}
.mcpcity-sandbox-session-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
}
.mcpcity-sandbox-session-info { flex: 1; }
.mcpcity-sandbox-session-info h3 { margin: 0 0 4px; font-size: 1.1rem; }
.mcpcity-sandbox-session-info p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

.mcpcity-sandbox-endpoint-info, .mcpcity-test-input-section, .mcpcity-test-api-section, .mcpcity-test-register-section {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}
.mcpcity-sandbox-endpoint-info h3, .mcpcity-test-input-section h3, .mcpcity-test-api-section h3, .mcpcity-test-register-section h3 {
	margin-top: 0;
}
.mcpcity-code-block {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 12px 16px;
	font-family: monospace;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	overflow-x: auto;
}
.mcpcity-result-json {
	white-space: pre-wrap;
	word-break: break-all;
	max-height: 400px;
	overflow-y: auto;
}
.mcpcity-help-text { color: var(--text-dim); font-size: 0.85rem; margin-top: 8px; }

.mcpcity-sandbox-quick-tests, .mcpcity-sandbox-all-tools, .mcpcity-standards-tracker {
	margin-bottom: 32px;
}
.mcpcity-quick-test-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.2s;
}
.mcpcity-quick-test-card:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}
.mcpcity-quick-test-icon { font-size: 2rem; margin-bottom: 8px; }
.mcpcity-quick-test-card h4 { margin: 0 0 4px; font-size: 1rem; }
.mcpcity-quick-test-card p { margin: 0 0 8px; font-size: 0.85rem; color: var(--text-dim); }

.mcpcity-sandbox-result {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 32px;
}
.mcpcity-sandbox-result-meta {
	display: flex;
	gap: 16px;
	margin-bottom: 12px;
	font-size: 0.85rem;
	color: var(--text-dim);
}
.sandbox-success { color: #1a7f37; }
.sandbox-error { color: #da3633; }

.mcpcity-tool-cat-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 16px;
}
.mcpcity-tool-cat-premium { border-color: #8957e5; }
.mcpcity-tool-cat-card h4 { margin: 0 0 4px; font-size: 0.95rem; }
.mcpcity-tool-cat-card ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.8rem; }
.mcpcity-tool-cat-card li { padding: 2px 0; color: var(--text-dim); }
.mcpcity-more { color: var(--accent) !important; font-style: italic; }

.mcpcity-sandbox-missing-cta, .mcpcity-sandbox-upgrade-cta {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 32px;
	text-align: center;
	margin-bottom: 24px;
}
.mcpcity-sandbox-missing-cta { border-color: #0969da; }
.mcpcity-sandbox-upgrade-cta { border-color: #8957e5; }
.mcpcity-sandbox-missing-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }

/* Test Lab */
.mcpcity-test-input-row {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.mcpcity-test-options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
}
.mcpcity-test-options label {
	font-size: 0.9rem;
	color: var(--text-dim);
	cursor: pointer;
}
.mcpcity-select {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
}
.mcpcity-test-results {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}
.mcpcity-test-score {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
}
.score-pass { color: #1a7f37; font-weight: 600; }
.score-warn { color: #d29922; font-weight: 600; }
.score-fail { color: #da3633; font-weight: 600; }
.mcpcity-test-check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.check-icon { font-size: 1.2rem; font-weight: bold; }
.check-pass .check-icon { color: #1a7f37; }
.check-warn .check-icon { color: #d29922; }
.check-fail .check-icon { color: #da3633; }
.check-name { font-weight: 600; min-width: 250px; }
.check-detail { color: var(--text-dim); font-size: 0.85rem; }

.mcpcity-standard-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
}
.mcpcity-standard-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.status-current { background: #1a7f37; color: #fff; }
.status-draft { background: #d29922; color: #fff; }
.mcpcity-standard-card h4 { margin: 0 0 4px; }
.mcpcity-standard-card p { margin: 0 0 12px; font-size: 0.85rem; color: var(--text-dim); }
