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

/* ===== Variables ===== */
:root {
  --bg: #0d0d0d;
  --surface: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #7ee787;
  --orange: #f0883e;
}

/* ===== Base ===== */
body {
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
}

.header-brand { display: flex; align-items: baseline; gap: 10px; }

.header-logo {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 1px;
}

.header-tagline {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-nav { display: flex; gap: 0; }

.nav-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 14px 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-tab:hover { color: var(--text); }

.nav-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
}

/* ===== Main ===== */
.main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* ===== Tab Content ===== */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== Hero ===== */
.hero { margin-bottom: 32px; }

.hero h1 {
  font-size: 24px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 640px;
}

.hero-install {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--green);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  user-select: all;
  white-space: nowrap;
}

/* ===== Search ===== */
.search-wrap { margin-bottom: 16px; }

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  border-radius: 0;
}

.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--accent); }

/* ===== Stats ===== */
.stats {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Skill Cards ===== */
.skills-list { display: flex; flex-direction: column; gap: 12px; }

.skill-card {
  border: 1px solid var(--border);
  padding: 18px 20px;
  background: var(--surface);
}

.skill-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 6px;
}

.skill-desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.skill-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.skill-tag {
  font-size: 11px;
  color: var(--orange);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 0;
}

.skill-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.skill-install {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--green);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  user-select: all;
  border-radius: 0;
}

/* ===== Section ===== */
.section {
  margin-bottom: 32px;
}

.section h2 {
  font-size: 18px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.section h3 {
  font-size: 15px;
  font-weight: bold;
  color: var(--text);
  margin: 20px 0 8px;
}

.section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.section pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.section code {
  background: var(--surface);
  color: var(--green);
  padding: 2px 6px;
  font-family: inherit;
  font-size: 12px;
}

.section pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* syntax highlighting */
.kw { color: var(--accent); }
.str { color: var(--green); }
.cmt { color: var(--muted); font-style: italic; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer a { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .header-nav.open .nav-tab {
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
  }

  .hamburger { display: block; }

  .header-tagline { display: none; }

  .main { padding: 24px 16px 32px; }

  .hero h1 { font-size: 20px; }
}
