/* ══════════════════════════════════════
   TUTORIAL OVERLAY
══════════════════════════════════════ */

/* Backdrop escurecido */
#tutorialBackdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
#tutorialBackdrop.visible {
  opacity: 1;
  pointer-events: all;
}

/* Tooltip / bolha flutuante */
.tutorial-tooltip {
  position: fixed;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 22px 24px 20px;
  width: min(320px, 90vw);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.6);
  font-family: 'Nunito', sans-serif;
  opacity: 0;
  transform: scale(0.9) translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.tutorial-tooltip.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
body.dark .tutorial-tooltip {
  background: rgba(22, 24, 42, 0.98);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,122,224,0.2);
}

/* Emoji grande no topo */
.tutorial-emoji {
  font-size: 36px;
  text-align: center;
  display: block;
  margin-bottom: 10px;
}

/* Título */
.tutorial-title {
  font-size: 17px;
  font-weight: 900;
  color: #2d2f4a;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
}
body.dark .tutorial-title { color: #e0e0f0; }

/* Descrição */
.tutorial-desc {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 18px;
}
body.dark .tutorial-desc { color: #9095b8; }

/* Botões */
.tutorial-btns {
  display: flex;
  gap: 10px;
}
.tutorial-btn {
  flex: 1;
  padding: 11px 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
}
.tutorial-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.tutorial-btn-primary {
  background: linear-gradient(135deg, #6c7ae0, #a78bfa);
  color: white;
  box-shadow: 0 4px 14px rgba(108,122,224,0.4);
}
.tutorial-btn-secondary {
  background: #f0f1f8;
  color: #555;
}
body.dark .tutorial-btn-secondary { background: #1e2035; color: #aaa; }

/* Indicador de progresso (bolinhas) */
.tutorial-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.tutorial-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(108, 122, 224, 0.2);
  transition: background 0.3s, transform 0.3s;
}
.tutorial-dot.active {
  background: #6c7ae0;
  transform: scale(1.3);
}

/* Seta apontando para o elemento destacado */
.tutorial-arrow {
  position: fixed;
  z-index: 1050;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(108,122,224,0.5));
  animation: arrowPulse 1.2s ease-in-out infinite;
}
.tutorial-arrow.visible { opacity: 1; }

@keyframes arrowPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-6px) scale(1.1); }
}

/* Destaque de elemento (glow) */
.tutorial-highlight {
  position: fixed;
  border-radius: 16px;
  z-index: 1010;
  box-shadow: 0 0 0 3px #a78bfa, 0 0 0 6px rgba(167, 139, 250, 0.3), 0 0 28px rgba(108,122,224,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
  animation: glowPulse 1.5s ease-in-out infinite;
}
.tutorial-highlight.visible { opacity: 1; }

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 3px #a78bfa, 0 0 0 6px rgba(167,139,250,0.25), 0 0 28px rgba(108,122,224,0.4); }
  50%       { box-shadow: 0 0 0 3px #6c7ae0, 0 0 0 10px rgba(108,122,224,0.35), 0 0 40px rgba(108,122,224,0.6); }
}
