:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --green: #3fb950;
  --yellow: #d29922;
  --tag-bg: #1f2937;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

header h1 { font-size: 1.5rem; font-weight: 600; }
header p { color: var(--text-muted); margin-top: 0.25rem; }

.stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

.plugin-list { list-style: none; }

.plugin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}

.plugin-card:hover { border-color: var(--accent); }

.plugin-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.plugin-name { font-weight: 600; font-size: 1.1rem; }
.plugin-version { color: var(--text-muted); font-size: 0.85rem; }
.plugin-desc { color: var(--text-muted); margin-bottom: 0.75rem; }
.plugin-category {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--tag-bg);
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--green);
  margin-right: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: var(--tag-bg);
  border-radius: 3px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0.15rem 0.15rem 0 0;
}

.install-cmd {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.detail-meta dt { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.detail-meta dd { font-weight: 600; }

.breadcrumb { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 0.85rem; }

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.api-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.api-note code { color: var(--accent); }
