/* ==========================================================================
   ONE SHOT - INTERACTIVE WORD GRAPH ANIMATION STYLES
   ========================================================================== */

.graph-modal-card {
  max-width: 720px;
  width: 95%;
  background: rgba(13, 14, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.graph-canvas-container {
  width: 100%;
  height: 400px;
  background: radial-gradient(circle at center, #131522 0%, #08090e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

#graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Step Progress & Letter Bubbles */
.graph-step-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 16px;
  background: rgba(22, 23, 31, 0.85);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.word-spelling-bubbles {
  display: flex;
  gap: 8px;
}

.spell-bubble {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-tertiary);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spell-bubble.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  transform: scale(1.08);
}

.candidates-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.candidates-counter span {
  color: #818cf8;
  font-weight: 800;
  font-size: 16px;
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Playback Controls */
.graph-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(22, 23, 31, 0.6);
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ctrl-btn.play-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-color: #818cf8;
  width: 48px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.ctrl-btn.play-btn:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.speed-select {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.speed-select:hover, .speed-select:focus {
  border-color: #6366f1;
  color: var(--text-primary);
}
