/* tutorial-help.css — overlay "Sobre este tutorial" (PRD + Design Doc) */

.tutorial-help-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.2));
  background: var(--surface, #181828);
  color: var(--fg, #ffffff);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.tutorial-help-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 66, 154, 0.4);
  background: color-mix(in srgb, var(--sys-magenta, #FC429A), var(--surface, #181828) 70%);
}
.tutorial-help-fab:focus-visible {
  outline: 2px solid var(--sys-cyan, #5EAEFF);
  outline-offset: 2px;
}

.tutorial-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tutorial-help-modal[hidden] { display: none; }

.tutorial-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
[data-theme="light"] .tutorial-help-backdrop { background: rgba(240, 240, 250, 0.72); }

.tutorial-help-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface, #181828);
  color: var(--fg, #ffffff);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.2));
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: var(--font-display, system-ui, -apple-system, sans-serif);
  line-height: 1.55;
}
[data-theme="light"] .tutorial-help-content {
  background: #ffffff;
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.tutorial-help-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.2));
  background: transparent;
  color: var(--fg-muted, #b0b0c0);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.tutorial-help-close:hover {
  background: color-mix(in srgb, var(--sys-magenta, #FC429A), transparent 80%);
  color: var(--fg, #ffffff);
  transform: scale(1.05);
}
.tutorial-help-close:focus-visible {
  outline: 2px solid var(--sys-cyan, #5EAEFF);
  outline-offset: 2px;
}

.tutorial-help-body h2 {
  margin: 0 0 12px 0;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--sys-magenta, #FC429A);
}
.tutorial-help-body h3 {
  margin: 18px 0 8px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sys-cyan, #5EAEFF);
}
.tutorial-help-body p {
  margin: 0 0 12px 0;
  font-size: 14px;
}
.tutorial-help-body .tutorial-help-lede {
  font-size: 15px;
  color: var(--fg-muted, #c8c8d4);
  border-left: 3px solid var(--sys-magenta, #FC429A);
  padding-left: 14px;
  margin-bottom: 18px;
}
.tutorial-help-body ul {
  margin: 0 0 12px 0;
  padding-left: 22px;
  font-size: 14px;
}
.tutorial-help-body ul li { margin-bottom: 4px; }
.tutorial-help-body code {
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--sys-violet, #B197FC), transparent 80%);
  color: var(--fg, #ffffff);
}
[data-theme="light"] .tutorial-help-body code {
  background: rgba(124, 86, 226, 0.12);
  color: #4a3a8a;
}
.tutorial-help-body kbd {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--surface, #181828), white 8%);
  box-shadow: 0 1px 0 var(--border-strong, rgba(255, 255, 255, 0.2));
}
.tutorial-help-body details {
  margin: 14px 0;
  border-top: 1px dashed var(--border-strong, rgba(255, 255, 255, 0.18));
  padding-top: 12px;
}
.tutorial-help-body details:first-of-type { border-top: none; padding-top: 0; }
.tutorial-help-body summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg, #ffffff);
  padding: 4px 0;
  user-select: none;
}
.tutorial-help-body summary:hover { color: var(--sys-cyan, #5EAEFF); }
.tutorial-help-body details[open] summary { color: var(--sys-cyan, #5EAEFF); margin-bottom: 6px; }
.tutorial-help-body details.tutorial-help-nested {
  margin: 6px 0 12px 0;
  padding: 8px 12px;
  border: 1px dashed color-mix(in srgb, var(--border-strong, rgba(255, 255, 255, 0.18)), transparent 30%);
  border-top: 1px dashed color-mix(in srgb, var(--border-strong, rgba(255, 255, 255, 0.18)), transparent 30%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface, #181828), black 8%);
}
.tutorial-help-body details.tutorial-help-nested summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted, #c8c8d4);
}
.tutorial-help-body details.tutorial-help-nested[open] summary {
  color: var(--sys-cyan, #5EAEFF);
}
.tutorial-help-body .tutorial-help-section-intro {
  font-size: 13px;
  color: var(--fg-muted, #c8c8d4);
  margin: 4px 0 14px 0;
  font-style: italic;
}
.tutorial-help-body ol {
  margin: 0 0 12px 0;
  padding-left: 22px;
  font-size: 14px;
}
.tutorial-help-body ol li { margin-bottom: 6px; }
.tutorial-help-body pre {
  background: color-mix(in srgb, var(--surface, #181828), black 30%);
  border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.18));
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0 14px 0;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
}
[data-theme="light"] .tutorial-help-body pre {
  background: #f5f5fa;
  border-color: rgba(0, 0, 0, 0.08);
}
.tutorial-help-body pre code {
  background: transparent;
  padding: 0;
  color: var(--fg, #e8e8f0);
  font-size: 12.5px;
}
[data-theme="light"] .tutorial-help-body pre code { color: #2a2a3e; }
.tutorial-help-body blockquote {
  margin: 8px 0;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--sys-cyan, #5EAEFF), transparent 90%);
  border-left: 3px solid var(--sys-cyan, #5EAEFF);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-size: 13px;
  color: var(--fg, #e8e8f0);
}
.tutorial-help-body blockquote code {
  font-style: normal;
}
.tutorial-help-body .tutorial-help-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong, rgba(255, 255, 255, 0.18));
  font-size: 12px;
  color: var(--fg-muted, #909098);
  text-align: center;
}

body.tutorial-help-open { overflow: hidden; }

/* Scrollbar suave dentro do modal (webkit) */
.tutorial-help-content::-webkit-scrollbar { width: 8px; }
.tutorial-help-content::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fg-muted, #909098), transparent 60%);
  border-radius: 4px;
}
.tutorial-help-content::-webkit-scrollbar-track { background: transparent; }
