.commands-hero {
  padding: var(--spacing-xxl) 0;
  margin-top: 0;
  background: var(--gradient-hero);
  position: relative;
}

.commands-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 204, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(0, 102, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px, 100px 100px;
  z-index: -1;
}

.commands-hero .search-box {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.commands-hero .search-input {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid #3a4a66;
  border-radius: 10px;
  background: #121821;
  color: #e8e8f0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.commands-hero .search-input::placeholder {
  color: #7a8499;
}

.commands-hero .search-input:hover {
  border-color: #5b8dd9;
}

.commands-hero .search-input:focus {
  border-color: #5b8dd9;
  background: #151d28;
  box-shadow: 0 0 0 3px rgba(91, 141, 217, 0.22);
}

.commands-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.commands-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.commands-toc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(91, 141, 217, 0.12);
  border: 1px solid rgba(91, 141, 217, 0.28);
  color: #c8d6ea;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.commands-toc a:hover {
  background: rgba(91, 141, 217, 0.22);
  border-color: #5b8dd9;
  color: #fff;
}

.commands-category {
  margin-bottom: 28px;
  background: #12121f;
  border: 1px solid #2a2a3e;
  border-radius: 14px;
  overflow: hidden;
}

.commands-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a3e;
  background: #161625;
}

.commands-category-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #e8e8f0;
}

.commands-category-icon {
  font-size: 1.15rem;
}

.commands-table {
  width: 100%;
  border-collapse: collapse;
}

.commands-table th {
  text-align: left;
  padding: 10px 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
  border-bottom: 1px solid #242438;
  background: #10101a;
}

.commands-table td {
  padding: 14px 20px;
  vertical-align: top;
  border-bottom: 1px solid #1e1e2e;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.45;
}

.commands-table tr:last-child td {
  border-bottom: none;
}

.commands-table tr:hover td {
  background: rgba(91, 141, 217, 0.06);
}

.cmd-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}

.cmd-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  color: #7ab2f7;
  background: #0d1524;
  border: 1px solid #2a3a5a;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.commands-category.is-iron .commands-category-header {
  border-bottom-color: rgba(232, 232, 232, 0.28);
}

.commands-category.is-gold .commands-category-header {
  border-bottom-color: rgba(255, 215, 0, 0.28);
}

.commands-category.is-diamond .commands-category-header {
  border-bottom-color: rgba(85, 255, 255, 0.28);
}

.commands-category.is-iron .commands-category-header h2 {
  color: #e8e8e8;
}

.commands-category.is-gold .commands-category-header h2 {
  color: #ffd700;
}

.commands-category.is-diamond .commands-category-header h2 {
  color: #55ffff;
}

.commands-empty {
  text-align: center;
  color: #888;
  padding: 40px 16px;
}

@media (max-width: 700px) {
  .commands-table,
  .commands-table thead,
  .commands-table tbody,
  .commands-table th,
  .commands-table td,
  .commands-table tr {
    display: block;
  }

  .commands-table thead {
    display: none;
  }

  .commands-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid #1e1e2e;
  }

  .commands-table td {
    padding: 0;
    border: none;
  }

  .commands-table td:first-child {
    margin-bottom: 8px;
  }
}
