/*
Theme Name: MCP.city
Theme URI: https://mcp.city
Author: HYBRID
Author URI: https://hybridin.io
Description: Modular capability marketplace theme for MCP.city — directory, providers, API keys, pricing, and MCP endpoint integration.
Version: 1.0.0
License: proprietary
Text Domain: mcp-city
*/

:root {
	--bg: #0a0a0f;
	--surface: #13131a;
	--surface-2: #1a1a24;
	--border: #2a2a38;
	--text: #e4e4e7;
	--text-dim: #71717a;
	--accent: #6366f1;
	--accent-hover: #818cf8;
	--accent-dim: #4f46e5;
	--green: #22c55e;
	--yellow: #eab308;
	--red: #ef4444;
	--radius: 12px;
	--radius-sm: 8px;
	--max-width: 1200px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: var(--text); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 1em; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid var(--border);
	color: var(--text);
	background: transparent;
	cursor: pointer;
	transition: all 0.15s;
	text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-sm { padding: 4px 10px; font-size: 0.75rem; }

/* Badges */
.badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.badge-free { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-premium { background: rgba(234,179,8,0.15); color: var(--yellow); }
.badge-auth { background: rgba(99,102,241,0.15); color: var(--accent-hover); }

/* Cards */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	transition: border-color 0.15s;
}
.card:hover { border-color: var(--accent); }

/* Code blocks */
code, pre {
	font-family: "SF Mono", "Fira Code", Monaco, Consolas, monospace;
	font-size: 0.8125rem;
}
pre {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 16px;
	overflow-x: auto;
}
code.inline {
	background: var(--surface-2);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--green);
}

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-dim); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Forms */
input, select, textarea {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	color: var(--text);
	font-size: 0.875rem;
	width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
label { display: block; font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 4px; font-weight: 500; }
.form-group { margin-bottom: 16px; }

/* Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Section spacing */
.section { padding: 60px 0; }
.section-sm { padding: 32px 0; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }

/* Responsive */
@media (max-width: 768px) {
	h1 { font-size: 2rem; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.hero-stats { flex-direction: column; gap: 16px; }
}
