/* Skills Directory — card-grid layout for the "Best Claude Skills" page.
   Flat CreatorFlow brand: white cards, hairline borders, no shadows, lime accent,
   pure-black copyable install boxes. Reuses guide-detail.css for hero/faq/cta. */

.skills-directory {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 16px;
}

.skills-directory__intro {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #374151;
}

.skills-directory__intro strong {
  color: #111827;
  font-weight: 600;
}

/* Filter chips */
.skills-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
}

.skills-filter {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.skills-filter:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.skills-filter.is-active {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.skills-filter__count {
  opacity: 0.55;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

/* Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

/* Card */
.skill-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.15s ease;
}

.skill-card:hover {
  border-color: #000000;
}

.skill-card.is-hidden {
  display: none;
}

.skill-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.skill-card__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
  color: #111827;
}

.skill-card.skill-card--official .skill-card__icon {
  background: #000000;
  color: #d1fe17;
}

.skill-card__heading {
  min-width: 0;
}

.skill-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin: 0 0 3px;
  word-break: break-word;
}

.skill-card__repo {
  font-size: 0.8125rem;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  word-break: break-all;
}

/* Badges */
.skill-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.skill-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.4;
}

.skill-badge--cat {
  background: #f3f4f6;
  color: #374151;
}

.skill-badge--free {
  background: #d1fe17;
  color: #000000;
}

.skill-badge--license {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

/* Description */
.skill-card__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #374151;
  margin: 0 0 18px;
  flex: 1 1 auto;
}

/* Install box (pure black, copyable) */
.skill-card__install {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  border-radius: 8px;
  padding: 4px 4px 4px 12px;
  margin-bottom: 14px;
}

.skill-card__install code {
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: #ffffff;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.skill-card__install code::-webkit-scrollbar {
  display: none;
}

.skill-copy {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: #1f2937;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.skill-copy:hover {
  background: #d1fe17;
  color: #000000;
}

.skill-copy.is-copied {
  background: #d1fe17;
  color: #000000;
}

/* For not-yet-published skills: muted note instead of install box */
.skill-card__soon {
  font-size: 0.8125rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 14px;
}

/* Footer link */
.skill-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.skill-card__link:hover {
  color: #000000;
  text-decoration: underline;
}

.skill-card__link .arrow {
  transition: transform 0.15s ease;
}

.skill-card__link:hover .arrow {
  transform: translateX(3px);
}

/* Conversion section (CreatorFlow tie) reuses guide section look but full width */
.skills-conversion {
  max-width: 820px;
  margin: 8px auto 0;
  padding: 40px 24px 8px;
}

@media (max-width: 640px) {
  .skills-directory {
    padding: 32px 16px 8px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skills-filter {
    font-size: 0.875rem;
    padding: 8px 14px;
  }
}
