/* public/styles/sidebar-nav.css
 *
 * 左栏分类导航（src/components/nav/CategoryNav.astro）的样式。
 *
 * 为什么放在 public/ 而不是组件里：这份 CSS 只有 1KB 左右，Astro 的
 * inlineStylesheets:'auto' 会把它**内联进每一个页面** —— 1237 个工具页/分类页
 * 各背一份完全相同的 1KB，合计约 1.2 MiB，而且内联样式拿不到跨页缓存。
 * 放进 public/ 后它变成一个带哈希缓存头的共享文件，全站只下一次。
 * 站内已有 share.css / tool-shells.css 走同样的路子。
 *
 * 类名统一 sb-nav- 前缀，不与任何其它样式撞名。
 */

.sb-nav-title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.sb-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.sb-nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
/* 当前分类：实心药丸 + 高亮边框，扫一眼就知道自己在哪 */
.sb-nav-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.sb-nav-icon {
  font-size: 13px;
  flex-shrink: 0;
}
.sb-nav-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-nav-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 99px;
  flex-shrink: 0;
}
