/* ====================================================================
 * css/help-panel.css — slide-out help panel styles
 * ====================================================================
 */

.kdg-help-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--kdg-surface, #fff);
  color: var(--kdg-ink-2, #3a3a36);
  border: 1px solid var(--kdg-border, #ececea);
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.32, 0.72, 0.32, 1);
}
.kdg-help-btn:hover { background: var(--kdg-surface-hover, #f7f7f4); color: var(--kdg-ink, #14140f); }

.kdg-help-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 15, 0.4);
  z-index: 1100;
  animation: kdg-help-fade 180ms ease;
}
@keyframes kdg-help-fade { from { opacity: 0; } to { opacity: 1; } }

.kdg-help-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: #fff;
  z-index: 1101;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(20, 20, 15, 0.12);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0.32, 1);
}
.kdg-help-panel.is-open { transform: translateX(0); }
@media (max-width: 720px) {
  .kdg-help-panel { width: 100vw; }
  .kdg-help-backdrop { background: rgba(20, 20, 15, 0.85); }
}

.kdg-help-panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #ececea;
  position: sticky; top: 0;
  background: #fff;
  z-index: 2;
}
.kdg-help-panel-title { font-weight: 600; font-size: 14px; flex: 1; color: #14140f; }
.kdg-help-panel-actions { display: flex; gap: 12px; }
.kdg-help-panel-link {
  font-size: 12px; color: #6b6b66; text-decoration: none;
}
.kdg-help-panel-link:hover { color: #14140f; text-decoration: none; }
.kdg-help-panel-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: #6b6b66;
}
.kdg-help-panel-close:hover { background: #f7f7f4; color: #14140f; }

.kdg-help-panel-search {
  padding: 12px 16px;
  border-bottom: 1px solid #ececea;
}
.kdg-help-panel-search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ececea;
  background: #fbfbfa;
  font: inherit; font-size: 13px; color: #14140f;
  outline: 0;
}
.kdg-help-panel-search input:focus { background: #fff; border-color: #ff4d4d; }

.kdg-help-panel-body {
  flex: 1; overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.kdg-help-panel-card {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbfbfa;
  border: 1px solid #ececea;
  text-decoration: none; color: #14140f;
  transition: all 180ms cubic-bezier(0.32, 0.72, 0.32, 1);
}
.kdg-help-panel-card:hover { background: #f7f7f4; border-color: #d4d4cf; text-decoration: none; }
.kdg-help-panel-card-title { font-size: 13px; font-weight: 600; }
.kdg-help-panel-card-summary { font-size: 12px; color: #6b6b66; margin: 4px 0 0; line-height: 1.4; }
.kdg-help-panel-card-meta { font-size: 11px; color: #9b9b95; margin-top: 4px; }

.kdg-help-panel-empty {
  font-size: 13px; color: #6b6b66;
  padding: 12px 0; line-height: 1.5;
}

.kdg-help-panel-foot {
  padding: 12px 16px;
  border-top: 1px solid #ececea;
  background: #fbfbfa;
}
