/* /css/hint.css */
/* ==========================================================
   Sudoku Paradise — Hint UI (Diamond Edition)
   Bubble off-grid + long pointy tails + pagination
=========================================================== */

.hint-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483646;
}

.hint-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  
}

/* Bubble (off-grid, controlled by JS positioning) */
.hint-bubble{
  position: fixed;
  max-width: var(--hint-bubble-max, 380px);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.90rem;
  color: #222;
  opacity: 0; /* pristine */
  pointer-events: auto; /* allow pager clicks */
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2147483647;
}

.hint-bubble.active{
  opacity: 1;
  transform: translateY(-2px);
}

.hint-title{
  font-weight: 700;
  margin-bottom: 6px;
}

.hint-body{
  line-height: 1.28;
  margin-bottom: 10px;
  white-space: pre-line;
}

/* Pager */
.hint-pager{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.hint-btn{
  pointer-events: auto;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.90);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

.hint-btn:disabled{
  opacity: 0.45;
  cursor: default;
}

.hint-page-label{
  font-size: 0.85rem;
  opacity: 0.78;
}

/* SVG tails (HintSpotlight draws <path>) */
path.hint-tail{
  fill: none;
  stroke: var(--highlight, #48cae4);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 999;
  stroke-dashoffset: 999;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,1.00));
}

.prospective-cand{
  color: #39ff14 !important;
  font-weight: 900;
  opacity: 1.00;
}


/* Mutiny: fade in/out forever (used for rectangles / multi-cell) */
@keyframes tailQuiver{
  0%   { opacity: 0.18; }
  50%  { opacity: 1.00; }
  100% { opacity: 0.18; }
}

path.hint-tail.mutiny{
  stroke-dasharray: 12 10;
  animation-timing-function: ease-in-out;
}

@keyframes tailDraw{
  to { stroke-dashoffset: 0; }
}

/* Spotlight cells (these are the classes JS uses) */
#sudoku-grid .is-spotlit-current{
  outline: 3px solid var(--highlight, #48cae4);
  outline-offset: -3px;
}

#sudoku-grid .is-spotlit-trail{
  outline: 3px solid rgba(72,202,228,0.28);
  outline-offset: -3px;
}

/* Candidate spotlight highlight (always highest priority) */
.snyder-digit.prospective-cand {
  color: #39ff14 !important;     /* your neon green */
}

