/* ============================================================
 * Bot documentation — shared styles
 * ============================================================ */

/* ── サイドバー + コンテンツ 2 カラムレイアウト ── */
.bot-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.bot-sidebar {
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.bot-sidebar::-webkit-scrollbar { width: 6px; }
.bot-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12); border-radius: 3px;
}
.bot-sidebar__group { margin-bottom: 14px; }
.bot-sidebar__cmd {
  display: block;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 14px; font-weight: 700;
  color: #94a3b8; text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
  transition: 0.15s ease;
  transition-property: color, background;
}
.bot-sidebar__cmd:hover {
  color: #e2e8f0; background: rgba(255,255,255,0.04);
}
.bot-sidebar__group.is-current .bot-sidebar__cmd {
  color: #38bdf8; background: rgba(56,189,248,0.1);
}
.bot-sidebar__sub {
  list-style: none;
  margin: 4px 0 0 14px;
  padding: 0 0 0 10px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.bot-sidebar__sub li { margin: 0; }
.bot-sidebar__sub a {
  display: block;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px; color: #64748b;
  text-decoration: none;
  padding: 4px 10px; border-radius: 6px;
  transition: 0.15s ease;
  transition-property: color, background;
}
.bot-sidebar__sub a:hover {
  color: #e2e8f0; background: rgba(255,255,255,0.04);
}

@media (max-width: 960px) {
  .bot-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bot-sidebar {
    position: static;
    max-height: none;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

/* ── コマンドカードグリッド（index用） ── */
.cmd-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
  margin-bottom: 40px;
}
.cmd-card {
  display: block; text-decoration: none; color: inherit;
  background: rgba(16,20,30,0.82); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 20px;
  padding: 28px 24px;
  transition: 0.18s ease;
  transition-property: border-color, transform, box-shadow;
}
.cmd-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(59,130,246,0.18);
}
.cmd-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.cmd-card p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.6; }
.cmd-badge-wip {
  display: inline-block; margin-bottom: 10px; margin-left: 8px;
  background: linear-gradient(135deg, rgba(250,204,21,0.18), rgba(251,146,60,0.18));
  color: #fbbf24;
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(250,204,21,0.25);
  box-shadow: 0 0 12px rgba(250,204,21,0.10);
  animation: wip-pulse 2.5s ease-in-out infinite;
}
@keyframes wip-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(250,204,21,0.10); }
  50% { box-shadow: 0 0 20px rgba(250,204,21,0.25); }
}
.cmd-card .cmd-label {
  display: inline-block; margin-bottom: 10px;
  background: rgba(56,189,248,0.1); color: #38bdf8;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 12px; padding: 2px 10px; border-radius: 4px;
}

/* ── パンくず ── */
.bot-breadcrumb {
  font-size: 13px; color: #64748b; margin-bottom: 24px;
}
.bot-breadcrumb a {
  color: #64748b; text-decoration: none; transition: color 0.15s;
}
.bot-breadcrumb a:hover { color: #e2e8f0; }
.bot-breadcrumb .sep { margin: 0 6px; }

/* ── ページ内ナビ ── */
.bot-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bot-nav a {
  display: inline-block; text-decoration: none;
  font-size: 13px; font-weight: 600; color: #64748b;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: 0.15s ease;
  transition-property: color, background, border-color;
}
.bot-nav a:hover {
  color: #e2e8f0; background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.3);
}

/* ── セクション共通 ── */
.bot-section { margin-bottom: 48px; scroll-margin-top: 64px; }
.bot-section h2 {
  font-size: 20px; font-weight: 700; margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bot-section h3 {
  font-size: 16px; font-weight: 600; color: #94a3b8; margin: 24px 0 8px;
}
.bot-section p, .bot-section li {
  color: #94a3b8; font-size: 14px; line-height: 1.8;
}
.bot-section ul { padding-left: 20px; margin: 8px 0; }
.bot-section li { margin-bottom: 4px; }

/* ── インライン要素 ── */
.cmd {
  display: inline-block;
  background: rgba(56,189,248,0.1); color: #38bdf8;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px; padding: 2px 8px; border-radius: 4px;
}
.param { color: #a78bfa; }

/* ── コードブロック ── */
.code-block {
  background: rgba(16,20,30,0.82); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 16px 20px; margin: 12px 0;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px; line-height: 1.8; color: #e2e8f0;
  overflow-x: auto;
}
.code-block .comment { color: #64748b; }

/* ── ノート ── */
.note {
  background: rgba(250,204,21,0.08); border-left: 3px solid #facc15;
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 12px 0;
  font-size: 13px; color: #94a3b8; line-height: 1.7;
}
.note.note--info {
  background: rgba(56,189,248,0.06); border-left-color: #38bdf8;
}

/* ── ステップリスト ── */
.step-list { counter-reset: step; list-style: none; padding-left: 0; }
.step-list li {
  counter-increment: step; padding-left: 32px; position: relative; margin-bottom: 12px;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(56,189,248,0.15); color: #38bdf8;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
