/* Tab styles */
.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: #1f2937; }
.tab-btn.active { color: #d97706; border-bottom-color: #d97706; }

/* Summary card */
.summary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.summary-card .count { font-size: 2.5rem; font-weight: 700; color: #d97706; }
.summary-card .label { font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem; }

/* Item card */
.item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}
.item-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.item-card h3 { font-weight: 600; color: #111827; margin-bottom: 0.25rem; font-size: 0.9375rem; }
.item-card .meta { font-size: 0.75rem; color: #9ca3af; }
.item-card .desc { font-size: 0.8125rem; color: #4b5563; margin-top: 0.5rem; line-height: 1.5; }

/* Usage badge */
.usage-badge {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #9ca3af;
  font-weight: 500;
}
.usage-badge.used { background: #fef3c7; color: #d97706; }

/* Scope badge */
.scope-badge {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
}
.scope-bundled { background: #f3f4f6; color: #374151; }
.scope-plugin { background: #dbeafe; color: #2563eb; }
.scope-personal { background: #d1fae5; color: #059669; }
.scope-project { background: #ede9fe; color: #7c3aed; }

/* Scope section grouping */
.scope-section { margin-bottom: 0.5rem; }
.scope-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.scope-header .scope-badge { font-size: 0.8125rem; padding: 0.25rem 0.75rem; }
.scope-count {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Project card */
.project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.project-name { font-size: 1.125rem; font-weight: 600; color: #111827; margin: 0; }
.project-total { font-size: 0.8125rem; color: #9ca3af; }
.project-stats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.project-stat {
  font-size: 0.75rem;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-weight: 500;
}
.project-details {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.project-usage-group { flex: 1; min-width: 180px; }
.project-usage-label {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.project-usage-items { display: flex; flex-direction: column; gap: 0.25rem; }
.project-usage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #374151;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f9fafb;
}
/* Detail page */
.detail-page { max-width: 800px; }
.back-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}
.back-btn:hover { color: #111827; border-color: #d1d5db; }
.detail-header { margin-bottom: 2rem; }
.detail-title { font-size: 1.5rem; font-weight: 700; color: #111827; margin: 0 0 0.5rem 0; }
.detail-badges { display: flex; align-items: center; gap: 0.75rem; }
.detail-source { font-size: 0.8125rem; color: #9ca3af; }

.detail-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.detail-lang-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.detail-zh-name { font-size: 1.25rem; font-weight: 600; color: #111827; margin: 0 0 0.5rem 0; }
.detail-zh-desc, .detail-en-desc {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}
.detail-content {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
}
.detail-content h2 { font-size: 1.125rem; font-weight: 600; margin: 1.25rem 0 0.5rem 0; color: #111827; }
.detail-content h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem 0; color: #111827; }
.detail-content h4 { font-size: 0.9375rem; font-weight: 600; margin: 0.75rem 0 0.25rem 0; color: #374151; }
.detail-content ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.detail-content li { margin: 0.25rem 0; }
.detail-content pre {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.detail-content code { font-family: 'SF Mono', Monaco, monospace; font-size: 0.8125rem; }
.inline-code {
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-family: 'SF Mono', Monaco, monospace;
}

.project-usage-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #d97706;
  min-width: 2rem;
  text-align: right;
}
