/* /opt/skynet-portal/app/static/css/tooltip.css */
/* v0.1.2 — help-иконка заметнее по умолчанию (акцентная, не серая ghost) */
/* 15.06.2026: 3 языка из window.SkynetHelp; закрепление по клику, ESC/вне-клик */

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent, #7c6cff) 45%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #7c6cff) 10%, transparent);
  color: var(--accent, #7c6cff);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  flex: 0 0 auto;
  opacity: 0.85;
  box-shadow: none;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.help-icon:hover,
.help-icon.is-active {
  opacity: 1;
  color: var(--accent, #7c6cff);
  border-color: color-mix(in srgb, var(--accent, #7c6cff) 50%, transparent);
  background: color-mix(in srgb, var(--accent, #7c6cff) 12%, transparent);
}

.help-tip {
  position: fixed;
  z-index: 3000;
  max-width: 320px;
  background: var(--surface-gradient, var(--bg-surface, #121826));
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-xl, 0 20px 50px rgba(0, 0, 0, 0.5));
  overflow: hidden;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.help-tip.is-visible { opacity: 1; transform: translateY(0); }
.help-tip.is-pinned { pointer-events: auto; }
.help-tip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #7c6cff), var(--accent-hover, #9a8cff));
}
.help-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 5px;
}
.help-tip-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #9a8cff);
}
.help-tip-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #8a93a3);
  cursor: pointer;
}
.help-tip.is-pinned .help-tip-close { display: inline-flex; }
.help-tip-close:hover { color: var(--danger-text, #ff6b6b); background: var(--bg-hover, rgba(255, 255, 255, 0.05)); }
.help-tip-body {
  padding: 0 12px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary, #c4ccd8);
}
