/* Skills Hub — Claude-inspired warm/cream theme */
:root {
  --bg: #F5EFE4;
  --bg-elevated: #FFFFFF;
  --border: #E3D9C6;
  --border-soft: #EDE5D5;
  --text: #201A16;
  --text-muted: #6B6157;
  --text-faint: #9C9186;
  --accent-orange: #D9541F;
  --accent-orange-light: #E8672E;
  --accent-purple: #7A3A94;
  --accent-purple-light: #8E4FAE;
  --tag-bg: #EEE4D2;
  --card-shadow: 0 1px 3px rgba(32, 26, 22, 0.06), 0 4px 14px rgba(32, 26, 22, 0.05);
  --card-shadow-hover: 0 3px 8px rgba(32, 26, 22, 0.09), 0 8px 24px rgba(32, 26, 22, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Roboto, sans-serif;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent-orange); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-purple); }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
  background: var(--bg-elevated);
  position: sticky; top: 0; z-index: 10;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Songti SC", Georgia, "STSong", serif;
  font-weight: 700; font-size: 21px; color: var(--text); letter-spacing: 0.01em;
}
.brand-sub { font-size: 9.5px; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.topbar nav a { margin-left: 22px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.topbar nav a:hover { color: var(--accent-orange); }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 24px; text-align: center; }
.hero h1 {
  font-family: "Songti SC", Georgia, "STSong", serif;
  font-size: 34px; font-weight: 700; margin: 0 0 10px; color: var(--text);
}
.hero p { color: var(--text-muted); font-size: 15px; margin: 0; }
.stats { display: flex; justify-content: center; gap: 40px; margin: 26px 0 8px; }
.stats .stat { text-align: center; }
.stats .num {
  font-family: "Songti SC", Georgia, serif; font-size: 26px; font-weight: 700;
  color: var(--accent-orange);
}
.stats .label { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

/* ---------- Submit box ---------- */
.submit-box {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin: 24px 0; display: flex; gap: 10px; box-shadow: var(--card-shadow);
}
.submit-box input[type=text] {
  flex: 1; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit;
}
.submit-box input[type=text]:focus { outline: none; border-color: var(--accent-orange-light); }
.submit-box button {
  padding: 11px 20px; border-radius: var(--radius-sm); border: none;
  background: var(--accent-orange);
  color: #fff; font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit;
  transition: background 0.15s ease;
}
.submit-box button:hover { background: var(--accent-orange-light); }
.notice { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin: 0 0 16px; }
.notice.warn { background: #FBEFE4; color: #A15C1E; border: 1px solid #F0D9BC; }
.notice.ok { background: #E9F3EA; color: #2F6B3A; border: 1px solid #CDE6CF; }

/* ---------- Search & filters ---------- */
.searchbar { display: flex; gap: 8px; margin: 16px 0 10px; flex-wrap: wrap; }
.searchbar input[type=text] {
  flex: 1; min-width: 200px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 14px; font-family: inherit;
}
.searchbar input[type=text]:focus { outline: none; border-color: var(--accent-purple-light); }
.searchbar select {
  padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-family: inherit; font-size: 14px;
}
.searchbar button {
  padding: 10px 20px; border-radius: var(--radius-sm); border: none;
  background: var(--accent-orange); color: #fff; font-weight: 600; cursor: pointer; font-size: 14px;
  transition: background 0.15s ease;
}
.searchbar button:hover { background: var(--accent-orange-light); }

.filter-pills { display: flex; gap: 8px; margin: 4px 0 22px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s ease;
}
.pill:hover { border-color: var(--accent-orange); color: var(--text); }
.pill.active {
  background: var(--text); color: #fff; border-color: var(--text);
}
.pill .count { opacity: 0.75; font-weight: 400; font-size: 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--card-shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent-orange); }
.card .desc { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.card .meta { font-size: 12.5px; color: var(--text-faint); }

.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700;
}
/* use_case badge — the primary classification, gets a solid fill */
.badge.usecase-use_case { background: #FBE3D3; color: #A8431A; }
.badge.usecase-tool { background: #E6D9EF; color: #6B3182; }
.badge.usecase-data { background: #D7E9DE; color: #1F6B45; }
/* platform badge — secondary, neutral tone with colored text only */
.badge.hermes { background: var(--tag-bg); color: #2B5F8A; }
.badge.claude { background: var(--tag-bg); color: #6B3182; }
.badge.gpt { background: var(--tag-bg); color: #1F6B45; }
.badge.universal { background: var(--tag-bg); color: var(--text-muted); }
/* format badge — tertiary, outline only, lowest visual weight */
.badge.fmt { background: transparent; color: var(--text-faint); border: 1px solid var(--border); font-weight: 600; }

.tag { display: inline-block; background: var(--tag-bg); color: var(--text-muted); padding: 3px 10px; border-radius: 10px; font-size: 11.5px; margin-right: 5px; margin-top: 2px; }

/* ---------- Repo rows ---------- */
.repo-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.repo-row:last-child { border-bottom: none; }
.repo-name { font-weight: 600; font-size: 15px; }
.repo-meta { color: var(--text-faint); font-size: 13px; }

.section-title {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  color: var(--text-faint); margin: 32px 0 14px;
}

.btn {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-sm);
  background: var(--accent-orange);
  color: #fff; font-weight: 600; cursor: pointer; border: none; font-size: 14px; font-family: inherit;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-orange-light); }
.btn.secondary { background: var(--tag-bg); color: var(--text); }
.btn.secondary:hover { background: var(--border); }

table.feed-list { width: 100%; }
table.feed-list td { padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--text-muted); }
.footer { color: var(--text-faint); font-size: 13px; text-align: center; padding: 40px 0 30px; }

form.subscribe-form { background: var(--bg-elevated); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; box-shadow: var(--card-shadow); }
form.subscribe-form label { display: block; margin: 14px 0 5px; font-size: 12.5px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
form.subscribe-form input, form.subscribe-form select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 14px;
}
.code-block {
  background: #FBF8F3; border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: "SF Mono", Menlo, monospace; font-size: 13px; overflow-x: auto; color: var(--text);
}

@media (max-width: 640px) {
  .topbar nav a { margin-left: 12px; font-size: 13px; }
  .hero h1 { font-size: 26px; }
  .stats { gap: 24px; }
}
