/* FlowCore /commands-info — dedicated catalog styles (independent of styles.css cache) */

.commands-catalog-body {
  background:
    radial-gradient(1200px 520px at 8% -8%, rgba(84, 215, 197, 0.12), transparent 58%),
    radial-gradient(900px 420px at 92% 0%, rgba(88, 101, 242, 0.1), transparent 55%),
    var(--bg, #070d14);
}

.commands-catalog-page {
  max-width: 1180px;
}

.commands-catalog-hero .commands-catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 14px 0 4px;
}

.commands-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(84, 215, 197, 0.22);
  background: rgba(10, 20, 30, 0.72);
  font-size: 13px;
  color: rgba(220, 235, 250, 0.88);
}

.commands-stat strong {
  color: #9ef5e8;
  font-weight: 700;
}

.commands-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.commands-search-wrap {
  flex: 1 1 220px;
  min-width: 200px;
}

.commands-search-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.18);
  background: rgba(8, 14, 24, 0.85);
  color: #e8f2ff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.commands-search-input:focus {
  outline: none;
  border-color: rgba(84, 215, 197, 0.55);
  box-shadow: 0 0 0 3px rgba(84, 215, 197, 0.12);
}

.commands-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commands-chip {
  border: 1px solid rgba(151, 191, 255, 0.16);
  background: rgba(10, 17, 27, 0.7);
  color: rgba(220, 235, 250, 0.9);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.commands-chip:hover {
  border-color: rgba(84, 215, 197, 0.35);
  transform: translateY(-1px);
}

.commands-chip.is-active {
  background: linear-gradient(135deg, rgba(84, 215, 197, 0.22), rgba(88, 101, 242, 0.18));
  border-color: rgba(84, 215, 197, 0.45);
  box-shadow: 0 0 0 1px rgba(84, 215, 197, 0.15);
}

.commands-catalog-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-pill.tier-free {
  background: rgba(84, 215, 197, 0.14);
  color: #9ef5e8;
  border: 1px solid rgba(84, 215, 197, 0.28);
}

.tier-pill.tier-premium {
  background: rgba(255, 196, 87, 0.12);
  color: #ffd98a;
  border: 1px solid rgba(255, 196, 87, 0.32);
}

.tier-pill.tier-admin {
  background: rgba(151, 191, 255, 0.12);
  color: #c8dcff;
  border: 1px solid rgba(151, 191, 255, 0.28);
}

.commands-catalog-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}

.commands-catalog-main {
  min-width: 0;
}

.commands-catalog-nav {
  position: sticky;
  top: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(151, 191, 255, 0.12);
  background: rgba(10, 17, 27, 0.72);
  max-height: calc(100vh - 36px);
  overflow: auto;
  scrollbar-width: thin;
}

.commands-nav-title {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(180, 205, 230, 0.75);
}

.commands-catalog-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.commands-catalog-nav li {
  margin: 0;
}

.commands-nav-link {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(220, 235, 250, 0.88);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.commands-nav-link:hover {
  background: rgba(84, 215, 197, 0.1);
  color: #fff;
}

.commands-catalog-nav li.is-active .commands-nav-link {
  background: rgba(84, 215, 197, 0.16);
  color: #fff;
  box-shadow: inset 2px 0 0 rgba(84, 215, 197, 0.75);
}

.commands-chapter {
  scroll-margin-top: 24px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(151, 191, 255, 0.1);
  background: rgba(10, 17, 27, 0.58);
  animation: commandsChapterIn 0.55s ease both;
  animation-delay: calc(var(--chapter-i, 0) * 45ms);
}

@keyframes commandsChapterIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.commands-chapter-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.commands-chapter-head p {
  margin: 0;
  color: rgba(200, 220, 240, 0.78);
  font-size: 14px;
}

.commands-section {
  margin-top: 16px;
  animation: commandsSectionIn 0.45s ease both;
  animation-delay: calc(var(--section-i, 0) * 30ms + 80ms);
}

@keyframes commandsSectionIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.commands-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
}

.commands-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.commands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(151, 191, 255, 0.08);
  background: rgba(6, 12, 20, 0.55);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.commands-row:hover {
  border-color: rgba(84, 215, 197, 0.22);
  transform: translateX(2px);
}

.commands-usage {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #dff7f2;
  word-break: break-word;
}

.commands-catalog-loading,
.commands-catalog-empty,
.commands-catalog-error {
  padding: 24px;
  text-align: center;
  color: rgba(200, 220, 240, 0.8);
}

.commands-stat.muted-stat {
  opacity: 0.72;
  border-color: rgba(151, 191, 255, 0.14);
}

.commands-catalog-foot {
  margin-top: 28px;
}

@media (max-width: 860px) {
  .commands-catalog-layout {
    grid-template-columns: 1fr;
  }

  .commands-catalog-nav {
    position: static;
    max-height: none;
  }

  .commands-catalog-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .commands-nav-link {
    padding: 6px 10px;
    border: 1px solid rgba(151, 191, 255, 0.12);
    background: rgba(6, 12, 20, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .commands-chapter,
  .commands-section,
  .commands-row,
  .commands-chip {
    animation: none;
    transition: none;
  }
}
